[python-docker-py] update to 1.0.0

Lokesh Mandvekar lsm5 at fedoraproject.org
Wed Feb 25 19:33:47 UTC 2015


commit ac05f57a0a6771e9ac6366825a453a4c78d0719f
Author: Lokesh Mandvekar <lsm5 at fedoraproject.org>
Date:   Wed Feb 25 13:33:02 2015 -0600

    update to 1.0.0
    
    - Resolves: rhbz#1195627 - update deps
    - run tests in %check
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at fedoraproject.org>

 .gitignore            |  1 +
 python-docker-py.spec | 33 +++++++++++++++------------------
 sources               |  2 +-
 3 files changed, 17 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b5a14b0..8b6368e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /docker-py-0.6.0.tar.gz
 /docker-py-0.7.0.tar.gz
 /docker-py-0.7.1.tar.gz
+/1.0.0.tar.gz
diff --git a/python-docker-py.spec b/python-docker-py.spec
index 6d63fba..3bcf65c 100644
--- a/python-docker-py.spec
+++ b/python-docker-py.spec
@@ -6,19 +6,18 @@
 %global         debug_package   %{nil}
 
 Name:           python-docker-py
-Version:        0.7.1
+Version:        1.0.0
 Release:        1%{?dist}
 Summary:        An API client for docker written in Python
 License:        ASL 2.0
-URL:            http://www.docker.com
-# Arch follows docker-io
-# only x86_64 for now: https://github.com/dotcloud/docker/issues/136
-ExclusiveArch:  x86_64
-Source0:        https://pypi.python.org/packages/source/d/docker-py/docker-py-%{version}.tar.gz
+URL:            https://github.com/docker/docker-py
+Source0:        https://github.com/docker/docker-py/archive/%{version}.tar.gz
+BuildArch:      noarch
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-tools
 BuildRequires:  python-websocket-client >= 0.11.0
+BuildRequires:  python-coverage >= 3.7.1
 
 %if 0%{?with_python3}
 BuildRequires:  python3-devel
@@ -26,18 +25,9 @@ BuildRequires:  python3-tools
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-requests
 BuildRequires:  python3-websocket-client >= 0.11.0
+BuildRequires:  python3-coverage >= 3.7.1
 %endif # with_python3
 
-# Resolves: rhbz#1132604 (epel7 only)
-# docker 1.3.2 suffered from a few CVEs, ensure 1.3.3+
-%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
-BuildRequires:  docker >= 1.3.3
-Requires:       docker >= 1.3.3
-%else
-BuildRequires:  docker-io >= 1.3.3
-Requires:       docker-io >= 1.3.3
-%endif
-
 %if 0%{?fedora} >= 21
 BuildRequires:  python-requests >= 2.2.1
 Requires:       python-requests >= 2.2.1
@@ -74,7 +64,6 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
 popd
 %endif # with_python3
 
-
 %build
 %{__python} setup.py build
 
@@ -84,7 +73,6 @@ pushd %{py3dir}
 popd
 %endif # with_python3
 
-
 %install
 %{__python} setup.py install --root %{buildroot}
 
@@ -94,6 +82,9 @@ pushd %{py3dir}
 popd
 %endif # with_python3
 
+%check
+[ ! -e /run/docker.sock ] || make test
+
 %files
 %doc LICENSE README.md
 %dir %{python_sitelib}/docker
@@ -111,6 +102,12 @@ popd
 %endif # with_python3
 
 %changelog
+* Wed Feb 25 2015 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 1.0.0-1
+- update to upstream 1.0.0
+- Resolves: rhbz#1195627 - don't (B)R docker
+- use github url instead of pypi
+- run tests in check if /run/docker.sock exists
+
 * Wed Jan 14 2015 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0.7.1-1
 - Resolves: rhbz#1182003 - Update to 0.7.1
 
diff --git a/sources b/sources
index e1ddd37..6d57b8a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3950ac21f7f2a9723759dd95e5f77b89  docker-py-0.7.1.tar.gz
+3cb60dc8daeef990d0a7479ba823e7f4  1.0.0.tar.gz


More information about the scm-commits mailing list