From b48528af36e7003f0e44d874285473080119cd28 Mon Sep 17 00:00:00 2001 From: shixuantong Date: Fri, 26 Nov 2021 09:49:38 +0800 Subject: [PATCH] disable tests when bootstrapping --- python-wheel.spec | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/python-wheel.spec b/python-wheel.spec index 2cddd04..c00e669 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -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 - 0.36.2-3 +- disable tests when bootstrapping + * Tue Jul 27 2021 shixuantong - 0.36.2-2 - remove useless BuildRequires -- Gitee