[arch-commits] Commit in python-docker/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Mar 29 16:49:16 UTC 2017
Date: Wednesday, March 29, 2017 @ 16:49:15
Author: felixonmars
Revision: 219906
upgpkg: python-docker 2.2.0-1
Modified:
python-docker/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-29 16:49:01 UTC (rev 219905)
+++ PKGBUILD 2017-03-29 16:49:15 UTC (rev 219906)
@@ -4,34 +4,35 @@
# Contributor: Vincent Demeester <vincent at sbr.io>
# Contributor: Josh VanderLinden <arch at cloudlery.com>
+pkgbase=python-docker
pkgname=(python-docker python2-docker)
-pkgver=2.1.0
+pkgver=2.2.0
pkgrel=1
pkgdesc="A Python library for the Docker Engine API"
arch=('any')
url="https://github.com/docker/docker-py"
license=("Apache")
-makedepends=('git' 'python-pip' 'python2-pip' 'python-requests' 'python2-requests'
- 'python-six' 'python2-six' 'python-websocket-client' 'python2-websocket-client'
+makedepends=('python-pip' 'python2-pip' 'python-requests' 'python2-requests' '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'
'flake8' 'python2-flake8')
checkdepends_x86_64=('docker')
-source=("git+https://github.com/docker/docker-py.git#tag=$pkgver")
-sha256sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz")
+sha256sums=('982d7a69cfd9f79d99630363dd18751bebadf55623f3a2fd1451c730107e03d0')
prepare() {
- sed -i 's/==.*$//' docker-py/{,test-}requirements.txt
+ sed -i 's/==.*$//' docker-py-$pkgver/{,test-}requirements.txt
- cp -a docker-py{,-py2}
+ cp -a docker-py-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/docker-py
+ cd "$srcdir"/docker-py-$pkgver
python setup.py build
- cd "$srcdir"/docker-py-py2
+ cd "$srcdir"/docker-py-$pkgver-py2
python2 setup.py build
}
@@ -39,10 +40,10 @@
# Skipping integration tests as docker needs root to run:
# docker daemon -H fd:// -p "$srcdir/docker.pid"
- cd "$srcdir/docker-py"
+ cd "$srcdir"/docker-py-$pkgver
py.test --cov=docker tests/unit
- cd "$srcdir/docker-py-py2"
+ cd "$srcdir"/docker-py-$pkgver-py2
py.test2 --cov=docker tests/unit
# kill $(<"$srcdir/docker.pid")
@@ -54,7 +55,7 @@
conflicts=('python-docker-py')
replaces=('python-docker-py')
- cd docker-py
+ cd docker-py-$pkgver
python setup.py install -O1 --root="$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
@@ -66,7 +67,7 @@
conflicts=('python2-docker-py')
replaces=('python2-docker-py')
- cd docker-py-py2
+ cd docker-py-$pkgver-py2
python2 setup.py install -O1 --root="$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list