Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00001b024f | ||
|
|
fc6bb0f363 | ||
|
|
c2007492dd | ||
|
|
ef3528a4e0 | ||
|
|
a5b480a2e2 | ||
|
|
e4599f45cf | ||
|
|
ec02bc7895 |
3 changed files with 16 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,3 +9,4 @@
|
||||||
/cramjam-61564e7761e38e5ec55e7939ccd6a276c2c55d11-filtered.tar.gz
|
/cramjam-61564e7761e38e5ec55e7939ccd6a276c2c55d11-filtered.tar.gz
|
||||||
/cramjam-cdc7d307d0f592f89b3319a7037fd875a5371ef3-filtered.tar.gz
|
/cramjam-cdc7d307d0f592f89b3319a7037fd875a5371ef3-filtered.tar.gz
|
||||||
/cramjam-2.10.0rc1.tar.gz
|
/cramjam-2.10.0rc1.tar.gz
|
||||||
|
/cramjam-2.10.0.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#global snapdate YYYYMMDD
|
#global snapdate YYYYMMDD
|
||||||
|
|
||||||
Name: python-cramjam
|
Name: python-cramjam
|
||||||
Version: 2.10.0~rc1
|
Version: 2.10.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Thin Python bindings to de/compression algorithms in Rust
|
Summary: Thin Python bindings to de/compression algorithms in Rust
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@ Source1: get_source
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: tomcli
|
BuildRequires: tomcli >= 0.8.0
|
||||||
BuildRequires: cargo-rpm-macros >= 24
|
BuildRequires: cargo-rpm-macros >= 24
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
|
|
@ -91,9 +91,7 @@ tomcli set Cargo.toml del 'features.wasm32-compat'
|
||||||
# extension with the default features, and we only want maturin to check
|
# extension with the default features, and we only want maturin to check
|
||||||
# dependencies for those features.
|
# dependencies for those features.
|
||||||
blosc2_isal_features="$(
|
blosc2_isal_features="$(
|
||||||
# Once EPEL10 has tomcli>=0.8.0, we can use (without sed):
|
tomcli get Cargo.toml features -F newline-keys |
|
||||||
# tomcli get Cargo.toml features -F newline-keys
|
|
||||||
tomcli get Cargo.toml features -F toml | sed -r 's/ = .*//' |
|
|
||||||
grep -E 'blosc2|ideflate|igzip|isal|izlib' |
|
grep -E 'blosc2|ideflate|igzip|isal|izlib' |
|
||||||
tr '\n' ' '
|
tr '\n' ' '
|
||||||
)"
|
)"
|
||||||
|
|
@ -105,9 +103,7 @@ done
|
||||||
# Downstream-only: remove all the static-linking features, and make the
|
# Downstream-only: remove all the static-linking features, and make the
|
||||||
# dynamic-linking ones default, as we do in rust-libcramjam.
|
# dynamic-linking ones default, as we do in rust-libcramjam.
|
||||||
static_features="$(
|
static_features="$(
|
||||||
# Once EPEL10 has tomcli>=0.8.0, we can use (without sed):
|
tomcli get Cargo.toml features -F newline-keys |
|
||||||
# tomcli get Cargo.toml features -F newline-keys
|
|
||||||
tomcli get Cargo.toml features -F toml | sed -r 's/ = .*//' |
|
|
||||||
grep -E '.-static$' |
|
grep -E '.-static$' |
|
||||||
tr '\n' ' '
|
tr '\n' ' '
|
||||||
)"
|
)"
|
||||||
|
|
@ -122,6 +118,10 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# EPEL10.0: SemVer-incompatible PyO3 0.24 blocked by policy, so use 0.23.
|
||||||
|
tomcli set Cargo.toml str dependencies.pyo3.version '^0.23'
|
||||||
|
tomcli set Cargo.toml str build-dependencies.pyo3-build-config '^0.23'
|
||||||
|
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -131,7 +131,6 @@ done
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS='%{build_rustflags}'
|
|
||||||
%cargo_license_summary
|
%cargo_license_summary
|
||||||
%{cargo_license} > LICENSES.dependencies
|
%{cargo_license} > LICENSES.dependencies
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
@ -139,7 +138,7 @@ export RUSTFLAGS='%{build_rustflags}'
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files cramjam
|
%pyproject_save_files -l cramjam
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
@ -157,12 +156,16 @@ export RUSTFLAGS='%{build_rustflags}'
|
||||||
k="${k-}${k+ and }not test_variants_decompress_into"
|
k="${k-}${k+ and }not test_variants_decompress_into"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Regression with miniz_oxide>0.8.5
|
||||||
|
# https://github.com/milesgranger/cramjam/issues/211
|
||||||
|
# Failed: DID NOT RAISE <class 'cramjam.DecompressionError'>
|
||||||
|
k="${k-}${k+ and }not test_variants_raise_exception[deflate]"
|
||||||
|
|
||||||
%pytest -k "${k-}" --ignore=benchmarks/test_bench.py -v -n auto
|
%pytest -k "${k-}" --ignore=benchmarks/test_bench.py -v -n auto
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-cramjam -f %{pyproject_files}
|
%files -n python3-cramjam -f %{pyproject_files}
|
||||||
%license LICENSE LICENSES.dependencies
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (cramjam-2.10.0rc1.tar.gz) = b1aa5481d0c4d0c44389f20bc2933d8b6979636dfaf2aca1ef83abb462134f2ab421993a5730471b58b49e55614100bb8279916ed68f4a7477453b82407a7c0a
|
SHA512 (cramjam-2.10.0.tar.gz) = 0c44643844c6278160d9e2efa3005da265e464edb1d3dd670cadc3effaa744c21c772c0bfeac1ceec6e5f7e8a9a02440d79e5080c432e4dcb73984e613281ad2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue