diff --git a/python-packaging.spec b/python-packaging.spec index a76b03f5ef72ee770756c35ec35e463ab3983bb6..ee1ba05a38c9c5230cff8c813f517a32a777187f 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -1,7 +1,9 @@ %global _empty_manifest_terminate_build 0 +%bcond_without test + Name: python-packaging Version: 20.9 -Release: 1 +Release: 2 Summary: Core utilities for Python packages License: BSD and ASL 2.0 URL: https://github.com/pypa/packaging @@ -23,9 +25,12 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-pretend +%if %{with tests} BuildRequires: python3-pytest +%endif BuildRequires: python3-pyparsing Requires: python3-pyparsing + %description -n python3-packaging Reusable core utilities for various Python Packaging interoperability specifications. @@ -79,7 +84,9 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check +%if %{with tests} %{__python3} -m pytest tests/ +%endif %files -n python3-packaging -f filelist.lst %dir %{python3_sitelib}/* @@ -89,6 +96,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Sat Nov 27 2021 shixuantong - - 20.9-2 +- disable %check + * Tue Jul 13 2021 OpenStack_SIG - 20.9-1 - Upgrade to version 20.9