mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-columnize: build with gpep517
This commit is contained in:
parent
f3945ec7b7
commit
16bcdbb2e5
@ -2,30 +2,36 @@
|
|||||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||||
pkgname=py3-columnize
|
pkgname=py3-columnize
|
||||||
pkgver=0.3.11
|
pkgver=0.3.11
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Python module to align in columns a simple list"
|
pkgdesc="Python module to align in columns a simple list"
|
||||||
url="https://github.com/rocky/pycolumnize"
|
url="https://github.com/rocky/pycolumnize"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
replaces="py-columnize" # for backwards compatibility
|
|
||||||
provides="py-columnize=$pkgver-r$pkgrel" # for backwards compatibility
|
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools py3-nose"
|
makedepends="py3-setuptools py3-nose py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-mock py3-pytest-mock"
|
checkdepends="py3-pytest py3-mock py3-pytest-mock"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/c/columnize/columnize-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/c/columnize/columnize-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/columnize-$pkgver
|
builddir="$srcdir"/columnize-$pkgver
|
||||||
|
|
||||||
|
replaces="py-columnize" # for backwards compatibility
|
||||||
|
provides="py-columnize=$pkgver-r$pkgrel" # for 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 pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
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