[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-12-26 Thread Felix Yan
Date: Monday, December 26, 2016 @ 15:37:04
  Author: felixonmars
Revision: 202758

Python 3.6 rebuild

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-26 13:46:16 UTC (rev 202757)
+++ PKGBUILD2016-12-26 15:37:04 UTC (rev 202758)
@@ -6,7 +6,7 @@
 
 pkgname=(python-docker-py python2-docker-py)
 pkgver=1.10.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Python client for Docker."
 arch=('any')
 url="https://github.com/dotcloud/docker-py;


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-12-26 Thread Bartłomiej Piotrowski
Date: Monday, December 26, 2016 @ 12:23:53
  Author: bpiotrowski
Revision: 202756

Move docker to checkdepends_x86_64

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-26 12:15:04 UTC (rev 202755)
+++ PKGBUILD2016-12-26 12:23:53 UTC (rev 202756)
@@ -15,8 +15,9 @@
  'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client'
  'python2-backports.ssl_match_hostname' 'python2-ipaddress' 
'python-docker-pycreds'
  'python2-docker-pycreds')
-checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'
+checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock'
   'flake8' 'python2-flake8')
+checkdepends_x86_64=('docker')
 source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;)
 sha256sums=('SKIP')
 


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-11-08 Thread Felix Yan
Date: Tuesday, November 8, 2016 @ 08:21:25
  Author: felixonmars
Revision: 195116

upgpkg: python-docker-py 1.10.6-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-08 02:56:15 UTC (rev 195115)
+++ PKGBUILD2016-11-08 08:21:25 UTC (rev 195116)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.10.5
+pkgver=1.10.6
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-10-27 Thread Felix Yan
Date: Friday, October 28, 2016 @ 02:38:33
  Author: felixonmars
Revision: 193825

upgpkg: python-docker-py 1.10.5-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-10-28 02:37:22 UTC (rev 193824)
+++ PKGBUILD2016-10-28 02:38:33 UTC (rev 193825)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.10.4
+pkgver=1.10.5
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-10-21 Thread Felix Yan
Date: Friday, October 21, 2016 @ 08:06:15
  Author: felixonmars
Revision: 192809

upgpkg: python-docker-py 1.10.4-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-10-21 08:06:11 UTC (rev 192808)
+++ PKGBUILD2016-10-21 08:06:15 UTC (rev 192809)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.9.0
+pkgver=1.10.4
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
@@ -13,7 +13,8 @@
 license=("Apache")
 makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-requests' 
'python2-requests'
  'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client'
- 'python2-backports.ssl_match_hostname' 'python2-ipaddress')
+ 'python2-backports.ssl_match_hostname' 'python2-ipaddress' 
'python-docker-pycreds'
+ 'python2-docker-pycreds')
 checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'
   'flake8' 'python2-flake8')
 source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;)
@@ -47,7 +48,7 @@
 }
 
 package_python-docker-py() {
-  depends=('python-requests' 'python-six' 'python-websocket-client')
+  depends=('python-requests' 'python-six' 'python-websocket-client' 
'python-docker-pycreds')
 
   cd docker-py
   python setup.py install -O1 --root="$pkgdir"
@@ -55,7 +56,8 @@
 }
 
 package_python2-docker-py() {
-  depends=('python2-requests' 'python2-six' 'python2-websocket-client' 
'python2-backports.ssl_match_hostname' 'python2-ipaddress')
+  depends=('python2-requests' 'python2-six' 'python2-websocket-client' 
'python2-docker-pycreds'
+   'python2-backports.ssl_match_hostname' 'python2-ipaddress')
 
   cd docker-py-py2
   python2 setup.py install -O1 --root="$pkgdir"


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-08-02 Thread Felix Yan
Date: Wednesday, August 3, 2016 @ 03:32:20
  Author: felixonmars
Revision: 184930

upgpkg: python-docker-py 1.9.0-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-08-03 03:31:29 UTC (rev 184929)
+++ PKGBUILD2016-08-03 03:32:20 UTC (rev 184930)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.8.1
+pkgver=1.9.0
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD backports.patch)

2016-04-29 Thread Felix Yan
Date: Saturday, April 30, 2016 @ 07:13:02
  Author: fyan
Revision: 173030

upgpkg: python-docker-py 1.8.1-1

Modified:
  python-docker-py/trunk/PKGBUILD
Deleted:
  python-docker-py/trunk/backports.patch

