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]
This commit is contained in:
Miro Hrončok
2024-08-22 00:13:33 +02:00
parent 05bd04f5d1
commit 4d63ff2e74
+4 -2
View File
@@ -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.