From caa0c29ec484c3d814d607f072a961fc0b9325ae Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 2 Apr 2025 20:25:53 -0400 Subject: [PATCH] Omit Pendulum integration tests in EPEL10 --- python-orjson.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python-orjson.spec b/python-orjson.spec index f48eeb3..ccc4fbc 100644 --- a/python-orjson.spec +++ b/python-orjson.spec @@ -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