Fix pyproject_buildrequires invocation for hatchling backend

epel9
Benjamin A. Beasley 3 years ago
parent 3a7a7a032a
commit 3979d68ec2

@ -48,9 +48,7 @@ sed -i 's/coverage.*//' tox.ini
sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini
%generate_buildrequires %generate_buildrequires
# pyproject_buildrequires.py fails with %pyproject_buildrequires -w %{?with_tests:-t}
# ValueError: build backend cannot provide build metadata (incl. runtime requirements) before build.
%pyproject_buildrequires %{?with_tests:-t} || :
%build %build
%pyproject_wheel %pyproject_wheel

Loading…
Cancel
Save