disable tests when bootstrapping
This commit is contained in:
parent
75b7646a43
commit
b48528af36
@ -1,7 +1,14 @@
|
||||
%bcond_with bootstrap
|
||||
%bcond_without bootstrap
|
||||
|
||||
%if %{with bootstrap}
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
%endif
|
||||
|
||||
Name: python-wheel
|
||||
Version: 0.36.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Epoch: 1
|
||||
Summary: Built-package format for Python
|
||||
License: MIT
|
||||
@ -18,7 +25,7 @@ compatible install in a way that is very close to the on-disk format.
|
||||
%package -n python3-wheel
|
||||
Summary: Built-package format for Python
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
%if %{without bootstrap}
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-pytest python3-pyxdg
|
||||
%endif
|
||||
%{?python_provide:%python_provide python3-wheel}
|
||||
@ -57,8 +64,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||
%py3_build_wheel
|
||||
install -d %{buildroot}%{_datadir}/python-wheels
|
||||
install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
rm setup.cfg
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
||||
@ -79,6 +87,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Nov 26 2021 shixuantong<shixuantong@huawei.com> - 0.36.2-3
|
||||
- disable tests when bootstrapping
|
||||
|
||||
* Tue Jul 27 2021 shixuantong<shixuantong@huawei.com> - 0.36.2-2
|
||||
- remove useless BuildRequires
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user