Add bcond to disable tests
This commit is contained in:
parent
cdfd9f5e54
commit
b26bbf1213
@ -1,3 +1,6 @@
|
|||||||
|
# when building packages with new Python we need to build typing-extension without tests before pytest is available
|
||||||
|
%bcond tests 1
|
||||||
|
|
||||||
Name: python-typing-extensions
|
Name: python-typing-extensions
|
||||||
Version: 4.4.0
|
Version: 4.4.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -14,7 +17,9 @@ BuildArch: noarch
|
|||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-test
|
BuildRequires: python3-test
|
||||||
|
%if %{without tests}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
@ -69,8 +74,10 @@ cp -v %{SOURCE1} src/
|
|||||||
%pyproject_save_files typing_extensions
|
%pyproject_save_files typing_extensions
|
||||||
|
|
||||||
|
|
||||||
|
%if %{without tests}
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-typing-extensions -f %{pyproject_files}
|
%files -n python3-typing-extensions -f %{pyproject_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user