aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2023-09-03 02:34:06 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2023-09-03 07:50:37 +0000
commit6e5578eb86625077e0289314ffbdacb6a1d33bb7 (patch)
tree8ecb77a78f3cac1bac525daa96a62718bb97ed2f
parent03df48e3c2ff06af2012883c483539ab854cac98 (diff)
community/py3-validators: upgrade to 0.22.0 & use gpep517 packaging
also, change url and source to new Github repo
-rw-r--r--community/py3-validators/APKBUILD24
1 files changed, 14 insertions, 10 deletions
diff --git a/community/py3-validators/APKBUILD b/community/py3-validators/APKBUILD
index aa860257a9e..36c548e9c98 100644
--- a/community/py3-validators/APKBUILD
+++ b/community/py3-validators/APKBUILD
@@ -1,31 +1,35 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-validators
-pkgver=0.20.0
-pkgrel=2
+pkgver=0.22.0
+pkgrel=0
pkgdesc="Python3 Data Validation for Humans"
-url="https://github.com/kvesteri/validators"
+url="https://github.com/python-validators/validators"
arch="noarch"
license="MIT"
-depends="python3 py3-decorator"
-makedepends="py3-setuptools"
+depends="py3-decorator"
+makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-isort py3-pytest py3-flake8"
subpackages="$pkgname-pyc"
-source="https://files.pythonhosted.org/packages/source/v/validators/validators-$pkgver.tar.gz"
+source="https://github.com/python-validators/validators/archive/$pkgver/py3-validators-$pkgver.tar.gz"
builddir="$srcdir/validators-$pkgver"
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
- py.test-3
+ python3 -m venv --clear --without-pip --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="
-2f3d9caac9246b346e10604758168092ac483fe6e4a0c9470900e49719fbbebfd18e03aca525f8cca33cec224589aee28de3ea9bf5cd4941a49715d4216dba20 validators-0.20.0.tar.gz
+61a39c141138dca3d0ea691255cc448475078b9100185a88ceb779308014c136b47331121f0473bfc3d1d2dd8ddbaf9f16bdf22c04e854e47d36c6701a0f704e py3-validators-0.22.0.tar.gz
"