backports/py3-fuzzywuzzy: move to gpep517

This commit is contained in:
Antoine Martin 2024-11-01 10:09:55 -04:00
parent a2879576ea
commit f4d9e64eff
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -3,28 +3,33 @@
pkgname=py3-fuzzywuzzy pkgname=py3-fuzzywuzzy
_pyname=fuzzywuzzy _pyname=fuzzywuzzy
pkgver=0.18.0 pkgver=0.18.0
pkgrel=6 pkgrel=7
pkgdesc="Fuzzy string matching in python" pkgdesc="Fuzzy string matching in python"
url="https://github.com/seatgeek/fuzzywuzzy" url="https://github.com/seatgeek/fuzzywuzzy"
arch="noarch" arch="noarch"
license="GPL-2.0-only" license="GPL-2.0-only"
depends="python3 py3-levenshtein" depends="python3 py3-levenshtein"
makedepends="py3-setuptools" makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest py3-pycodestyle py3-hypothesis" checkdepends="py3-pytest py3-pycodestyle py3-hypothesis"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver" builddir="$srcdir/$_pyname-$pkgver"
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
PYTHONPATH="$PWD/build/lib" pytest -v python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums=" sha512sums="