diff --git a/python-parsedatetime.spec b/python-parsedatetime.spec index 850505b..73af903 100644 --- a/python-parsedatetime.spec +++ b/python-parsedatetime.spec @@ -1,7 +1,7 @@ %{?python_enable_dependency_generator} %global realname parsedatetime -%bcond_with tests +%bcond_without tests Name: python-%{realname} Version: 2.5 @@ -16,14 +16,7 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} -BuildRequires: %{_bindir}/tox -BuildRequires: python3-coverage -BuildRequires: python3-flake8 -BuildRequires: python3-mccabe -BuildRequires: python3-pyicu BuildRequires: python3-pytest -BuildRequires: python3-pytest-runner -BuildRequires: python3-pytest-cov %endif %global _description\ @@ -55,12 +48,8 @@ strings. rm -rf %{buildroot}%{python3_sitelib}/%{realname}/tests %check -# a bunch of tox tests have been added and not all packaged -# so mockbuild will fail without network. -# You can run the tests with -# fedpkg mockbuild --enable-network --with=tests %if %{with tests} -tox -e py%{python3_version_nodots} --sitepackages +py.test-3 -x tests/*.py %endif %files -n python3-%{realname}