From 4d63ff2e747fa36a3890218624dcdce642e07496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 22 Aug 2024 00:13:33 +0200 Subject: [PATCH] Allow to use the bootstrap bcond to disable tests This makes it possible to bootstrap the package in EPEL 10 without flipping the bcond in the spec. The bootstrap bcond needs to be defined before the Release tag to change %dist value. [skip changelog] --- python-tox-current-env.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec index 2610560..e1d843a 100644 --- a/python-tox-current-env.spec +++ b/python-tox-current-env.spec @@ -1,3 +1,7 @@ +%bcond bootstrap 0 +# Tests are enabled by default, unless bootstrapping (for pytest-xdist) +%bcond tests %{without bootstrap} + Name: python-tox-current-env Version: 0.0.11 Release: %autorelease @@ -11,8 +15,6 @@ BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: pyproject-rpm-macros -%bcond tests 1 - %description The tox-current-env plugin allows to run tests in current Python environment.