From 0124d2a76feca673cfc2abc9ace8bb043a5b84f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 26 Jul 2019 16:15:59 +0200 Subject: [PATCH] Define and save %toxenv for further use --- macros.pyproject | 3 +++ tests/python-pluggy.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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