mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Contributor: Russ Webber <russ@rw.id.au>
|
|
# Maintainer: Russ Webber <russ@rw.id.au>
|
|
pkgname=py3-pydocstyle
|
|
pkgver=6.3.0
|
|
pkgrel=0
|
|
pkgdesc="Static analysis tool for checking compliance with Python docstring conventions"
|
|
url="https://www.pydocstyle.org/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-snowballstemmer"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-poetry-core
|
|
py3-setuptools_scm
|
|
"
|
|
checkdepends="py3-pytest py3-mock"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/pydocstyle-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -i "s|0.0.0-dev|$pkgver|" pyproject.toml
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest --deselect src/tests/test_integration.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f8473b19ab6ef0b61787875558f9dd6f9f7f1954e1baa0010942af6d4de8dbca30c8c08be6acbf24aadd1c0a601ba9467b747026a6cd22379f0c4b84a38b57c7 py3-pydocstyle-6.3.0.tar.gz
|
|
"
|