diff --git a/backports/py3-click-didyoumean/APKBUILD b/backports/py3-click-didyoumean/APKBUILD new file mode 100644 index 0000000..a9328e9 --- /dev/null +++ b/backports/py3-click-didyoumean/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: psykose +pkgname=py3-click-didyoumean +pkgver=0.3.0 +pkgrel=1 +pkgdesc="Git-like did-you-mean feature in click" +url="https://github.com/click-contrib/click-didyoumean" +arch="noarch" +license="MIT" +depends="python3 py3-click" +makedepends="py3-gpep517 py3-poetry-core" +checkdepends="py3-pytest" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-didyoumean/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/click-didyoumean-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + PYTHONPATH=src \ + pytest +} + +package() { + python3 -m installer -d "$pkgdir" \ + dist/*.whl +} + +sha512sums=" +4927ee392f27950c3f7ef5e0f1d5a5e2421172f3e9d34ec76986c9c7ea698cfa1981678a06fb8682577d6ed04c242c42bdd1d796d7623a1c99dfdbdb61c80fca py3-click-didyoumean-0.3.0.tar.gz +" diff --git a/user/py3-click-didyoumean/APKBUILD b/user/py3-click-didyoumean/APKBUILD deleted file mode 100644 index d703146..0000000 --- a/user/py3-click-didyoumean/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=click-didyoumean -pkgname="py3-$_pyname" -pkgver=0.3.0 -pkgrel=2 -arch="noarch" -pkgdesc="Enables git-like *did-you-mean* feature in click" -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="py3-click" -makedepends="py3-setuptools" -checkdepends="py3-pytest py3-vine" -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$PWD/src" pytest || true -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} -sha512sums=" -781d3f0f0ce7a8cbc297cce16647dd7bc8f2cc32db9071b68e896d8f01ef08382cd83051db685535b86a77b392ed93f6f8e453ed6d1299065a24df032cd046cb py3-click-didyoumean-0.3.0.tar.gz -"