1 |
commit: f91a10220c1b769070a2c3d18f34ee822a5697e5 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 28 11:48:55 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 12:06:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f91a1022 |
7 |
|
8 |
dev-python/python-lsp-server: add version 1.3.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/python-lsp-server/Manifest | 1 + |
14 |
.../python-lsp-server-1.3.2.ebuild | 91 ++++++++++++++++++++++ |
15 |
2 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-lsp-server/Manifest b/dev-python/python-lsp-server/Manifest |
18 |
index 1df65b66f4ef..d7d9f7e98f31 100644 |
19 |
--- a/dev-python/python-lsp-server/Manifest |
20 |
+++ b/dev-python/python-lsp-server/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST python-lsp-server-1.2.4.tar.gz 62073 BLAKE2B b1426d71a4da5ac29fa6b3e956010625d594eee7924a51eb5074933866254189a9738895bc5dd4aae8acc1733b9f162b73646d9a3eee3ac17a587456f2da00e4 SHA512 862d59426c6e7c19f9d3d2766ec5f9ec818d29988ee72cde9553e4b1725fbbe4230ed2f6d7e8d08983c9ef1ced8d5afe42d6751ea529d3d8799c8930b1e10a26 |
23 |
DIST python-lsp-server-1.3.1.tar.gz 62464 BLAKE2B 89bcd96aab49c1819df29f5535d527669ce6a1face08647247fb9fe3700882b95afb4c32e8c5b6cab81148476b71b5645a6290a2ab2252fdeb93691430dd7b4b SHA512 45327254b0826d2883d0838734eb97a53fb4c6f61fe72c397de903107dbb852834a4c363aa34189a06a5f40cadb3644cb940fd69c969210c287cd3c21b81283c |
24 |
+DIST python-lsp-server-1.3.2.tar.gz 62480 BLAKE2B 309b36190b3924846d919182fe971a9f201f4f7f788dee814faa2748d4d04ac15e2eabc5a7102afb0e728bd5a9b343859b5c0634999a8233fa17c906536a6e89 SHA512 9d918787648849cad54e7253f69c87aa82418c592a66e2929f678b5f8e127b52ccb4591dc83467158f776afa0f7fd9ccd3eaf6be3f6663ef434153cc66276179 |
25 |
|
26 |
diff --git a/dev-python/python-lsp-server/python-lsp-server-1.3.2.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.3.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..4abe8cd007cd |
29 |
--- /dev/null |
30 |
+++ b/dev-python/python-lsp-server/python-lsp-server-1.3.2.ebuild |
31 |
@@ -0,0 +1,91 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
40 |
+inherit distutils-r1 optfeature |
41 |
+ |
42 |
+DESCRIPTION="Python Language Server for the Language Server Protocol" |
43 |
+HOMEPAGE="https://github.com/python-lsp/python-lsp-server" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
49 |
+ |
50 |
+IUSE="all-plugins" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] |
55 |
+ <dev-python/autopep8-1.7.0[${PYTHON_USEDEP}] |
56 |
+ dev-python/flaky[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/flake8-4.0.0[${PYTHON_USEDEP}] |
58 |
+ <dev-python/flake8-4.1.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/mccabe-0.6.0[${PYTHON_USEDEP}] |
61 |
+ <dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] |
62 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
63 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/pycodestyle-2.8.0[${PYTHON_USEDEP}] |
65 |
+ <dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/pyflakes-2.4.0[${PYTHON_USEDEP}] |
68 |
+ <dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] |
70 |
+ dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}] |
71 |
+ >=dev-python/rope-0.10.5[${PYTHON_USEDEP}] |
72 |
+ dev-python/yapf[${PYTHON_USEDEP}] |
73 |
+ )" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ >=dev-python/jedi-0.17.2[${PYTHON_USEDEP}] |
77 |
+ <dev-python/jedi-0.19.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/python-lsp-jsonrpc-1.0.0[${PYTHON_USEDEP}] |
79 |
+ dev-python/pluggy[${PYTHON_USEDEP}] |
80 |
+ all-plugins? ( |
81 |
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] |
82 |
+ <dev-python/autopep8-1.7.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/flake8-4.0.0[${PYTHON_USEDEP}] |
84 |
+ <dev-python/flake8-4.1.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/mccabe-0.6.0[${PYTHON_USEDEP}] |
86 |
+ <dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/pycodestyle-2.8.0[${PYTHON_USEDEP}] |
88 |
+ <dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/pyflakes-2.4.0[${PYTHON_USEDEP}] |
91 |
+ <dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/rope-0.10.5[${PYTHON_USEDEP}] |
94 |
+ dev-python/yapf[${PYTHON_USEDEP}] |
95 |
+ ) |
96 |
+" |
97 |
+ |
98 |
+distutils_enable_tests pytest |
99 |
+ |
100 |
+python_prepare_all() { |
101 |
+ # remove pytest-cov dep |
102 |
+ sed -i -e '0,/addopts/I!d' setup.cfg || die |
103 |
+ |
104 |
+ # This fails with py3.10, but it is not important. Instead of |
105 |
+ # 'invalid syntax' we now get 'syntax-error' |
106 |
+ sed -i -e 's/test_syntax_error_pylint_py3/_&/' \ |
107 |
+ test/plugins/test_pylint_lint.py || die |
108 |
+ |
109 |
+ distutils-r1_python_prepare_all |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ optfeature "Automatically formats Python code to conform to the PEP 8 style guide" dev-python/autopep8 |
114 |
+ optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8 |
115 |
+ optfeature "flake8 plugin: McCabe complexity checker" dev-python/mccabe |
116 |
+ optfeature "Python style guide checker (fka pep8)" dev-python/pycodestyle |
117 |
+ optfeature "Python docstring style checker" dev-python/pydocstyle |
118 |
+ optfeature "Passive checker for Python programs" dev-python/pyflakes |
119 |
+ optfeature "Python code static checker" dev-python/pylint |
120 |
+ optfeature "Python refactoring library" dev-python/rope |
121 |
+ optfeature "A formatter for Python files" dev-python/yapf |
122 |
+} |