1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-lsp-server/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

69 lines
1.6 KiB
Text

# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-lsp-server
pkgver=1.7.1
pkgrel=0
pkgdesc="python implementation of the language server protocol, fork of python-language-server"
url="https://github.com/python-lsp/python-lsp-server"
arch="noarch !armhf !s390x" # armhf: no py3-qt, s390x: no py3-pylint
license="MIT"
depends="
py3-docstring-to-markdown
py3-jedi
py3-lsp-jsonrpc
py3-pluggy
py3-setuptools
py3-ujson
python3
"
makedepends="
py3-gpep517
py3-setuptools_scm
py3-wheel
"
checkdepends="
py3-autopep8
py3-flake8
py3-flaky
py3-matplotlib
py3-mccabe
py3-numpy
py3-pandas
py3-pycodestyle
py3-pydocstyle
py3-pyflakes
py3-pylint
py3-pytest
py3-pytest-cov
py3-python-versioneer
py3-qt5
py3-rope
py3-toml
py3-whatthepatch
py3-yapf
"
source="https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-$pkgver.tar.gz"
builddir="$srcdir/python-lsp-server-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
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
# deselect'ed tests are broken
testenv/bin/python3 -m pytest --deselect test/plugins/test_pydocstyle_lint.py
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
36c90f45071f35d0aeb0a57795eb6e9fb531baf9e8b468031b0d3e9eb2d53bee439893a333c6bf5f9d5b0818ec53675a3824850abef3e866e8ebdcd4a6142c48 python-lsp-server-1.7.1.tar.gz
"