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

Felix Yan felixonmars at archlinux.org
Thu Feb 15 12:21:38 UTC 2018


    Date: Thursday, February 15, 2018 @ 12:21:37
  Author: felixonmars
Revision: 294598

upgpkg: python-docker-pycreds 0.2.2-1

Modified:
  python-docker-pycreds/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-15 12:21:25 UTC (rev 294597)
+++ PKGBUILD	2018-02-15 12:21:37 UTC (rev 294598)
@@ -3,9 +3,10 @@
 # Contributor: Hideaki Takahashi <mymelo+aur at gmail.com>
 # Contributor: Vincent Demeester <vincent at sbr.pm>
 
+pkgbase=python-docker-pycreds
 pkgname=(python-docker-pycreds python2-docker-pycreds)
-pkgver=0.2.1
-pkgrel=2
+pkgver=0.2.2
+pkgrel=1
 pkgdesc="Python bindings for the docker credentials store API"
 arch=('any')
 license=('Apache')
@@ -13,29 +14,29 @@
 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')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/shin-/dockerpy-creds/archive/$pkgver.tar.gz")
+sha512sums=('3b4d28fc1354d13ad517a96af415c76a3168432a2df6b416f50eede08419739e5ac3373997b218c3accf33ab80c61aca238aa60261e1b567dabae39ad01bf1d6')
 
 prepare() {
-  sed -i 's/==.*$//' dockerpy-creds/test-requirements.txt
+  sed -i 's/==.*$//' dockerpy-creds-$pkgver/test-requirements.txt
 
-  cp -a dockerpy-creds{,-py2}
+  cp -a dockerpy-creds-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/dockerpy-creds
+  cd "$srcdir"/dockerpy-creds-$pkgver
   python setup.py build
 
-  cd "$srcdir"/dockerpy-creds-py2
+  cd "$srcdir"/dockerpy-creds-$pkgver-py2
   python2 setup.py build
 }
 
 # We don't have docker-credential-secretservice
 check_disabled() {
-  cd "$srcdir"/dockerpy-creds
+  cd "$srcdir"/dockerpy-creds-$pkgver
   python setup.py pytest
 
-  cd "$srcdir"/dockerpy-creds-py2
+  cd "$srcdir"/dockerpy-creds-$pkgver-py2
   python2 setup.py pytest
 }
 
@@ -42,7 +43,7 @@
 package_python-docker-pycreds() {
   depends=('python-six')
 
-  cd dockerpy-creds
+  cd dockerpy-creds-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
@@ -49,6 +50,6 @@
 package_python2-docker-pycreds() {
   depends=('python2-six')
 
-  cd dockerpy-creds-py2
+  cd dockerpy-creds-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list