1 |
commit: 1973fabef170c2c801f765f4be760b9f4be4c770 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 12:28:03 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 12:28:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1973fabe |
7 |
|
8 |
dev-python/python-lsp-server: add 1.6.0 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-lsp-server/Manifest | 1 + |
13 |
...ython-lsp-server-1.6.0-unpin-all-the-deps.patch | 51 +++++++++++++ |
14 |
.../python-lsp-server-1.6.0.ebuild | 87 ++++++++++++++++++++++ |
15 |
3 files changed, 139 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-lsp-server/Manifest b/dev-python/python-lsp-server/Manifest |
18 |
index 7c7e9eae8388..f0b66bc22324 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.4.1.tar.gz 76416 BLAKE2B 65638b876182c478434c563371b802367fb8439820ccf57e4404dc1507f3cd514ae5d738d418386607db606025fe5126a533c656ec3fede53fdcfd364a4292cf SHA512 4c9171adc88d219c80055ebbc76566583925129969467c156277b52de9b5981b74b11b9961247045ea98cd9e51e146b2d606c8351a7be5db76f6f4e0e4d7195c |
23 |
DIST python-lsp-server-1.5.0.tar.gz 82371 BLAKE2B 3ff388a95f7ae9f4a8e1b41244da1d05e9310e1edcbc7cbd2b17bd4fa0cbe696f31885b2093afb12e879c875b2bfa721cf4e5e9876002f145cf1633238f6238a SHA512 4e3463dc737b4f5f2af0faa8ab2eb10bea8208d4633c22acde9c8ffa2a888b2350e5994dca2a66031e301224a2646660f627d7fc238cbf5103e82a0453a9a809 |
24 |
+DIST python-lsp-server-1.6.0.tar.gz 85242 BLAKE2B 52fcca5a93035a6ec8179908b2139e9392220cad082afb4c31b18284cdd53050c68fca4bcc9d852fa9acb49200487431fec37dc840e61ab9320fd6c3a86189ee SHA512 e4ab52f334fb1eece3458258ed39bf66eeb6056ed7e243be9c69ce2bac92792786df2fbc1d316133ac5523b44a57e7d89d4d6f18120c748e78ef20570a325c9b |
25 |
|
26 |
diff --git a/dev-python/python-lsp-server/files/python-lsp-server-1.6.0-unpin-all-the-deps.patch b/dev-python/python-lsp-server/files/python-lsp-server-1.6.0-unpin-all-the-deps.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..28bc0f84c6a8 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/python-lsp-server/files/python-lsp-server-1.6.0-unpin-all-the-deps.patch |
31 |
@@ -0,0 +1,51 @@ |
32 |
+diff --git a/pyproject.toml b/pyproject.toml |
33 |
+index 8cce90e..18cf2db 100644 |
34 |
+--- a/pyproject.toml |
35 |
++++ b/pyproject.toml |
36 |
+@@ -13,7 +13,7 @@ readme = "README.md" |
37 |
+ license = {text = "MIT"} |
38 |
+ requires-python = ">=3.7" |
39 |
+ dependencies = [ |
40 |
+- "jedi>=0.17.2,<0.19.0", |
41 |
++ "jedi>=0.17.2", |
42 |
+ "python-lsp-jsonrpc>=1.0.0", |
43 |
+ "pluggy>=1.0.0", |
44 |
+ "docstring-to-markdown", |
45 |
+@@ -27,26 +27,26 @@ Homepage = "https://github.com/python-lsp/python-lsp-server" |
46 |
+ |
47 |
+ [project.optional-dependencies] |
48 |
+ all = [ |
49 |
+- "autopep8>=1.6.0,<1.7.0", |
50 |
+- "flake8>=5.0.0,<5.1.0", |
51 |
+- "mccabe>=0.7.0,<0.8.0", |
52 |
+- "pycodestyle>=2.9.0,<2.10.0", |
53 |
++ "autopep8>=1.6.0", |
54 |
++ "flake8>=5.0.0", |
55 |
++ "mccabe>=0.7.0", |
56 |
++ "pycodestyle>=2.9.0", |
57 |
+ "pydocstyle>=2.0.0", |
58 |
+- "pyflakes>=2.5.0,<2.6.0", |
59 |
++ "pyflakes>=2.5.0", |
60 |
+ "pylint>=2.5.0", |
61 |
+ "rope>=0.10.5", |
62 |
+ "yapf", |
63 |
+ "whatthepatch" |
64 |
+ ] |
65 |
+-autopep8 = ["autopep8>=1.6.0,<1.7.0"] |
66 |
+-flake8 = ["flake8>=5.0.0,<5.1.0"] |
67 |
+-mccabe = ["mccabe>=0.7.0,<0.8.0"] |
68 |
+-pycodestyle = ["pycodestyle>=2.9.0,<2.10.0"] |
69 |
++autopep8 = ["autopep8>=1.6.0"] |
70 |
++flake8 = ["flake8>=5.0.0"] |
71 |
++mccabe = ["mccabe>=0.7.0"] |
72 |
++pycodestyle = ["pycodestyle>=2.9.0"] |
73 |
+ pydocstyle = ["pydocstyle>=2.0.0"] |
74 |
+-pyflakes = ["pyflakes>=2.5.0,<2.6.0"] |
75 |
++pyflakes = ["pyflakes>=2.5.0"] |
76 |
+ pylint = ["pylint>=2.5.0"] |
77 |
+ rope = ["rope>0.10.5"] |
78 |
+-yapf = ["yapf", "whatthepatch>=1.0.2,<2.0.0"] |
79 |
++yapf = ["yapf", "whatthepatch>=1.0.2"] |
80 |
+ websockets = ["websockets>=10.3"] |
81 |
+ test = [ |
82 |
+ "pylint>=2.5.0", |
83 |
|
84 |
diff --git a/dev-python/python-lsp-server/python-lsp-server-1.6.0.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.6.0.ebuild |
85 |
new file mode 100644 |
86 |
index 000000000000..9b0f7992662b |
87 |
--- /dev/null |
88 |
+++ b/dev-python/python-lsp-server/python-lsp-server-1.6.0.ebuild |
89 |
@@ -0,0 +1,87 @@ |
90 |
+# Copyright 1999-2022 Gentoo Authors |
91 |
+# Distributed under the terms of the GNU General Public License v2 |
92 |
+ |
93 |
+EAPI=8 |
94 |
+ |
95 |
+DISTUTILS_USE_PEP517=setuptools |
96 |
+PYTHON_COMPAT=( python3_{8..10} ) |
97 |
+ |
98 |
+inherit distutils-r1 optfeature |
99 |
+ |
100 |
+DESCRIPTION="Python Language Server for the Language Server Protocol" |
101 |
+HOMEPAGE="https://github.com/python-lsp/python-lsp-server" |
102 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
103 |
+ |
104 |
+LICENSE="MIT" |
105 |
+SLOT="0" |
106 |
+KEYWORDS="~amd64" |
107 |
+ |
108 |
+IUSE="all-plugins" |
109 |
+ |
110 |
+BDEPEND=" |
111 |
+ test? ( |
112 |
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] |
113 |
+ dev-python/flaky[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}] |
115 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] |
117 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
118 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] |
123 |
+ dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}] |
124 |
+ >=dev-python/rope-0.10.5[${PYTHON_USEDEP}] |
125 |
+ dev-python/yapf[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] |
127 |
+ ) |
128 |
+" |
129 |
+ |
130 |
+RDEPEND=" |
131 |
+ dev-python/docstring-to-markdown[${PYTHON_USEDEP}] |
132 |
+ >=dev-python/jedi-0.17.2[${PYTHON_USEDEP}] |
133 |
+ >=dev-python/python-lsp-jsonrpc-1.0.0[${PYTHON_USEDEP}] |
134 |
+ dev-python/pluggy[${PYTHON_USEDEP}] |
135 |
+ all-plugins? ( |
136 |
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] |
137 |
+ >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}] |
138 |
+ >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] |
139 |
+ >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] |
140 |
+ >=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}] |
141 |
+ >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] |
142 |
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/rope-0.10.5[${PYTHON_USEDEP}] |
144 |
+ dev-python/yapf[${PYTHON_USEDEP}] |
145 |
+ >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] |
146 |
+ ) |
147 |
+" |
148 |
+ |
149 |
+# Upstream is overly cautious, insists on pinning |
150 |
+# dependencies to versions required by other dependencies. |
151 |
+# i.e. pin to <dev-python/pycodestyle-2.9.0 because |
152 |
+# dev-python/autopep8-1.6.0 requires that version. |
153 |
+# This causes way more problems then it solves. |
154 |
+PATCHES=( |
155 |
+ "${FILESDIR}/${P}-unpin-all-the-deps.patch" |
156 |
+) |
157 |
+ |
158 |
+distutils_enable_tests pytest |
159 |
+ |
160 |
+python_prepare_all() { |
161 |
+ # remove pytest-cov dep |
162 |
+ sed -i -e '/addopts =/d' pyproject.toml || die |
163 |
+ distutils-r1_python_prepare_all |
164 |
+} |
165 |
+ |
166 |
+pkg_postinst() { |
167 |
+ optfeature "Automatically format Python code to conform to the PEP 8 style guide" dev-python/autopep8 |
168 |
+ optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8 |
169 |
+ optfeature "flake8 plugin: McCabe complexity checker" dev-python/mccabe |
170 |
+ optfeature "Python style guide checker (fka pep8)" dev-python/pycodestyle |
171 |
+ optfeature "Python docstring style checker" dev-python/pydocstyle |
172 |
+ optfeature "Passive checker for Python programs" dev-python/pyflakes |
173 |
+ optfeature "Python code static checker" dev-python/pylint |
174 |
+ optfeature "Python refactoring library" dev-python/rope |
175 |
+ optfeature "A formatter for Python files" dev-python/yapf |
176 |
+} |