diff --git a/python-zope-event.spec b/python-zope-event.spec index 0ef59f73c6c1281bbab3080a068e4014c1325068..cad1261aff5e1546c36dc85d98583740ca96423c 100644 --- a/python-zope-event.spec +++ b/python-zope-event.spec @@ -1,8 +1,11 @@ +# runing the test need python3-zope-testrunner, but has not been introduced yet +%bcond_with tests + Name: python-zope-event Version: 5.0 -Release: 2 +Release: 3 Summary: Zope Event Publication -License: ZPLv2.1 +License: ZPL-2.1 URL: http://pypi.python.org/pypi/zope.event/ Source0: https://files.pythonhosted.org/packages/46/c2/427f1867bb96555d1d34342f1dd97f8c420966ab564d58d18469a1db8736/zope.event-5.0.tar.gz Patch0: Adapt-to-intersphinx_mapping-format-due-to-Sphinx-upgrade.patch @@ -23,6 +26,11 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-sphinx +%if %{with tests} +BuildRequires: python3-tox +BuildRequires: python3-tox-current-env +BuildRequires: python3-zope-testrunner +%endif Requires: python3 @@ -50,8 +58,10 @@ popd %install %py3_install +%if %{with tests} %check -%{__python3} setup.py test +%{tox} +%endif %files -n python3-zope-event %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst @@ -66,6 +76,9 @@ popd %changelog +* Tue Jul 15 2025 wangkai <13474090681@163.com> - 5.0-3 +- Skip the test because python3-zope-testrunner has not introduced + * Tue Jan 21 2025 wangkai <13474090681@163.com> - 5.0-2 - Fix build failure due to Sphinx upgrade to 8.1.3