diff --git a/macros.pyproject b/macros.pyproject index 593096c..817814d 100644 --- a/macros.pyproject +++ b/macros.pyproject @@ -17,7 +17,10 @@ if [ -d %{buildroot}%{python3_sitearch} ]; then fi } +%toxenv py%{python3_version_nodots} + %pyproject_buildrequires(rx:t:) %{expand:\\\ +%{-t:%{expand:%global toxenv %{-t*}}} echo 'python3-devel' echo 'python3dist(packaging)' echo 'python3dist(pip) >= 19' diff --git a/tests/python-pluggy.spec b/tests/python-pluggy.spec index 43f3926..74a772b 100644 --- a/tests/python-pluggy.spec +++ b/tests/python-pluggy.spec @@ -28,7 +28,7 @@ Summary: %{summary} %generate_buildrequires -%pyproject_buildrequires -t py%{python3_version_nodots}-pytestrelease +%pyproject_buildrequires -t %{toxenv}-pytestrelease %build