Prepare for EPEL10 branching

This commit is contained in:
Benjamin A. Beasley 2025-03-02 10:11:46 -05:00
commit 1b551f270c

View file

@ -96,7 +96,9 @@ tomcli set Cargo.toml del 'features.wasm32-compat'
# extension with the default features, and we only want maturin to check
# dependencies for those features.
blosc2_isal_features="$(
tomcli get Cargo.toml features -F newline-keys |
# 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 toml | sed -r 's/ = .*//' |
grep -E 'blosc2|ideflate|igzip|isal|izlib' |
tr '\n' ' '
)"
@ -108,7 +110,9 @@ done
# Downstream-only: remove all the static-linking features, and make the
# dynamic-linking ones default, as we do in rust-libcramjam.
static_features="$(
tomcli get Cargo.toml features -F newline-keys |
# 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 toml | sed -r 's/ = .*//' |
grep -E '.-static$' |
tr '\n' ' '
)"
@ -146,9 +150,9 @@ export RUSTFLAGS='%{build_rustflags}'
%check
%pyproject_check_import
%if %{with tests}
%if %{undefined el10}
# Test failures in test_variants_decompress_into with recent hypothesis
# versions
# https://github.com/milesgranger/cramjam/issues/201
# versions: https://github.com/milesgranger/cramjam/issues/201
#
# It is hard to be really sure what is going on here. The failures are
# concerning, and might (or might not) reflect a serious problem. Nevertheless,
@ -156,6 +160,7 @@ export RUSTFLAGS='%{build_rustflags}'
# not reason to believe that the package has *new* problems. It *might* have
# newly *revealed* problems. This merits further investigation.
k="${k-}${k+ and }not test_variants_decompress_into"
%endif
%pytest -k "${k-}" --ignore=benchmarks/test_bench.py -v -n auto
%endif