[packages/python-pytest] - updated 3.0.7 - py.test-PY_VER entry points no longer supported; added *-{2,3} suffixes instead -

qboosh qboosh at pld-linux.org
Fri Mar 17 22:37:23 CET 2017


commit 84b7690d01accde624a70ff08edcf25cb897eb46
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 17 22:39:34 2017 +0100

    - updated 3.0.7
    - py.test-PY_VER entry points no longer supported; added *-{2,3} suffixes instead
    - require setuptools (pkg_resources required for startup scripts)

 python-pytest.spec | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/python-pytest.spec b/python-pytest.spec
index 9a14598..0ee16ba 100644
--- a/python-pytest.spec
+++ b/python-pytest.spec
@@ -9,13 +9,13 @@
 Summary:	Simple and popular testing tool for Python
 Summary(pl.UTF-8):	Proste i popularne narzędzie testujące dla Pythona
 Name:		python-%{module}
-Version:	2.9.2
-Release:	2
+Version:	3.0.7
+Release:	1
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.python.org/simple/pytest
 Source0:	https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
-# Source0-md5:	b65c2944dfaa0efb62c0239afb424f5b
+# Source0-md5:	89c60546507dc7eb6e9e40a6e9f720bd
 URL:		http://pytest.org/
 %if %{with python2}
 BuildRequires:	python-devel >= 1:2.6
@@ -35,6 +35,7 @@ BuildRequires:	sed >= 4.0
 %if %{with doc}
 BuildRequires:	sphinx-pdg >= 1.0
 %endif
+Requires:	python-setuptools
 Obsoletes:	python-pytest-cache
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,7 +50,7 @@ py.test to proste i popularne narzędzie testujące dla Pythona.
 Summary:	Simple powerful testing with Python
 Summary(pl.UTF-8):	Proste, ale funkcjonalne narzędzie testujące dla Pythona
 Group:		Development/Languages
-Suggests:	python3-setuptools
+Requires:	python3-setuptools
 Obsoletes:	python3-pytest-cache
 
 %description -n python3-pytest
@@ -98,11 +99,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python3}
 %py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/py.test{,-3}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/pytest{,-3}
 %endif
 
 %if %{with python2}
 %py_install
 
+ln $RPM_BUILD_ROOT%{_bindir}/py.test{,-2}
+ln $RPM_BUILD_ROOT%{_bindir}/pytest{,-2}
+
 # pytest.py source seems required for "monkeypatching" tests
 %py_postclean -x pytest.py
 %endif
@@ -115,7 +122,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGELOG.rst LICENSE README.rst
 %attr(755,root,root) %{_bindir}/py.test
-%attr(755,root,root) %{_bindir}/py.test-%{py_ver}
+%attr(755,root,root) %{_bindir}/py.test-2
+%attr(755,root,root) %{_bindir}/pytest
+%attr(755,root,root) %{_bindir}/pytest-2
 %{py_sitescriptdir}/pytest.py*
 %{py_sitescriptdir}/_pytest
 %{py_sitescriptdir}/pytest-%{version}-py*.egg-info
@@ -125,7 +134,8 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python3-pytest
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGELOG.rst LICENSE README.rst
-%attr(755,root,root) %{_bindir}/py.test-%{py3_ver}
+%attr(755,root,root) %{_bindir}/py.test-3
+%attr(755,root,root) %{_bindir}/pytest-3
 %{py3_sitescriptdir}/pytest.py
 %{py3_sitescriptdir}/_pytest
 %{py3_sitescriptdir}/__pycache__/pytest.*.py[co]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytest.git/commitdiff/84b7690d01accde624a70ff08edcf25cb897eb46



More information about the pld-cvs-commit mailing list