Add bcond to disable tests, needed for Python bootstrap
This commit is contained in:
parent
989a4f960c
commit
9c9697fe89
@ -1,3 +1,6 @@
|
|||||||
|
# Needed for Python bootstrap
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-pyproject-hooks
|
Name: python-pyproject-hooks
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
@ -34,7 +37,7 @@ sed -i "/flake8/d" dev-requirements.txt
|
|||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -t
|
%pyproject_buildrequires %{?with_tests:-t}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -46,8 +49,10 @@ sed -i "/flake8/d" dev-requirements.txt
|
|||||||
%pyproject_save_files pyproject_hooks
|
%pyproject_save_files pyproject_hooks
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%tox
|
%tox
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-pyproject-hooks -f %{pyproject_files}
|
%files -n python3-pyproject-hooks -f %{pyproject_files}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user