testing/py3-setuptools-declarative-requirements: switch to gpep517

This commit is contained in:
ptrcnull 2024-01-16 23:11:59 +01:00
parent 22d0b409f5
commit 4c9725d29c
No known key found for this signature in database
GPG Key ID: 411F7B30801DD9CA

View File

@ -2,13 +2,13 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-setuptools-declarative-requirements
pkgver=1.3.0
pkgrel=1
pkgrel=2
pkgdesc="Requirements Support For Setuptools Declarative setup.cfg"
url="https://github.com/s0undt3ch/setuptools-declarative-requirements"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-setuptools"
makedepends="py3-setuptools_scm"
depends="py3-setuptools"
makedepends="py3-setuptools_scm py3-gpep517 py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/s0undt3ch/setuptools-declarative-requirements/archive/refs/tags/$pkgver/py3-setuptools-declarative-requirements-$pkgver.tar.gz"
@ -17,15 +17,20 @@ options="!check" # circular dependency with py3-pytest-shell-utilities
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 --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="