From 3979d68ec2f7859b1a74205c15590d6ae57880fe Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 11 Jul 2022 10:17:42 -0400 Subject: [PATCH] Fix pyproject_buildrequires invocation for hatchling backend --- python-soupsieve.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python-soupsieve.spec b/python-soupsieve.spec index cf48d83..803f611 100644 --- a/python-soupsieve.spec +++ b/python-soupsieve.spec @@ -48,9 +48,7 @@ sed -i 's/coverage.*//' tox.ini sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini %generate_buildrequires -# pyproject_buildrequires.py fails with -# ValueError: build backend cannot provide build metadata (incl. runtime requirements) before build. -%pyproject_buildrequires %{?with_tests:-t} || : +%pyproject_buildrequires -w %{?with_tests:-t} %build %pyproject_wheel