diff --git a/testing/py3-setuptools-declarative-requirements/APKBUILD b/testing/py3-setuptools-declarative-requirements/APKBUILD index e6c08e60c3c..e4c64467a63 100644 --- a/testing/py3-setuptools-declarative-requirements/APKBUILD +++ b/testing/py3-setuptools-declarative-requirements/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: Patrycja Rosa 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="