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

Felix Yan felixonmars at archlinux.org
Fri Oct 21 08:05:14 UTC 2016


    Date: Friday, October 21, 2016 @ 08:05:13
  Author: felixonmars
Revision: 192802

archrelease: copy trunk to community-any

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

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

Copied: python-docker-pycreds/repos/community-any/PKGBUILD (from rev 192801, python-docker-pycreds/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-21 08:05:13 UTC (rev 192802)
@@ -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=1
+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