testing/py3-urllib3-secure-extra: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:57 -04:00
parent 034a8b80aa
commit 1499281eb9

View file

@ -9,21 +9,24 @@ arch="noarch"
pkgdesc="Marker library to detect whether urllib3 was installed with the deprecated [secure] extra"
url="https://pypi.python.org/project/$_pkgname"
license="Apache-2.0"
depends="py3-urllib3"
makedepends="py3-flit py3-build py3-installer"
checkdepends="py3-pytest"
depends="
py3-urllib3
"
makedepends="
py3-flit
py3-build
py3-installer
"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
subpackages="$pkgname-pyc"
build() {
flit build --setup-py --format wheel
python3 -m build --wheel --no-isolation
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}