-+
 PKGBUILD|   12 ---
 backports.patch |  214 --
 2 files changed, 3 insertions(+), 223 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-04-30 05:08:32 UTC (rev 173029)
+++ PKGBUILD2016-04-30 05:13:02 UTC (rev 173030)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.8.0
+pkgver=1.8.1
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
@@ -16,16 +16,10 @@
  'python2-backports.ssl_match_hostname' 'python2-ipaddress')
 checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'
   'flake8' 'python2-flake8')
-source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;
-backports.patch)
-sha256sums=('SKIP'
-'0bbf17354fa7e7089180577271f552ea08c6b262fd0ca732626085c0bde7a3e0')
+source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;)
+sha256sums=('SKIP')
 
 prepare() {
-  # Use match_hostname from backports.ssl_match_hostname, as the required 
py2-ipaddress module conflicts with python2-ipaddress
-  # https://github.com/docker/docker-py/pull/1029
-  (cd docker-py; patch -p1 -i ../backports.patch)
-
   sed -i 's/==.*$//' docker-py/{,test-}requirements.txt
 
   cp -a docker-py{,-py2}

Deleted: backports.patch
===
--- backports.patch 2016-04-30 05:08:32 UTC (rev 173029)
+++ backports.patch 2016-04-30 05:13:02 UTC (rev 173030)
@@ -1,214 +0,0 @@
-From 9da54931355c5ac7146e1f2b137a12cbbb190cfa Mon Sep 17 00:00:00 2001
-From: Felix Yan 
-Date: Fri, 8 Apr 2016 00:20:42 +0800
-Subject: [PATCH] Use backports.ssl_match_hostname
-
-The py2-ipaddress module unfortunately conflicts with the pypi:ipaddress 
module, which is in the dependency tree of widely used pyOpenSSL. I think it 
would be a good idea to use a well maintained backport of the Python 3.5 
implementation of match_hostname() instead of duplicating the effort and 
maintain another.
-
-All tests are passing here.
-
-Signed-off-by: Felix Yan 

- docker/ssladapter/ssl_match_hostname.py | 130 
- docker/ssladapter/ssladapter.py |   2 +-
- requirements.txt|   2 +-
- setup.py|   2 +-
- tests/unit/ssladapter_test.py   |  12 ++-
- 5 files changed, 12 insertions(+), 136 deletions(-)
- delete mode 100644 docker/ssladapter/ssl_match_hostname.py
-
-diff --git a/docker/ssladapter/ssl_match_hostname.py 
b/docker/ssladapter/ssl_match_hostname.py
-deleted file mode 100644
-index 9de0c5f..000
 a/docker/ssladapter/ssl_match_hostname.py
-+++ /dev/null
-@@ -1,130 +0,0 @@
--# Slightly modified version of match_hostname in python's ssl library
--# https://hg.python.org/cpython/file/tip/Lib/ssl.py
--# Changed to make code python 2.x compatible (unicode strings for ip_address
--# and 3.5-specific var assignment syntax)
--
--import ipaddress
--import re
--
--try:
--from ssl import CertificateError
--except ImportError:
--CertificateError = ValueError
--
--import six
--
--
--def _ipaddress_match(ipname, host_ip):
--"""Exact matching of IP addresses.
--
--RFC 6125 explicitly doesn't define an algorithm for this
--(section 1.7.2 - "Out of Scope").
--"""
--# OpenSSL may add a trailing newline to a subjectAltName's IP address
--ip = ipaddress.ip_address(six.text_type(ipname.rstrip()))
--return ip == host_ip
--
--
--def _dnsname_match(dn, hostname, max_wildcards=1):
--"""Matching according to RFC 6125, section 6.4.3
--
--http://tools.ietf.org/html/rfc6125#section-6.4.3
--"""
--pats = []
--if not dn:
--return False
--
--split_dn = dn.split(r'.')
--leftmost, remainder = split_dn[0], split_dn[1:]
--
--wildcards = leftmost.count('*')
--if wildcards > max_wildcards:
--# Issue #17980: avoid denials of service by refusing more
--# than one wildcard per fragment.  A survey of established
--# policy among SSL implementations showed it to be a
--# reasonable choice.
--raise CertificateError(
--"too many wildcards in certificate DNS name: " + repr(dn))
--
--# speed up common case w/o wildcards
--if not wildcards:
--return dn.lower() == hostname.lower()
--
--# RFC 6125, section 6.4.3, subitem 1.
--# The client SHOULD NOT attempt to match a presented identifier in which
--# the wildcard character comprises a label other than the left-most label.
--if leftmost == '*':
--   

[arch-commits] Commit in python-docker-py/trunk (PKGBUILD backports.patch)

2016-04-19 Thread Felix Yan
Date: Tuesday, April 19, 2016 @ 15:46:00
  Author: fyan
Revision: 171400

upgpkg: python-docker-py 1.8.0-1

Added:
  python-docker-py/trunk/backports.patch
Modified:
  python-docker-py/trunk/PKGBUILD

-+
 PKGBUILD|   33 +---
 backports.patch |  214 ++
 2 files changed, 234 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-04-19 13:39:51 UTC (rev 171399)
+++ PKGBUILD2016-04-19 13:46:00 UTC (rev 171400)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.7.2
+pkgver=1.8.0
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
@@ -12,13 +12,20 @@
 url="https://github.com/dotcloud/docker-py;
 license=("Apache")
 makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-requests' 
'python2-requests'
- 'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client')
+ 'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client'
+ 'python2-backports.ssl_match_hostname' 'python2-ipaddress')
 checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'
   'flake8' 'python2-flake8')
