Improve testing during RPM build
(cherry picked from Fedora commit f2f041328d629719c5ff31a08e800638d5df497f)
This commit is contained in:
parent
c1d0f0e6bd
commit
1b6e136313
@ -16,12 +16,15 @@ BuildRequires: pyproject-rpm-macros
|
||||
# We intentionally skip those on RHEL to avoid pulling other Pythons into next RHEL.
|
||||
# When a new Python is added into RHEL, the new version should be explicitly added.
|
||||
%if %{undefined rhel}
|
||||
BuildRequires: python3-pytest-xdist
|
||||
BuildRequires: python3.6
|
||||
BuildRequires: python3.8
|
||||
BuildRequires: python3.9
|
||||
BuildRequires: python3.10
|
||||
BuildRequires: python3.11
|
||||
BuildRequires: python3.12
|
||||
BuildRequires: python3.13
|
||||
BuildRequires: python3.14
|
||||
%endif
|
||||
|
||||
%generate_buildrequires
|
||||
@ -42,7 +45,7 @@ reproducibility.
|
||||
%pyproject_save_files %{name}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%pytest %{?!rhel:-n auto}
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%license LICENSE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user