mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-doit: build with gpep517
This commit is contained in:
parent
34f78c6508
commit
dde9cb201e
@ -3,13 +3,13 @@
|
|||||||
pkgname=py3-doit
|
pkgname=py3-doit
|
||||||
_pkgname=doit
|
_pkgname=doit
|
||||||
pkgver=0.36.0
|
pkgver=0.36.0
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="A Python Automation Tool"
|
pkgdesc="A Python Automation Tool"
|
||||||
url="https://pydoit.org/"
|
url="https://pydoit.org/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="py3-importlib-metadata py3-cloudpickle python3"
|
depends="py3-importlib-metadata py3-cloudpickle python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
@ -18,15 +18,20 @@ replaces="py-doit" # Backwards compatibility
|
|||||||
provides="py-doit=$pkgver-r$pkgrel" # Backwards compatibility
|
provides="py-doit=$pkgver-r$pkgrel" # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH=build/lib python3 -m doit --version
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m doit --version
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user