-source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;)
-sha256sums=('SKIP')
+source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;
+backports.patch)
+sha256sums=('SKIP'
+'0bbf17354fa7e7089180577271f552ea08c6b262fd0ca732626085c0bde7a3e0')
 
 prepare() {
+  # Use match_hostname from backports.ssl_match_hostname, as the required 
py2-ipaddress module conflicts with python2-ipaddress
+  # https://github.com/docker/docker-py/pull/1029
+  (cd docker-py; patch -p1 -i ../backports.patch)
+
   sed -i 's/==.*$//' docker-py/{,test-}requirements.txt
 
   cp -a docker-py{,-py2}
@@ -25,10 +32,10 @@
 }
 
 build() {
-  cd "$srcdir/docker-py"
+  cd "$srcdir"/docker-py
   python setup.py build
 
-  cd "$srcdir/docker-py-py2"
+  cd "$srcdir"/docker-py-py2
   python2 setup.py build
 }
 
@@ -37,10 +44,10 @@
   # docker daemon -H fd:// -p "$srcdir/docker.pid"
 
   cd "$srcdir/docker-py"
-  py.test tests/unit
+  py.test --cov=docker tests/unit
 
   cd "$srcdir/docker-py-py2"
-  py.test2 tests/unit
+  py.test2 --cov=docker tests/unit
 
   # kill $(<"$srcdir/docker.pid")
 }
