diff options
Diffstat (limited to 'community/py3-cliff/APKBUILD')
-rw-r--r-- | community/py3-cliff/APKBUILD | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/community/py3-cliff/APKBUILD b/community/py3-cliff/APKBUILD index 0a38b3a2620..3f729592206 100644 --- a/community/py3-cliff/APKBUILD +++ b/community/py3-cliff/APKBUILD @@ -1,41 +1,50 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=py3-cliff -pkgver=3.9.0 +pkgver=4.5.0 pkgrel=1 pkgdesc="Command Line Interface Formulation Framework" url="https://docs.openstack.org/cliff/latest/" arch="noarch" license="Apache-2.0" depends=" + py3-importlib-metadata + py3-stevedore py3-yaml - python3 " makedepends=" + py3-gpep517 py3-pbr py3-setuptools + py3-wheel " checkdepends=" py3-pytest py3-prettytable py3-stevedore " +subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/c/cliff/cliff-$pkgver.tar.gz" options="!check" # Requires specific (old) version of py3-cmd2 builddir="$srcdir/cliff-$pkgver" build() { - 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 + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } sha512sums=" -04b33e14c3b29a02dc04855044184f934919ff92dbc09003f620083e5815597f8dee7201fa33019dd58a3e701d4c3f9966be1f4d23e019a881fee9a9bc1f0dbd cliff-3.9.0.tar.gz +e32f5c6f53a37306e79de79d3be653ea9fbe8581da6162578048f17188bb48d82a8108bd118cf34712601b08f53be80287c33929e07993c7363b09ad4f076d33 cliff-4.5.0.tar.gz " |