[packages/python-execnet] - updated to 1.4.1 - removed obsolete setup_deps

qboosh qboosh at pld-linux.org
Fri Mar 10 20:15:14 CET 2017


commit 8d193089aff8c0929c5e8848d19d57b698dc0750
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 10 20:17:21 2017 +0100

    - updated to 1.4.1
    - removed obsolete setup_deps

 python-execnet.spec | 83 +++++++++++++++++++++++++++++++++++++----------------
 setup_deps.patch    | 15 ----------
 2 files changed, 58 insertions(+), 40 deletions(-)
---
diff --git a/python-execnet.spec b/python-execnet.spec
index 3b1e0c1..dcd2073 100644
--- a/python-execnet.spec
+++ b/python-execnet.spec
@@ -2,29 +2,42 @@
 # Conditional build:
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
+%bcond_with	tests	# py.test based tests [use network]
 
 %define 	module	execnet
 Summary:	Rapid multi-Python deployment
+Summary(pl.UTF-8):	Szybkie wdrożenia na wielu Pythonach
 Name:		python-%{module}
-Version:	1.3.0
-Release:	5
+Version:	1.4.1
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/e/execnet/%{module}-%{version}.tar.gz
-# Source0-md5:	426c1a963cee5f671a3e8187b983c915
-Patch0:		setup_deps.patch
+# Source0-md5:	0ff84b6c79d0dafb7e2971629c4d127a
 URL:		http://codespeak.net/execnet
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
-BuildRequires:	sed >= 4.0
 %if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
 BuildRequires:	python-setuptools >= 7.0
+BuildRequires:	python-setuptools_scm
+%if %{with tests}
+BuildRequires:	python-apipkg
+BuildRequires:	python-py
+BuildRequires:	python-pytest
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules
+BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-setuptools >= 7.0
+BuildRequires:	python3-setuptools_scm
+%if %{with tests}
+BuildRequires:	python3-apipkg
+BuildRequires:	python3-py
+BuildRequires:	python3-pytest
+%endif
 %endif
-Requires:	python-modules
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,38 +45,60 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 execnet provides carefully tested means to ad-hoc interact with Python
 interpreters across version, platform and network barriers. It
 provides a minimal and fast API targetting the following uses:
-
-- distribute tasks to local or remote processes
-- write and deploy hybrid multi-process applications
-- write scripts to administer multiple hosts
+ - distribute tasks to local or remote processes
+ - write and deploy hybrid multi-process applications
+ - write scripts to administer multiple hosts
+
+%description -l pl.UTF-8
+execnet dostarcza uważnie przetestowane narzędzia do interakcji z
+interpreterami Pythona zainstalowanych w różnych wersjach, na różnych
+platformach i w różnych sieciach. Zapewnia minimalne i szybkie API
+przeznaczone do następujących zastosowań:
+ - rozpraszania zadań na lokalne lub zdalne procesy
+ - pisania i wdrażania wieloprocesowych aplikacji hybrydowych
+ - pisania skryptów do administrowania wieloma hostami
 
 %package -n python3-%{module}
 Summary:	Rapid multi-Python deployment
+Summary(pl.UTF-8):	Szybkie wdrożenia na wielu Pythonach
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.2
 
 %description -n python3-%{module}
 execnet provides carefully tested means to ad-hoc interact with Python
 interpreters across version, platform and network barriers. It
 provides a minimal and fast API targetting the following uses:
-
-- distribute tasks to local or remote processes
-- write and deploy hybrid multi-process applications
-- write scripts to administer multiple hosts
+ - distribute tasks to local or remote processes
+ - write and deploy hybrid multi-process applications
+ - write scripts to administer multiple hosts
+
+%description -n python3-%{module} -l pl.UTF-8
+execnet dostarcza uważnie przetestowane narzędzia do interakcji z
+interpreterami Pythona zainstalowanych w różnych wersjach, na różnych
+platformach i w różnych sieciach. Zapewnia minimalne i szybkie API
+przeznaczone do następujących zastosowań:
+ - rozpraszania zadań na lokalne lub zdalne procesy
+ - pisania i wdrażania wieloprocesowych aplikacji hybrydowych
+ - pisania skryptów do administrowania wieloma hostami
 
 %prep
 %setup -q -n %{module}-%{version}
-%patch0 -p1
-
-sed -i -e's/get_version_from_scm=True/version="%{version}"/' setup.py
 
 %build
 %if %{with python2}
 %py_build
+
+%if %{with tests}
+%{__python} -mpytest testing
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
+
+%if %{with tests}
+%{__python3} -mpytest testing
+%endif
 %endif
 
 %install
@@ -86,17 +121,15 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.txt ISSUES.txt CHANGELOG
+%doc CHANGELOG ISSUES.txt LICENSE README.txt
 %{py_sitescriptdir}/%{module}
-%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc README.txt ISSUES.txt CHANGELOG
+%doc CHANGELOG ISSUES.txt LICENSE README.txt
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
diff --git a/setup_deps.patch b/setup_deps.patch
deleted file mode 100644
index 0f52c50..0000000
--- a/setup_deps.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -dur execnet-1.3.0.orig/setup.py execnet-1.3.0/setup.py
---- execnet-1.3.0.orig/setup.py	2015-02-13 23:16:29.000000000 +0100
-+++ execnet-1.3.0/setup.py	2015-05-13 10:18:58.000000000 +0200
-@@ -60,11 +60,6 @@
-             'Programming Language :: Python',
-             'Programming Language :: Python :: 3'],
-         packages=['execnet', 'execnet.script'],
--        setup_requires=[
--            # this is a setup/release time dependency
--            # we are supposed to use wheels
--            'hgdistver',
--        ]
-     )
- 
- if __name__ == '__main__':
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-execnet.git/commitdiff/8d193089aff8c0929c5e8848d19d57b698dc0750



More information about the pld-cvs-commit mailing list