Define and save %toxenv for further use

This commit is contained in:
Miro Hrončok 2019-07-26 16:15:59 +02:00
parent 8a60635881
commit 0124d2a76f
2 changed files with 4 additions and 1 deletions

View File

@ -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'

View File

@ -28,7 +28,7 @@ Summary: %{summary}
%generate_buildrequires
%pyproject_buildrequires -t py%{python3_version_nodots}-pytestrelease
%pyproject_buildrequires -t %{toxenv}-pytestrelease
%build