Skip to content
Snippets Groups Projects
Commit 86e59779 authored by Galen Abell's avatar Galen Abell
Browse files

community/py3-tldextract: upgrade to 3.4.1

parent 76556602
No related branches found
No related tags found
1 merge request!46480community/py3-tldextract: upgrade to 3.4.1
......@@ -2,8 +2,8 @@
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-tldextract
_pyname=tldextract
pkgver=3.4.0
pkgrel=2
pkgver=3.4.1
pkgrel=0
pkgdesc="Accurately separate the TLD from the registered domain and subdomains of a URL"
url="https://github.com/john-kurkowski/tldextract"
arch="noarch"
......@@ -15,7 +15,7 @@ depends="
py3-requests-file
py3-filelock
"
makedepends="py3-setuptools py3-setuptools_scm"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest py3-pytest-mock py3-responses"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/john-kurkowski/tldextract/archive/$pkgver.tar.gz"
......@@ -23,16 +23,20 @@ builddir="$srcdir/$_pyname-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 setup.py build
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
python3 -m venv --clear --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
4986b19fb6816884e064ba7f411e88bbe58ea7dc5674ac946d299a867781748edb39a1df6ee5acc341b25488358048add0d66b386b6705d54fa0a3d72056a27a tldextract-3.4.0.tar.gz
6918ad59daeb002fc58656537578d0f977272169a96f31fe57c3a02c25eaacf2d3fd6e8907e3e215fecf2ea860b4c5ca1624f9f5c834e6f94fe8fcd60ae6fbdc tldextract-3.4.1.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