mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/py3-apipkg: upgrade to 3.0.2 & switch to gpep517
This commit is contained in:
parent
bdbf72ccb0
commit
26c0129d88
@ -1,35 +1,35 @@
|
||||
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
||||
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
||||
pkgname=py3-apipkg
|
||||
_pkgname=apipkg
|
||||
pkgver=2.1.0
|
||||
pkgrel=3
|
||||
pkgver=3.0.2
|
||||
pkgrel=0
|
||||
pkgdesc="apipkg: namespace control and lazy-import mechanism"
|
||||
url="https://github.com/pytest-dev/apipkg"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools py3-setuptools_scm"
|
||||
makedepends="py3-gpep517 py3-hatch-vcs py3-setuptools py3-wheel"
|
||||
checkdepends="py3-pytest"
|
||||
options="!check" # https://github.com/pytest-dev/apipkg/issues/55
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
replaces="py-apipkg" # Backwards compatibility
|
||||
provides="py-apipkg=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
source="https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/apipkg-$pkgver
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m 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 --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b apipkg-2.1.0.tar.gz
|
||||
82cacd3cb8074a5616c6c45bc1742e0774345e9e6f6a0e6f1786d23e2a8fe55f7330e9011de297d4decf7020aa737630db0b1063fe604daec544e754a92f7a0a apipkg-3.0.2.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user