[arch-commits] Commit in python-docker-pycreds/repos (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 18:49:08 UTC 2016


    Date: Sunday, December 25, 2016 @ 18:49:08
  Author: bpiotrowski
Revision: 202274

archrelease: copy trunk to community-staging-any

Added:
  python-docker-pycreds/repos/community-staging-any/
  python-docker-pycreds/repos/community-staging-any/PKGBUILD
    (from rev 202273, python-docker-pycreds/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: python-docker-pycreds/repos/community-staging-any/PKGBUILD (from rev 202273, python-docker-pycreds/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 18:49:08 UTC (rev 202274)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Hideaki Takahashi <mymelo+aur at gmail.com>
+# Contributor: Vincent Demeester <vincent at sbr.pm>
+
+pkgname=(python-docker-pycreds python2-docker-pycreds)
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Python bindings for the docker credentials store API"
+arch=('any')
+license=('Apache')
+url="https://github.com/shin-/docker-pycreds"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'flake8' 'python2-flake8'
+              'python-pytest-cov' 'python2-pytest-cov')
+source=("git+https://github.com/shin-/dockerpy-creds.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  sed -i 's/==.*$//' dockerpy-creds/test-requirements.txt
+
+  cp -a dockerpy-creds{,-py2}
+}
+
+build() {
+  cd "$srcdir"/dockerpy-creds
+  python setup.py build
+
+  cd "$srcdir"/dockerpy-creds-py2
+  python2 setup.py build
+}
+
+# We don't have docker-credential-secretservice
+check_disabled() {
+  cd "$srcdir"/dockerpy-creds
+  python setup.py ptr
+
+  cd "$srcdir"/dockerpy-creds-py2
+  python2 setup.py ptr
+}
+
+package_python-docker-pycreds() {
+  depends=('python-six')
+
+  cd dockerpy-creds
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-docker-pycreds() {
+  depends=('python2-six')
+
+  cd dockerpy-creds-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list