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

Felix Yan felixonmars at archlinux.org
Wed May 3 14:51:09 UTC 2017


    Date: Wednesday, May 3, 2017 @ 14:51:09
  Author: felixonmars
Revision: 226668

upgpkg: python-deprecation 1.0.1-1

Modified:
  python-deprecation/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-03 14:44:54 UTC (rev 226667)
+++ PKGBUILD	2017-05-03 14:51:09 UTC (rev 226668)
@@ -3,39 +3,38 @@
 
 pkgbase=python-deprecation
 pkgname=('python-deprecation' 'python2-deprecation')
-pkgver=1.0
-_commit=6f27aaad7de77f5bbf804da82f08d39b78a139e6
+pkgver=1.0.1
 pkgrel=1
 pkgdesc="A library to handle automated deprecations"
 arch=('any')
 license=('Apache')
 url="http://deprecation.readthedocs.io"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python2-unittest2')
-source=("git+https://github.com/briancurtin/deprecation.git#commit=$_commit")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/briancurtin/deprecation/archive/$pkgver.tar.gz")
+sha512sums=('522ef7daca49f3174f54f53d3405ed81dc20ab4292d74a2fc7fffbbdc9f7f05610a201a6698f0ac9172d64e37927b2c2e23a1bf475b5b5291dd9bcc60484161b')
 
 prepare() {
-  cp -a deprecation{,-py2}
+  cp -a deprecation-$pkgver{,-py2}
 
-  sed -i 's/unittest2/unittest/g' deprecation/tests/*.py
+  sed -i 's/unittest2/unittest/g' deprecation-$pkgver/tests/*.py
 
   export LC_CTYPE=en_US.UTF-8
 }
 
 build() {
-  cd "$srcdir"/deprecation
+  cd "$srcdir"/deprecation-$pkgver
   python setup.py build
 
-  cd "$srcdir"/deprecation-py2
+  cd "$srcdir"/deprecation-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/deprecation
+  cd "$srcdir"/deprecation-$pkgver
   python -m unittest discover
 
-  cd "$srcdir"/deprecation-py2
+  cd "$srcdir"/deprecation-$pkgver-py2
   python2 -m unittest discover
 }
 
@@ -42,7 +41,7 @@
 package_python-deprecation() {
   depends=('python')
 
-  cd deprecation
+  cd deprecation-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
@@ -49,6 +48,6 @@
 package_python2-deprecation() {
   depends=('python2')
 
-  cd deprecation-py2
+  cd deprecation-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list