backports/py3-fuzzywuzzy: move to gpep517
This commit is contained in:
parent
a2879576ea
commit
f4d9e64eff
1 changed files with 10 additions and 5 deletions
|
@ -3,28 +3,33 @@
|
|||
pkgname=py3-fuzzywuzzy
|
||||
_pyname=fuzzywuzzy
|
||||
pkgver=0.18.0
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="Fuzzy string matching in python"
|
||||
url="https://github.com/seatgeek/fuzzywuzzy"
|
||||
arch="noarch"
|
||||
license="GPL-2.0-only"
|
||||
depends="python3 py3-levenshtein"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest py3-pycodestyle py3-hypothesis"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pyname-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
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() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Reference in a new issue