Skip to content
Snippets Groups Projects
Commit 5e3bfed2 authored by Antoine Martin's avatar Antoine Martin Committed by omni
Browse files

community/py3-urllib3-secure-extra: enable tests

parent 8ab5629d
No related branches found
No related tags found
1 merge request!65510community/py3-urllib3-secure-extra: enable tests
Pipeline #232365 skipped
......@@ -3,7 +3,7 @@
pkgname=py3-urllib3-secure-extra
_pyname=urllib3-secure-extra
pkgver=0.1.0
pkgrel=1
pkgrel=2
arch="noarch"
pkgdesc="Marker library to detect whether urllib3 was installed with the deprecated [secure] extra"
url="https://pypi.python.org/project/urllib3-secure-extra"
......@@ -15,10 +15,12 @@ makedepends="
py3-gpep517
py3-setuptools
py3-wheel
py3-flit
py3-flit-core
"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/u/urllib3-secure-extra/urllib3-secure-extra-$pkgver.tar.gz"
checkdepends="
py3-pytest
"
source="$pkgname-$pkgver-gh.tar.gz::https://github.com/urllib3/urllib3-secure-extra/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
......@@ -28,10 +30,17 @@ build() {
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer --destdir="$pkgdir" .dist/*.whl
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
151dfa2dd4e7fecea482bec0be69410c213336b95e00c900f600053dc9777618c3b9cc1c69e14f61e909ad7b785bcf391ea11c74b1b710749b70e138fbdd6de3 py3-urllib3-secure-extra-0.1.0.tar.gz
e656c30d17ea3b0af14a49770eced285c33fdbd5cae91bfb2090d0ef4b58bb8048caae916e344d13380a5155495659da0f572847db556042088692d2ca7f362f py3-urllib3-secure-extra-0.1.0-gh.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment