Omit Pendulum integration tests in EPEL10
This commit is contained in:
parent
ab0fdcf9ab
commit
caa0c29ec4
1 changed files with 7 additions and 0 deletions
|
|
@ -6,6 +6,8 @@
|
|||
# Specfile compatability: EPEL >= 9 or Fedora >= 37 and RPM >= 4.16
|
||||
|
||||
%bcond tests 1
|
||||
# Not yet in EPEL10: https://bugzilla.redhat.com/show_bug.cgi?id=2356387
|
||||
%bcond pendulum %{undefined el10}
|
||||
|
||||
Name: python-orjson
|
||||
Version: 3.10.14
|
||||
|
|
@ -23,7 +25,9 @@ BuildRequires: %{py3_dist pytest-forked}
|
|||
# versions and architectures, but we would like to run the corresponding tests
|
||||
# everywhere.
|
||||
BuildRequires: %{py3_dist numpy}
|
||||
%if %{with pendulum}
|
||||
BuildRequires: %{py3_dist pendulum}
|
||||
%endif
|
||||
# These are not in tests/requirements.txt, but they enable additional tests
|
||||
%ifnarch %{ix86}
|
||||
BuildRequires: %{py3_dist pandas}
|
||||
|
|
@ -96,6 +100,9 @@ rm -rv include/yyjson/
|
|||
mkdir -p LICENSES.vendored/pyo3
|
||||
cp -vp include/pyo3/LICENSE* LICENSES.vendored/pyo3/
|
||||
|
||||
%if %{without pendulum}
|
||||
sed -i '/^pendulum\b/d' test/requirements.txt
|
||||
%endif
|
||||
# Remove unpackaged PyPI plugin
|
||||
sed -i '/pytest-random-order/d' test/requirements.txt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue