mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
community/py3-pytest-httpbin: upgrade to 2.0.0
* https://github.com/kevin1024/pytest-httpbin/blob/v2.0.0/README.md#changelog
This commit is contained in:
parent
c8ebf48195
commit
b682b1ee25
@ -1,32 +1,37 @@
|
||||
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
||||
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
||||
pkgname=py3-pytest-httpbin
|
||||
pkgver=2.0.0_rc1
|
||||
pkgrel=1
|
||||
pkgver=2.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Easily test your HTTP library against a local copy of httpbin"
|
||||
url="https://github.com/kevin1024/pytest-httpbin"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-httpbin py3-six"
|
||||
makedepends="py3-setuptools"
|
||||
depends="py3-httpbin"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||
checkdepends="py3-pytest py3-requests"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-${pkgver/_/}.tar.gz"
|
||||
builddir="$srcdir/pytest-httpbin-${pkgver/_/}"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
# https://github.com/kevin1024/pytest-httpbin/issues/64
|
||||
python3 -m pytest -k 'not test_redirect_location_is_https_for_secure_server'
|
||||
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||
testenv/bin/python3 -m installer dist/*.whl
|
||||
testenv/bin/python3 -m pytest -k 'not test_redirect_location_is_https_for_secure_server'
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7ba6248925566a664074ee4dd1c582e36a9ba909ff95b6a5717b486c0c75d0a11e6b109edc6acba1c70a3973751588a1fc797f91cafa416d89f6cbc360d2fa29 pytest-httpbin-2.0.0rc1.tar.gz
|
||||
679a51e5155cf952258cab6efb3c26fd21b8a84a73b720dc5c00b36958c11a8de27b6ea6c696c76fe4e2a85fec56a2485d3233705301f11e45cb967328700657 pytest-httpbin-2.0.0.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user