* update python-pytest-httpbin to 2.0.0-1
This commit is contained in:
parent
b66874e614
commit
2773796a6a
@ -2,23 +2,23 @@
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
pkgname=python-pytest-httpbin
|
||||
pkgver=1.0.2
|
||||
pkgrel=2
|
||||
pkgver=2.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='A py.test fixture for httpbining code'
|
||||
arch=(any)
|
||||
license=('MIT')
|
||||
url='https://github.com/kevin1024/pytest-httpbin'
|
||||
depends=('python-pytest' 'python-six' 'httpbin')
|
||||
makedepends=('python-setuptools')
|
||||
depends=('python-pytest' 'httpbin')
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
||||
checkdepends=('python-requests')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/kevin1024/pytest-httpbin/archive/v$pkgver.tar.gz"
|
||||
LICENSE)
|
||||
sha512sums=('b4adac1c37506391d83f7772814b4a9ce5134cc6834d8758e71d39610f8b29e57e72b11b2233be51e41b2c36bc305d40fc4b260a7f83d10390f4e940df8aa366'
|
||||
'949cb93164ce92e0a5acc184cca2da5580e31def2d153771ebfa386030fa2da65bcd48670780096d2cefe3e631dc755fc3024ae417f2d1bb3333bd85a39baf22')
|
||||
source=("https://github.com/kevin1024/pytest-httpbin/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
|
||||
$pkgname-LICENSE::https://raw.githubusercontent.com/kevin1024/pytest-httpbin/0bd7637a5c59b1a8376b9a4f051b02a97abb8c1b/LICENSE)
|
||||
sha512sums=('62876590bacae6601739f5cc2eccb087024e16731afc9613b5e6928c2a2f64b73418ddcb3c4f13a4bfe1f074510f922d85411d05ebf66f123a4a09d535771b64'
|
||||
'64e7f080f69371711a2181dc7c072e1e4770914b577daae141deab447d781bddd1eae8a79eda367549ed7830de3d80c1a29d7139478f547e40bed62f2d75a3ca')
|
||||
|
||||
build() {
|
||||
cd pytest-httpbin-$pkgver
|
||||
python setup.py build
|
||||
python -m build -nw
|
||||
}
|
||||
|
||||
check() {
|
||||
@ -26,13 +26,13 @@ check() {
|
||||
# https://github.com/kevin1024/pytest-httpbin/issues/64
|
||||
|
||||
cd pytest-httpbin-$pkgver
|
||||
python setup.py install --root="$PWD/tmp_install" --optimize=1
|
||||
python -m installer -d tmp_install dist/*.whl
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" pytest --deselect tests/test_server.py::test_redirect_location_is_https_for_secure_server
|
||||
PYTHONPATH="$PWD/tmp_install/$site_packages" pytest --deselect tests/test_server.py::test_redirect_location_is_https_for_secure_server
|
||||
}
|
||||
|
||||
package() {
|
||||
cd pytest-httpbin-$pkgver
|
||||
python setup.py install --root="$pkgdir"/ --optimize=1
|
||||
install -D -m644 ../LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
python -m installer -d "$pkgdir" dist/*.whl
|
||||
install -Dm644 ../$pkgname-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user