1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/py3-pytest-isort/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
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.
2023-02-09 22:55:20 +01:00

35 lines
1 KiB
Text

# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pytest-isort
_pyname=pytest-isort
pkgver=3.1.0
pkgrel=1
pkgdesc="pytest plugin to check import ordering using isort"
url="https://pypi.org/project/pytest-isort/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pytest py3-isort"
makedepends="py3-gpep517 py3-poetry-core"
source="https://github.com/stephrdev/pytest-isort/archive/refs/tags/$pkgver/py3-pytest-isort-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 -m installer dist/pytest_isort-*.whl
test-env/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/pytest_isort-*.whl
rm "$pkgdir"/usr/lib/python3.*/site-packages/LICENSE.rst
}
sha512sums="
a01799b832783301818aba5d441cdb9167a367e2c434df9790e4b2d839a9cdab03683736f43339a07ef4444ca0bddfb1b6cd503db170b6544f8c14617e7398df py3-pytest-isort-3.1.0.tar.gz
"