[arch-commits] Commit in python-expects/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 25 19:04:20 UTC 2018
Date: Thursday, October 25, 2018 @ 19:04:20
Author: felixonmars
Revision: 399035
upgpkg: python-expects 0.9.0-1
Modified:
python-expects/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++---------------------
1 file changed, 13 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-25 19:02:03 UTC (rev 399034)
+++ PKGBUILD 2018-10-25 19:04:20 UTC (rev 399035)
@@ -2,34 +2,26 @@
pkgbase=python-expects
pkgname=('python-expects' 'python2-expects')
-pkgver=0.8.0
-pkgrel=3
+pkgver=0.9.0
+pkgrel=1
pkgdesc="Expressive and extensible TDD/BDD assertion library for Python"
arch=('any')
license=('Apache')
url="https://github.com/jaimegildesagredo/expects"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-mamba' 'python2-mamba')
-source=("git+https://github.com/jaimegildesagredo/expects.git#tag=v$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaimegildesagredo/expects/archive/v$pkgver.tar.gz")
+sha512sums=('f145ed9b1a8921ddc813640f1c6533f41a3dc0f14bf90a69409e0c600cae502cfa16237864103c7e67560f6831ab2db23955ce533439e4fd3b896f2c8c9e7cbb')
-prepare() {
- cp -a expects{,-py2}
-}
-
build() {
- cd "$srcdir"/expects
+ cd expects-$pkgver
python setup.py build
-
- cd "$srcdir"/expects-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/expects
+ cd expects-$pkgver
mamba
-
- cd "$srcdir"/expects-py2
mamba2
}
@@ -36,15 +28,15 @@
package_python-expects() {
depends=('python')
- cd expects
- python setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd expects-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-expects() {
depends=('python2')
- cd expects-py2
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd expects-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list