Date: Wednesday, August 23, 2017 @ 04:50:57 Author: felixonmars Revision: 253001
archrelease: copy trunk to community-testing-any Added: python-docker/repos/community-testing-any/PKGBUILD (from rev 253000, python-docker/trunk/PKGBUILD) Deleted: python-docker/repos/community-testing-any/PKGBUILD ----------+ PKGBUILD | 146 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 73 insertions(+), 73 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-08-23 04:50:34 UTC (rev 253000) +++ PKGBUILD 2017-08-23 04:50:57 UTC (rev 253001) @@ -1,73 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Hideaki Takahashi <mymelo+...@gmail.com> -# Contributor: Vincent Demeester <vinc...@sbr.io> -# Contributor: Josh VanderLinden <a...@cloudlery.com> - -pkgbase=python-docker -pkgname=(python-docker python2-docker) -pkgver=2.5.0 -pkgrel=1 -pkgdesc="A Python library for the Docker Engine API" -arch=('any') -url="https://github.com/docker/docker-py" -license=("Apache") -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=("$pkgbase-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz") -sha512sums=('1fb96e9835bc9263e4daf091b6531e72847eea2ee0fe73e96588b42a64edfeef6740142dd8b29a9739e5ca11f60ace21f93f25a9886077d3e2135a1a2bec31e8') - -prepare() { - sed -i 's/==.*$//' docker-py-$pkgver/{,test-}requirements.txt - - cp -a docker-py-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/docker-py-$pkgver - python setup.py build - - cd "$srcdir"/docker-py-$pkgver-py2 - python2 setup.py build -} - -check() { - # Skipping integration tests as docker needs root to run: - # docker daemon -H fd:// -p "$srcdir/docker.pid" - - cd "$srcdir"/docker-py-$pkgver - py.test --cov=docker tests/unit - - cd "$srcdir"/docker-py-$pkgver-py2 - py.test2 --cov=docker tests/unit - - # kill $(<"$srcdir/docker.pid") -} - -package_python-docker() { - depends=('python-requests' 'python-six' 'python-websocket-client' 'python-docker-pycreds') - provides=('python-docker-py') - conflicts=('python-docker-py') - replaces=('python-docker-py') - - cd docker-py-$pkgver - python setup.py install -O1 --root="$pkgdir" - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-docker() { - depends=('python2-requests' 'python2-six' 'python2-websocket-client' 'python2-docker-pycreds' - 'python2-backports.ssl_match_hostname' 'python2-ipaddress') - provides=('python2-docker-py') - conflicts=('python2-docker-py') - replaces=('python2-docker-py') - - cd docker-py-$pkgver-py2 - python2 setup.py install -O1 --root="$pkgdir" - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-docker/repos/community-testing-any/PKGBUILD (from rev 253000, python-docker/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-08-23 04:50:57 UTC (rev 253001) @@ -0,0 +1,73 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Hideaki Takahashi <mymelo+...@gmail.com> +# Contributor: Vincent Demeester <vinc...@sbr.io> +# Contributor: Josh VanderLinden <a...@cloudlery.com> + +pkgbase=python-docker +pkgname=(python-docker python2-docker) +pkgver=2.5.1 +pkgrel=1 +pkgdesc="A Python library for the Docker Engine API" +arch=('any') +url="https://github.com/docker/docker-py" +license=("Apache") +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=("$pkgbase-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz") +sha512sums=('5862589fbb831c6960ce5e6d256c716b64c2ad28d9c3542fd290f80b0deeac3a4985a96f3a9e04f55b184b03498900d8d520085cbda223b54480db4bbf977d1e') + +prepare() { + sed -i 's/==.*$//' docker-py-$pkgver/{,test-}requirements.txt + + cp -a docker-py-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/docker-py-$pkgver + python setup.py build + + cd "$srcdir"/docker-py-$pkgver-py2 + python2 setup.py build +} + +check() { + # Skipping integration tests as docker needs root to run: + # docker daemon -H fd:// -p "$srcdir/docker.pid" + + cd "$srcdir"/docker-py-$pkgver + py.test --cov=docker tests/unit + + cd "$srcdir"/docker-py-$pkgver-py2 + py.test2 --cov=docker tests/unit + + # kill $(<"$srcdir/docker.pid") +} + +package_python-docker() { + depends=('python-requests' 'python-six' 'python-websocket-client' 'python-docker-pycreds') + provides=('python-docker-py') + conflicts=('python-docker-py') + replaces=('python-docker-py') + + cd docker-py-$pkgver + python setup.py install -O1 --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-docker() { + depends=('python2-requests' 'python2-six' 'python2-websocket-client' 'python2-docker-pycreds' + 'python2-backports.ssl_match_hostname' 'python2-ipaddress') + provides=('python2-docker-py') + conflicts=('python2-docker-py') + replaces=('python2-docker-py') + + cd docker-py-$pkgver-py2 + python2 setup.py install -O1 --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}