From d196c1f822c3544f2f13bf3067ad3c10470093f6 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 13 2019 14:47:50 +0000 Subject: Make /usr/bin/pytest and /usr/bin/py.test Python 3 --- diff --git a/python2-pytest.spec b/python2-pytest.spec index ddad4de..8279812 100644 --- a/python2-pytest.spec +++ b/python2-pytest.spec @@ -26,9 +26,6 @@ BuildRequires: python2-setuptools_scm BuildRequires: python2-six %{?python_provide:%python_provide python2-%{pypi_name}} -# the python2 package was named pytest up to 2.8.7-2 -Provides: %{pypi_name} = %{version}-%{release} -Obsoletes: %{pypi_name} < 2.8.7-3 %description py.test provides simple, yet powerful testing for Python 2. @@ -46,11 +43,6 @@ ln -snf pytest-%{python2_version} %{buildroot}%{_bindir}/pytest-2 mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python2_version} ln -snf py.test-%{python2_version} %{buildroot}%{_bindir}/py.test-2 -# use 2.X per default, remove when the pytest command shall be Python 3 -ln -snf pytest-%{python2_version} %{buildroot}%{_bindir}/pytest -ln -snf py.test-%{python2_version} %{buildroot}%{_bindir}/py.test - - # remove shebangs from all scripts find %{buildroot}%{python2_sitelib} \ -name '*.py' \ @@ -67,10 +59,8 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} \ %files %license LICENSE -%{_bindir}/pytest %{_bindir}/pytest-2 %{_bindir}/pytest-%{python2_version} -%{_bindir}/py.test %{_bindir}/py.test-2 %{_bindir}/py.test-%{python2_version} %{python2_sitelib}/pytest-*.egg-info/ @@ -81,6 +71,7 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} \ %changelog * Mon Jul 01 2019 Miro Hrončok - 4.4.1-3 - Split python2-pytest from the pytest source package +- Make /usr/bin/pytest and /usr/bin/py.test Python 3 * Fri Jun 21 2019 Petr Viktorin - 4.4.1-2 - Remove optional test dependencies for Python 2 entirely