CI: Make python-pytest.spec build on EL 10 (but not on EL 9 anymore)
This commit is contained in:
parent
dddc9bf556
commit
049eb198d0
@ -1,6 +1,6 @@
|
|||||||
%global pypi_name pytest
|
%global pypi_name pytest
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 7.1.3
|
Version: 7.2.0
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -11,7 +11,7 @@ BuildArch: noarch
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
# no xmlschema packaged for EPEL 9 yet, cannot run tests on EPEL
|
# no xmlschema packaged for EPEL 10 yet, cannot run tests on EPEL
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
%else
|
%else
|
||||||
@ -40,8 +40,6 @@ sed -E -i '/mock|nose/d' setup.cfg
|
|||||||
# internal check for our macros: insert a subprocess echo to setup.py
|
# internal check for our macros: insert a subprocess echo to setup.py
|
||||||
# to ensure it's not generated as BuildRequires
|
# to ensure it's not generated as BuildRequires
|
||||||
echo 'import os; os.system("echo if-this-is-generated-the-build-will-fail")' >> setup.py
|
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
|
%generate_buildrequires
|
||||||
@ -54,7 +52,7 @@ sed -i 's/setuptools-scm\[toml\]>=6.2.3/setuptools-scm[toml]>=5/' pyproject.toml
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files -l '*pytest' +auto
|
%pyproject_save_files -l '*pytest' py +auto
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user