Compare commits

...
Sign in to create a new pull request.

18 commits

Author SHA1 Message Date
Python Maint
ed709046ea Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:04:31 +02:00
Python Maint
9233dbc996 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:32:02 +02:00
Benjamin A. Beasley
2344e1fb46 Update to 2.11.0 (close RHBZ#2383690) 2025-07-27 22:16:45 -04:00
Fedora Release Engineering
05fe45941e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 07:23:46 +00:00
Benjamin A. Beasley
a9dc08b12b No longer run tests in parallel
This seems to reduce flakiness.
2025-06-21 07:20:49 -04:00
Python Maint
c9aa2899b6 Rebuilt for Python 3.14 2025-06-03 15:51:32 +02:00
Benjamin A. Beasley
a6f9420ae8 Update to 2.11.0rc3 (close RHBZ#2369614) 2025-06-01 06:58:00 -04:00
Benjamin A. Beasley
cf3a917ff3 Updated Python 3.14 patch 2025-06-01 06:58:00 -04:00
Benjamin A. Beasley
96ae7df798 Patch for Python 3.14 (close RHBZ#2367779) 2025-05-23 07:16:32 -04:00
Benjamin A. Beasley
08f281c034 Update to 2.11.0~rc2 (close RHBZ#2361989) 2025-05-05 10:34:33 -04:00
Benjamin A. Beasley
7e7726133c Report and skip test that fails with miniz_oxide>0.8.5 2025-05-03 23:04:59 -04:00
Benjamin A. Beasley
87d59a3af7 Adjust .rpmlintrc file for updated rpmlint 2025-04-24 16:22:53 -04:00
Benjamin A. Beasley
8318941aeb Update to 2.10.0 (close RHBZ#2359237) 2025-04-12 21:19:18 -04:00
Benjamin A. Beasley
40f3d5aecb Use the provisional pyproject declarative buildsystem
- Drop EPEL10 conditionals
2025-04-08 10:02:54 -04:00
Benjamin A. Beasley
c57085d2d0 Remove workarounds for older versions of tomcli 2025-04-08 09:57:49 -04:00
Benjamin A. Beasley
26737d07f0 Expect maturin to handle license files 2025-04-08 09:49:17 -04:00
Benjamin A. Beasley
dd26b0fa97 Update PyO3 to 0.24 2025-04-08 09:45:36 -04:00
Benjamin A. Beasley
29da16297c Don’t need to manually export RUSTFLAGS
[skip changelog]
2025-03-12 09:36:45 -04:00
3 changed files with 22 additions and 31 deletions

4
.gitignore vendored
View file

@ -9,3 +9,7 @@
/cramjam-61564e7761e38e5ec55e7939ccd6a276c2c55d11-filtered.tar.gz
/cramjam-cdc7d307d0f592f89b3319a7037fd875a5371ef3-filtered.tar.gz
/cramjam-2.10.0rc1.tar.gz
/cramjam-2.10.0.tar.gz
/cramjam-2.11.0rc2.tar.gz
/cramjam-2.11.0rc3.tar.gz
/cramjam-2.11.0.tar.gz

View file

@ -4,7 +4,7 @@
#global snapdate YYYYMMDD
Name: python-cramjam
Version: 2.10.0~rc1
Version: 2.11.0
Release: %autorelease
Summary: Thin Python bindings to de/compression algorithms in Rust
@ -33,8 +33,10 @@ Source1: get_source
%endif
BuildRequires: python3-devel
BuildRequires: tomcli
BuildSystem: pyproject
BuildOption(install): -l cramjam
BuildRequires: tomcli >= 0.8.0
BuildRequires: cargo-rpm-macros >= 24
%if %{with tests}
@ -42,7 +44,6 @@ BuildRequires: cargo-rpm-macros >= 24
# dev extra in pyproject.toml.
BuildRequires: %{py3_dist numpy}
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-xdist}
BuildRequires: %{py3_dist hypothesis}
%endif
@ -56,7 +57,6 @@ BuildRequires: %{py3_dist hypothesis}
Summary: %{summary}
# 0BSD OR MIT OR Apache-2.0
# Apache-2.0
# Apache-2.0 OR MIT
# BSD-3-Clause
# BSD-3-Clause AND MIT
# MIT
@ -74,9 +74,7 @@ License: %{shrink:
%description -n python3-cramjam %{common_description}
%prep
%autosetup -n cramjam-%{srcversion}
%prep -a
# Downstream-only: patch out the generate-import-lib feature, which is only
# relevant on Windows, and which depends on the corresponding pyo3 feature
# which is not packaged for that reason.
@ -91,9 +89,7 @@ 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="$(
# 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/ = .*//' |
tomcli get Cargo.toml features -F newline-keys |
grep -E 'blosc2|ideflate|igzip|isal|izlib' |
tr '\n' ' '
)"
@ -105,9 +101,7 @@ done
# Downstream-only: remove all the static-linking features, and make the
# dynamic-linking ones default, as we do in rust-libcramjam.
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 toml | sed -r 's/ = .*//' |
tomcli get Cargo.toml features -F newline-keys |
grep -E '.-static$' |
tr '\n' ' '
)"
@ -125,27 +119,17 @@ done
%cargo_prep
%generate_buildrequires
%pyproject_buildrequires
%generate_buildrequires -a
%cargo_generate_buildrequires
%build
export RUSTFLAGS='%{build_rustflags}'
%build -p
%cargo_license_summary
%{cargo_license} > LICENSES.dependencies
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files cramjam
%check
%pyproject_check_import
%check -a
%if %{with tests}
%if %{undefined el10}
# Test failures in test_variants_decompress_into with recent hypothesis
# versions: https://github.com/milesgranger/cramjam/issues/201
#
@ -155,14 +139,17 @@ 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
# 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
%endif
%files -n python3-cramjam -f %{pyproject_files}
%license LICENSE LICENSES.dependencies
%doc README.md

View file

@ -1 +1 @@
SHA512 (cramjam-2.10.0rc1.tar.gz) = b1aa5481d0c4d0c44389f20bc2933d8b6979636dfaf2aca1ef83abb462134f2ab421993a5730471b58b49e55614100bb8279916ed68f4a7477453b82407a7c0a
SHA512 (cramjam-2.11.0.tar.gz) = d92446c0c0ef885f3544783caa1f179fd50b6a6290ada011495b7385411527f75a2544c0c8cdc36910c83c879dbac7dd130f4fe8f3dc3b885a84a45286cb3695