mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-pep8-naming
|
|
pkgver=0.13.3
|
|
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 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"
|
|
|
|
replaces="py-pep8-naming" # Backwards compatibility
|
|
provides="py-pep8-naming=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
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() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
67953b0908833fe6fb9fb1e78ffe315c076814dd5be7d813b2357c977acf5c7355961af76e2a2bb700a5da4030b65ee8e146be5227ec141c4f6ed329de8455d4 pep8-naming-0.13.3.tar.gz
|
|
"
|