[packages/python-docker] up to 1.7.2

glen glen at pld-linux.org
Sun Mar 20 19:22:47 CET 2016


commit 99b900305117c6b360c1dfe39e73080ef3d4b4cc
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 20 20:22:16 2016 +0200

    up to 1.7.2

 python-docker.spec            | 18 ++++++++----------
 unpin-test-requirements.patch | 14 ++++++++++++++
 2 files changed, 22 insertions(+), 10 deletions(-)
---
diff --git a/python-docker.spec b/python-docker.spec
index d759f95..58cb847 100644
--- a/python-docker.spec
+++ b/python-docker.spec
@@ -7,33 +7,28 @@
 %define 	module	docker
 Summary:	An API client for docker written in Python
 Name:		python-%{module}
-Version:	0.7.1
+Version:	1.7.2
 Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/d/docker-py/docker-py-%{version}.tar.gz
-# Source0-md5:	3950ac21f7f2a9723759dd95e5f77b89
+# Source0-md5:	b1007b53eabb0e385d52b9a4fd3095b1
+Patch0:		unpin-test-requirements.patch
 URL:		http://docker-py.readthedocs.org/
-#BuildRequires:	docker >= 1.3.3
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
 %if %{with python2}
-#BuildRequires:	python-requests >= 2.2.1
 BuildRequires:	python-setuptools
-#BuildRequires:	python-tools
-#BuildRequires:	python-websocket-client >= 0.11.0
 %endif
 %if %{with python3}
 BuildRequires:	python3-devel
-#BuildRequires:	python3-requests
 BuildRequires:	python3-setuptools
-#BuildRequires:	python3-tools
-#BuildRequires:	python3-websocket-client >= 0.11.0
 %endif
-Requires:	docker >= 1.3.3
 Requires:	python-requests >= 2.2.1
 Requires:	python-six >= 1.3.0
 Requires:	python-websocket-client >= 0.11.0
+# Docker can be remote, so suggest only
+Suggests:	docker >= 1.3.3
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,12 +40,15 @@ Summary:	An API client for docker written in Python 3
 Requires:	python3-requests
 Requires:	python3-six >= 1.3.0
 Requires:	python3-websocket-client >= 0.11.0
+# Docker can be remote, so suggest only
+Suggests:	docker >= 1.3.3
 
 %description -n python3-%{module}
 A Python 3 interface to Docker.
 
 %prep
 %setup -q -n docker-py-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/unpin-test-requirements.patch b/unpin-test-requirements.patch
new file mode 100644
index 0000000..c51ed78
--- /dev/null
+++ b/unpin-test-requirements.patch
@@ -0,0 +1,14 @@
+--- a/test-requirements.txt
++++ b/test-requirements.txt
+@@ -1,5 +1,5 @@
+-mock==1.0.1
+-pytest==2.7.2
+-coverage==3.7.1
+-pytest-cov==2.1.0
+-flake8==2.4.1
+\ No newline at end of file
++mock>=1.0.1
++pytest>=2.7.2
++coverage>=3.7.1
++pytest-cov>=2.1.0
++flake8>=2.4.1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-docker.git/commitdiff/99b900305117c6b360c1dfe39e73080ef3d4b4cc



More information about the pld-cvs-commit mailing list