From 3a8bea86f8d43ec39af25859ffa3d330c7fb52a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 30 Aug 2023 21:42:51 +0200 Subject: [PATCH] CI: Make pytest build on Fedora 37 to 39 as well as EPEL 9 --- tests/python-pytest.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/python-pytest.spec b/tests/python-pytest.spec index a51a72d..2e48871 100644 --- a/tests/python-pytest.spec +++ b/tests/python-pytest.spec @@ -1,6 +1,6 @@ %global pypi_name pytest Name: python-%{pypi_name} -Version: 6.2.5 +Version: 7.1.3 Release: 0%{?dist} Summary: Simple powerful testing with Python License: MIT @@ -40,6 +40,8 @@ sed -E -i '/mock|nose/d' setup.cfg # internal check for our macros: insert a subprocess echo to setup.py # to ensure it's not generated as BuildRequires echo 'import os; os.system("echo if-this-is-generated-the-build-will-fail")' >> setup.py +# make this build in EPEL 9 +sed -i 's/setuptools-scm\[toml\]>=6.2.3/setuptools-scm[toml]>=5/' pyproject.toml %generate_buildrequires @@ -59,7 +61,7 @@ echo 'import os; os.system("echo if-this-is-generated-the-build-will-fail")' >> %if %{with tests} # Only run one test (which uses a test-only dependency, hypothesis) # See how to pass options trough the macro to tox, trough tox to pytest -%tox -- -- -k metafunc +%tox -- -- -k "metafunc and not test_parametrize_" -Wdefault %else %pyproject_check_import %endif