@@ -48,15 +55,15 @@
 package_python-docker-py() {
   depends=('python-requests' 'python-six' 'python-websocket-client')
 
-  cd "$srcdir/docker-py"
+  cd docker-py
   python setup.py install -O1 --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-docker-py() {
-  depends=('python2-requests' 'python2-six' 'python2-websocket-client')
+  depends=('python2-requests' 'python2-six' 'python2-websocket-client' 
'python2-backports.ssl_match_hostname' 'python2-ipaddress')
 
-  cd "$srcdir/docker-py-py2"
+  cd docker-py-py2
   python2 setup.py install -O1 --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Added: backports.patch
===
--- backports.patch (rev 0)
+++ backports.patch 2016-04-19 13:46:00 UTC (rev 171400)
@@ -0,0 +1,214 @@
+From 9da54931355c5ac7146e1f2b137a12cbbb190cfa Mon Sep 17 00:00:00 2001
+From: Felix Yan 
+Date: Fri, 8 Apr 2016 00:20:42 +0800
+Subject: [PATCH] Use backports.ssl_match_hostname
+
+The py2-ipaddress module unfortunately conflicts with the pypi:ipaddress 
module, which is in the dependency tree of widely used pyOpenSSL. I think it 
would be a good idea to use a well maintained backport of the Python 3.5 
implementation of match_hostname() instead of duplicating the effort and 
maintain another.
+
+All tests are passing here.
+
+Signed-off-by: Felix Yan 
+---
+ docker/ssladapter/ssl_match_hostname.py | 130 
+ docker/ssladapter/ssladapter.py |   2 +-
+ requirements.txt|   2 +-
+ setup.py|   2 +-
+ tests/unit/ssladapter_test.py   |  12 ++-
+ 5 files changed, 12 insertions(+), 136 deletions(-)
+ delete mode 100644 docker/ssladapter/ssl_match_hostname.py
+
+diff --git a/docker/ssladapter/ssl_match_hostname.py 
b/docker/ssladapter/ssl_match_hostname.py
+deleted file mode 100644
+index 9de0c5f..000
+--- a/docker/ssladapter/ssl_match_hostname.py
 /dev/null
+@@ -1,130 +0,0 @@
+-# Slightly modified version of match_hostname in python's ssl library
+-# https://hg.python.org/cpython/file/tip/Lib/ssl.py
+-# Changed to make code python 2.x compatible (unicode 

[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-02-22 Thread Felix Yan
Date: Tuesday, February 23, 2016 @ 04:41:58
  Author: fyan
Revision: 163170

upgpkg: python-docker-py 1.7.1-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-02-23 03:37:00 UTC (rev 163169)
+++ PKGBUILD2016-02-23 03:41:58 UTC (rev 163170)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.7.0
+pkgver=1.7.1
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
@@ -19,7 +19,7 @@
 sha256sums=('SKIP')
 
 prepare() {
-  sed -i 's/==.*$//' docker-py/test-requirements.txt
+  sed -i 's/==.*$//' docker-py/{,test-}requirements.txt
 
   cp -a docker-py{,-py2}
 }
@@ -33,14 +33,14 @@
 }
 
 check() {
-  # Needs root to run
+  # Skipping integration tests as docker needs root to run:
   # docker daemon -H fd:// -p "$srcdir/docker.pid"
 
   cd "$srcdir/docker-py"
-  python setup.py test || warning "Tests failed"
+  py.test tests/unit
 
   cd "$srcdir/docker-py-py2"
-  python2 setup.py test || warning "Tests failed"
+  py.test2 tests/unit
 
   # kill $(<"$srcdir/docker.pid")
 }


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2016-02-04 Thread Felix Yan
Date: Friday, February 5, 2016 @ 03:22:39
  Author: fyan
Revision: 160356

upgpkg: python-docker-py 1.7.0-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-02-05 02:21:47 UTC (rev 160355)
+++ PKGBUILD2016-02-05 02:22:39 UTC (rev 160356)
@@ -5,12 +5,12 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.6.0
+pkgver=1.7.0
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
 url="https://github.com/dotcloud/docker-py;
-license="Apache"
+license=("Apache")
 makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-requests' 
'python2-requests'
  'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client')
 checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'


[arch-commits] Commit in python-docker-py/trunk (PKGBUILD)

2015-11-30 Thread Felix Yan
Date: Tuesday, December 1, 2015 @ 03:59:04
  Author: fyan
Revision: 148058

upgpkg: python-docker-py 1.6.0-1

Modified:
  python-docker-py/trunk/PKGBUILD

--+
 PKGBUILD |   13 +++--
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-01 02:51:10 UTC (rev 148057)
+++ PKGBUILD2015-12-01 02:59:04 UTC (rev 148058)
@@ -5,7 +5,7 @@
 # Contributor: Josh VanderLinden 
 
 pkgname=(python-docker-py python2-docker-py)
-pkgver=1.5.0
+pkgver=1.6.0
 pkgrel=1
 pkgdesc="Python client for Docker."
 arch=('any')
@@ -13,13 +13,14 @@
 license="Apache"
 makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-requests' 
'python2-requests'
  'python-six' 'python2-six' 'python-websocket-client' 
'python2-websocket-client')
-# Tests failed to collect with pytest 2.8
-#checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock')
-checkdepends=('docker')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-mock' 
'python2-mock' 'docker'
+  'flake8' 'python2-flake8')
 source=("git+https://github.com/docker/docker-py.git#tag=$pkgver;)
 sha256sums=('SKIP')
 
 prepare() {
+  sed -i 's/==.*$//' docker-py/test-requirements.txt
+
   cp -a docker-py{,-py2}
 }
 
@@ -36,10 +37,10 @@
   # docker daemon -H fd:// -p "$srcdir/docker.pid"
 
   cd "$srcdir/docker-py"
-  # python setup.py test
+  python setup.py test || warning "Tests failed"
 
   cd "$srcdir/docker-py-py2"
-  # python2 setup.py test
+  python2 setup.py test || warning "Tests failed"
 
   # kill $(<"$srcdir/docker.pid")
 }