10 |
10 |
inherit distutils-r1 optfeature pypi
|
11 |
11 |
|
12 |
12 |
DESCRIPTION="Python Language Server for the Language Server Protocol"
|
13 |
|
HOMEPAGE="https://github.com/python-lsp/python-lsp-server"
|
|
13 |
HOMEPAGE="
|
|
14 |
https://github.com/python-lsp/python-lsp-server/
|
|
15 |
https://pypi.org/project/python-lsp-server/
|
|
16 |
"
|
14 |
17 |
|
15 |
18 |
LICENSE="MIT"
|
16 |
19 |
SLOT="0"
|
17 |
|
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
|
|
20 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
18 |
21 |
IUSE="all-plugins"
|
19 |
22 |
|
20 |
|
BDEPEND="
|
21 |
|
test? (
|
|
23 |
RDEPEND="
|
|
24 |
dev-python/docstring-to-markdown[${PYTHON_USEDEP}]
|
|
25 |
>=dev-python/jedi-0.17.2[${PYTHON_USEDEP}]
|
|
26 |
>=dev-python/python-lsp-jsonrpc-1.1.0[${PYTHON_USEDEP}]
|
|
27 |
dev-python/pluggy[${PYTHON_USEDEP}]
|
|
28 |
all-plugins? (
|
22 |
29 |
>=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}]
|
23 |
|
dev-python/flaky[${PYTHON_USEDEP}]
|
24 |
30 |
>=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
|
25 |
|
dev-python/matplotlib[${PYTHON_USEDEP}]
|
26 |
31 |
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
|
27 |
|
dev-python/numpy[${PYTHON_USEDEP}]
|
28 |
|
dev-python/pandas[${PYTHON_USEDEP}]
|
29 |
32 |
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
|
30 |
33 |
>=dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
|
31 |
34 |
<dev-python/pydocstyle-6.4.0[${PYTHON_USEDEP}]
|
32 |
35 |
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
|
33 |
36 |
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
|
34 |
|
dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
|
35 |
37 |
>=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
|
36 |
38 |
>=dev-python/yapf-0.33.0[${PYTHON_USEDEP}]
|
37 |
39 |
>=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
|
38 |
40 |
)
|
39 |
41 |
"
|
40 |
|
|
41 |
|
RDEPEND="
|
42 |
|
dev-python/docstring-to-markdown[${PYTHON_USEDEP}]
|
43 |
|
>=dev-python/jedi-0.17.2[${PYTHON_USEDEP}]
|
44 |
|
>=dev-python/python-lsp-jsonrpc-1.0.0[${PYTHON_USEDEP}]
|
45 |
|
dev-python/pluggy[${PYTHON_USEDEP}]
|
46 |
|
all-plugins? (
|
|
42 |
BDEPEND="
|
|
43 |
test? (
|
47 |
44 |
>=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}]
|
|
45 |
dev-python/flaky[${PYTHON_USEDEP}]
|
48 |
46 |
>=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
|
|
47 |
dev-python/matplotlib[${PYTHON_USEDEP}]
|
49 |
48 |
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
|
|
49 |
dev-python/numpy[${PYTHON_USEDEP}]
|
|
50 |
dev-python/pandas[${PYTHON_USEDEP}]
|
50 |
51 |
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
|
51 |
52 |
>=dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
|
52 |
53 |
<dev-python/pydocstyle-6.4.0[${PYTHON_USEDEP}]
|
53 |
54 |
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
|
54 |
55 |
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
|
|
56 |
dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
|
55 |
57 |
>=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
|
56 |
58 |
>=dev-python/yapf-0.33.0[${PYTHON_USEDEP}]
|
57 |
59 |
>=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
|
... | ... | |
60 |
62 |
|
61 |
63 |
distutils_enable_tests pytest
|
62 |
64 |
|
63 |
|
EPYTEST_DESELECT=(
|
64 |
|
# broken by presence of pathlib2
|
65 |
|
'test/plugins/test_autoimport.py'
|
66 |
|
)
|
67 |
|
|
68 |
65 |
python_prepare_all() {
|
69 |
66 |
# remove pytest-cov dep
|
70 |
67 |
sed -i -e '/addopts =/d' pyproject.toml || die
|
... | ... | |
73 |
70 |
distutils-r1_python_prepare_all
|
74 |
71 |
}
|
75 |
72 |
|
|
73 |
python_test() {
|
|
74 |
local EPYTEST_DESELECT=(
|
|
75 |
# broken by presence of pathlib2
|
|
76 |
'test/plugins/test_autoimport.py'
|
|
77 |
)
|
|
78 |
|
|
79 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
|
80 |
epytest
|
|
81 |
}
|
|
82 |
|
76 |
83 |
pkg_postinst() {
|
77 |
84 |
optfeature "Automatically format Python code to conform to the PEP 8 style guide" dev-python/autopep8
|
78 |
85 |
optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8
|