backports/py3-hatch-fancy-pypi: move from user
This commit is contained in:
parent
a42582583b
commit
5d046fe878
2 changed files with 36 additions and 35 deletions
36
backports/py3-hatch-fancy-pypi-readme/APKBUILD
Normal file
36
backports/py3-hatch-fancy-pypi-readme/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=py3-hatch-fancy-pypi-readme
|
||||
_pkgname=${pkgname/py3-/}
|
||||
pkgver=23.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Fancy PyPI READMEs with Hatch"
|
||||
url="https://github.com/hynek/hatch-fancy-pypi-readme"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
makedepends="py3-gpep517 py3-installer py3-hatchling py3-hatch-vcs"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/hatch-fancy-pypi-readme/archive/refs/tags/$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest -k 'not test_end_to_end.py'
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a26b8205877815292c7c65380f3fff43a3222ec5044556a29fb0b570f0822b548f8f4403cb6a800044671692806b257ecee5f9ec0f3efb597e9a5780a8885424 py3-hatch-fancy-pypi-readme-23.1.0.tar.gz
|
||||
"
|
|
@ -1,35 +0,0 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
|
||||
_pyname=hatch_fancy_pypi_readme
|
||||
pkgname=py3-hatch-fancy-pypi-readme
|
||||
pkgver=22.8.0
|
||||
pkgrel=1
|
||||
arch="noarch"
|
||||
pkgdesc="Fancy PyPI READMEs with Hatch"
|
||||
url="https://pypi.python.org/project/$_pyname"
|
||||
license="MIT"
|
||||
depends="py3-hatchling"
|
||||
makedepends="py3-build py3-installer"
|
||||
checkdepends="py3-pytest py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
|
||||
build() {
|
||||
python3 -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
# Install to a temporary root for test_packaging
|
||||
pyver=$(python3 -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
|
||||
python3 -m installer --destdir="$srcdir/tmp_install" dist/*.whl
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python$pyver/site-packages pytest tests || true
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
sha512sums="
|
||||
e8f28a9020fc38bb03187e85688531c0fa895fcc56f3deb241bf19a71b2e88f2a354526eabe1a8e0bf7736f97883208eec2a7eac4199e08ddc40988643491632 py3-hatch-fancy-pypi-readme-22.8.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue