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.
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-flake8
|
|
pkgver=6.0.0
|
|
pkgrel=0
|
|
pkgdesc="modular source code checker"
|
|
url="https://github.com/PyCQA/flake8"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pyflakes py3-pycodestyle py3-mccabe"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-pbr py3-atomicwrites py3-attrs py3-pluggy py3-six py3-mock"
|
|
source="https://github.com/PyCQA/flake8/archive/refs/tags/$pkgver/py3-flake8-$pkgver.tar.gz"
|
|
builddir="$srcdir/flake8-$pkgver"
|
|
|
|
replaces="py-flake8" # Backwards compatibility
|
|
provides="py-flake8=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 setup.py install
|
|
testenv/bin/python3 -m pytest -v \
|
|
--deselect=tests/integration/test_api_legacy.py::test_legacy_api \
|
|
--deselect=tests/integration/test_main.py \
|
|
--deselect=tests/integration/test_plugins.py \
|
|
--deselect=tests/unit/test_setuptools_command.py::test_package_files_removes_submodules \
|
|
--deselect=tests/unit/plugins/pycodestyle_test.py::test_up_to_date
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
27de4632332ee72bb5deedfcb7ea59e31a3e7fbfd6c165adf019b06cccaba51b776f4310219d8b27cf4894ed2597330fe9c0e381187353d4dc239f102eedd26a py3-flake8-6.0.0.tar.gz
|
|
"
|