mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pep8-naming: build with gpep517
This commit is contained in:
parent
0e199b015a
commit
6cf5f00de5
@ -2,13 +2,13 @@
|
||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
pkgname=py3-pep8-naming
|
||||
pkgver=0.13.3
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Check PEP-8 naming conventions plugin for flake8"
|
||||
url="https://github.com/PyCQA/pep8-naming"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 py3-flake8"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/p/pep8-naming/pep8-naming-$pkgver.tar.gz"
|
||||
builddir="$srcdir/pep8-naming-$pkgver"
|
||||
@ -17,15 +17,20 @@ replaces="py-pep8-naming" # Backwards compatibility
|
||||
provides="py-pep8-naming=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 run_tests.py
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user