[arch-commits] Commit in python-pytest-httpbin/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 23 22:08:05 UTC 2018
Date: Wednesday, May 23, 2018 @ 22:08:04
Author: felixonmars
Revision: 328490
upgpkg: python-pytest-httpbin 0.3.0-1
Modified:
python-pytest-httpbin/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-23 22:07:49 UTC (rev 328489)
+++ PKGBUILD 2018-05-23 22:08:04 UTC (rev 328490)
@@ -3,31 +3,28 @@
pkgbase=python-pytest-httpbin
pkgname=('python-pytest-httpbin' 'python2-pytest-httpbin')
-_commit=e4ffbae0a44895ae8ddfdffdebd1b5e062d1d743
-pkgver=0.2.3
-pkgrel=2
+pkgver=0.3.0
+pkgrel=1
pkgdesc='A py.test fixture for httpbining code'
arch=('any')
license=('MIT')
url='https://github.com/kevin1024/pytest-httpbin'
-makedepends=('python-pytest' 'python2-pytest' 'python-flask' 'python2-flask'
- 'python-decorator' 'python2-decorator' 'python-six' 'python2-six'
- 'httpbin' 'python2-httpbin' 'git')
+makedepends=('python-pytest' 'python2-pytest' 'python-six' 'python2-six' 'httpbin' 'python2-httpbin')
checkdepends=('python-requests' 'python2-requests' 'python-pytest-runner' 'python2-pytest-runner')
-source=("git+https://github.com/kevin1024/pytest-httpbin.git#commit=$_commit"
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/kevin1024/pytest-httpbin/archive/v$pkgver.tar.gz"
LICENSE)
-md5sums=('SKIP'
- '784ac13962be640b76df58e023712ddd')
+sha512sums=('fdfd6ac9350151544852908f9a165ad4cde9135ffc86bdda8b2ecae21d3850ae20720b3fa150086e9501ac6138def5c63e05c7caf73be82c866220fab82de89a'
+ '949cb93164ce92e0a5acc184cca2da5580e31def2d153771ebfa386030fa2da65bcd48670780096d2cefe3e631dc755fc3024ae417f2d1bb3333bd85a39baf22')
prepare() {
- cp -a pytest-httpbin{,-py2}
+ cp -a pytest-httpbin-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/pytest-httpbin
+ cd "$srcdir"/pytest-httpbin-$pkgver
python setup.py build
- cd "$srcdir"/pytest-httpbin-py2
+ cd "$srcdir"/pytest-httpbin-$pkgver-py2
python2 setup.py build
}
@@ -34,27 +31,27 @@
check() {
# Hack entry points by installing it
- cd "$srcdir"/pytest-httpbin
+ cd "$srcdir"/pytest-httpbin-$pkgver
python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" python setup.py ptr
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" python setup.py pytest
- cd "$srcdir"/pytest-httpbin-py2
+ cd "$srcdir"/pytest-httpbin-$pkgver-py2
python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 setup.py ptr
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 setup.py pytest
}
package_python-pytest-httpbin() {
- depends=('python-pytest' 'python-flask' 'python-decorator' 'python-six' 'httpbin')
+ depends=('python-pytest' 'python-six' 'httpbin')
- cd pytest-httpbin
+ cd pytest-httpbin-$pkgver
python setup.py install --root="$pkgdir"/ --optimize=1
install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-pytest-httpbin() {
- depends=('python2-pytest' 'python2-flask' 'python2-decorator' 'python2-six' 'python2-httpbin')
+ depends=('python2-pytest' 'python2-six' 'python2-httpbin')
- cd pytest-httpbin-py2
+ cd pytest-httpbin-$pkgver-py2
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