Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
655812e7c9 | ||
|
|
1c354a3120 | ||
|
|
2015ea4d69 | ||
|
|
48e07eecc6 | ||
|
|
af1aea506d | ||
|
|
e0d4568742 |
1 changed files with 6 additions and 21 deletions
|
|
@ -38,7 +38,7 @@ Source1: get_source
|
||||||
Patch: %{url}/pull/196.patch
|
Patch: %{url}/pull/196.patch
|
||||||
|
|
||||||
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}
|
||||||
|
|
@ -81,11 +81,6 @@ License: %{shrink:
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n cramjam-%{srcversion}
|
%autosetup -n cramjam-%{srcversion}
|
||||||
|
|
||||||
# Do not strip the compiled Python module; we need useful debuginfo. Upstream
|
|
||||||
# set this intentionally, so this makes sense to keep downstream-only.
|
|
||||||
tomcli set pyproject.toml false 'tool.maturin.strip'
|
|
||||||
tomcli set pyproject.toml false 'profile.release.strip'
|
|
||||||
|
|
||||||
# Downstream-only: patch out the generate-import-lib feature, which is only
|
# Downstream-only: patch out the generate-import-lib feature, which is only
|
||||||
# relevant on Windows, and which depends on the corresponding pyo3 feature –
|
# relevant on Windows, and which depends on the corresponding pyo3 feature –
|
||||||
# which is not packaged for that reason.
|
# which is not packaged for that reason.
|
||||||
|
|
@ -136,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
|
||||||
|
|
@ -144,7 +138,7 @@ export RUSTFLAGS='%{build_rustflags}'
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files cramjam
|
%pyproject_save_files -l cramjam
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
@ -173,25 +167,16 @@ k="${k-}${k+ and }not test_variants_different_dtypes[blosc2]"
|
||||||
# https://github.com/milesgranger/cramjam/issues/190
|
# https://github.com/milesgranger/cramjam/issues/190
|
||||||
k="${k-}${k+ and }not (test_variants and [blosc2)"
|
k="${k-}${k+ and }not (test_variants and [blosc2)"
|
||||||
|
|
||||||
%if 0%{?fedora} > 41
|
# Regression with miniz_oxide>0.8.5
|
||||||
# Test failures in test_variants_decompress_into with recent hypothesis
|
# https://github.com/milesgranger/cramjam/issues/211
|
||||||
# versions
|
# Failed: DID NOT RAISE <class 'cramjam.DecompressionError'>
|
||||||
# https://github.com/milesgranger/cramjam/issues/201
|
k="${k-}${k+ and }not test_variants_raise_exception[deflate]"
|
||||||
#
|
|
||||||
# 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,
|
|
||||||
# since the problem appears to be linked to newer hypothesis versions, there’s
|
|
||||||
# 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-}" -v -n auto
|
%pytest -k "${k-}" -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue