From 9c9697fe89328da0743f8fe01ba186b2a0f4e63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Mon, 23 Jan 2023 15:08:27 +0100 Subject: [PATCH] Add bcond to disable tests, needed for Python bootstrap --- python-pyproject-hooks.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec index c5cb100..794c52f 100644 --- a/python-pyproject-hooks.spec +++ b/python-pyproject-hooks.spec @@ -1,3 +1,6 @@ +# Needed for Python bootstrap +%bcond_without tests + Name: python-pyproject-hooks Version: 1.0.0 Release: %autorelease @@ -34,7 +37,7 @@ sed -i "/flake8/d" dev-requirements.txt %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %{?with_tests:-t} %build @@ -46,8 +49,10 @@ sed -i "/flake8/d" dev-requirements.txt %pyproject_save_files pyproject_hooks +%if %{with tests} %check %tox +%endif %files -n python3-pyproject-hooks -f %{pyproject_files}