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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user