diff --git a/python-cherrypy.spec b/python-cherrypy.spec index 2caa38a..5fe2aaa 100644 --- a/python-cherrypy.spec +++ b/python-cherrypy.spec @@ -1,5 +1,7 @@ %{?python_enable_dependency_generator} +%bcond_with tests + Name: python-cherrypy %global camelname CherryPy Version: 18.4.0 @@ -23,6 +25,7 @@ BuildRequires: dos2unix BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3-setuptools_scm +%if %{with tests} # Test dependencies BuildRequires: python3dist(cheroot) BuildRequires: python3dist(mock) @@ -35,6 +38,7 @@ BuildRequires: python3dist(more-itertools) BuildRequires: python3dist(coverage) BuildRequires: python3dist(pytest) BuildRequires: python3-zc-lockfile +%endif %global _description\ %{camelname} allows developers to build web applications in much the same way\ @@ -68,9 +72,10 @@ rm cherrypy/test/test_static.py %install %py3_install +%if %{with tests} %check -# skip tests for now -# LANG=C.utf-8 %{__python3} -m pytest --ignore=build +LANG=C.utf-8 %{__python3} -m pytest --ignore=build +%endif %files -n python3-cherrypy %doc README.rst