testing/py3-urllib3-secure-extra: move from user
This commit is contained in:
parent
034a8b80aa
commit
1499281eb9
1 changed files with 10 additions and 7 deletions
|
@ -9,21 +9,24 @@ arch="noarch"
|
||||||
pkgdesc="Marker library to detect whether urllib3 was installed with the deprecated [secure] extra"
|
pkgdesc="Marker library to detect whether urllib3 was installed with the deprecated [secure] extra"
|
||||||
url="https://pypi.python.org/project/$_pkgname"
|
url="https://pypi.python.org/project/$_pkgname"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
depends="py3-urllib3"
|
depends="
|
||||||
makedepends="py3-flit py3-build py3-installer"
|
py3-urllib3
|
||||||
checkdepends="py3-pytest"
|
"
|
||||||
|
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"
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
flit build --setup-py --format wheel
|
flit build --setup-py --format wheel
|
||||||
python3 -m build --wheel --no-isolation
|
python3 -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
|
||||||
PYTHONPATH="$srcdir" pytest || true
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
Loading…
Reference in a new issue