diff --git a/python-py.spec b/python-py.spec index 08fc3d0..d1c21d7 100644 --- a/python-py.spec +++ b/python-py.spec @@ -1,16 +1,3 @@ -# we have a circular (build) dependency with the (new) pytest package -# when running the testsuite -# the testsuite is currently not compatible with pytest 3, see -# https://github.com/pytest-dev/py/issues/104 -%if 0%{?fedora} || 0%{?rhel} > 7 -%bcond_with tests -%else -%bcond_without tests -%endif - -%global pytest_version_lb 2.9.0 -%global pytest_version_ub 2.10 - %global srcname py Name: python-%{srcname} @@ -23,11 +10,6 @@ URL: http://py.readthedocs.io/ Source: %{pypi_source} BuildArch: noarch -%if %{with tests} -# needed by the testsuite -BuildRequires: subversion -%endif # with tests - %description The py lib is a Python development support library featuring the following tools and modules: @@ -44,9 +26,6 @@ Summary: Library with cross-python path, ini-parsing, io, code, log facil BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm -%if %{with tests} -BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub} -%endif # with tests Requires: python3-setuptools %{?python_provide:%python_provide python3-%{srcname}} Provides: bundled(python3-apipkg) = 2.0 @@ -88,12 +67,7 @@ rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info %check -%if %{with tests} -# disable failing Subversion checks for now -PYTHONPATH=%{buildroot}%{python3_sitelib} \ -py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing -%endif # with tests - +%py3_check_import %{srcname} %files -n python3-%{srcname} %doc CHANGELOG.rst @@ -106,6 +80,7 @@ py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing %changelog * Tue Feb 15 2022 Karolina Surma - 1.11.0-3 - Remove documentation from the package +- Remove testing that requires very old pytest, use %%py3_check_import instead * Fri Jan 21 2022 Fedora Release Engineering - 1.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild