summaryrefslogtreecommitdiff
path: root/dev-python/python-lsp-server
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-18 11:56:49 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-18 11:56:49 +0000
commit95b557bc48bb734c288bac87dcfe98b8ae3d1cdb (patch)
treec5ffde10d5eed804daa50794c905d6b228af7177 /dev-python/python-lsp-server
parent3b34ca9eec2676e6fe530f34e463f52308a11441 (diff)
gentoo auto-resync : 18:01:2023 - 11:56:49
Diffstat (limited to 'dev-python/python-lsp-server')
-rw-r--r--dev-python/python-lsp-server/Manifest7
-rw-r--r--dev-python/python-lsp-server/files/python-lsp-server-1.7.1-unpin-all-the-deps.patch60
-rw-r--r--dev-python/python-lsp-server/python-lsp-server-1.6.0-r1.ebuild (renamed from dev-python/python-lsp-server/python-lsp-server-1.6.0.ebuild)2
-rw-r--r--dev-python/python-lsp-server/python-lsp-server-1.7.0-r1.ebuild (renamed from dev-python/python-lsp-server/python-lsp-server-1.7.0.ebuild)2
-rw-r--r--dev-python/python-lsp-server/python-lsp-server-1.7.1.ebuild89
5 files changed, 158 insertions, 2 deletions
diff --git a/dev-python/python-lsp-server/Manifest b/dev-python/python-lsp-server/Manifest
index 80d53cc759bf..e17370969221 100644
--- a/dev-python/python-lsp-server/Manifest
+++ b/dev-python/python-lsp-server/Manifest
@@ -1,7 +1,10 @@
AUX python-lsp-server-1.6.0-unpin-all-the-deps.patch 1461 BLAKE2B f4a2bda2717370e18c5cc909486d852c985168fcfca042c8f12bff96701a5a7c2e0cc9fce1429870ceed9e2b385e795b5a5b18c919defc07e42933496b19b863 SHA512 8ba0da9a25bde3c1788e9729b1c98fde9f134ec78c3ee9185e61333cfbf90a50ee9f0cbd9fa569bbaae7289cfa75260b848ececc83f6e7d26891f457808ffb73
AUX python-lsp-server-1.7.0-unpin-all-the-deps.patch 1450 BLAKE2B 6443598fc5aa6ae87c448500ed638597ae03285f34b799f9c00883dc2015eb95c03e80b863d95d86d14626e1a1fb53102cba34013ba34ba8848ed4709004da9f SHA512 10ae9fb5db1abecaeb846508d6d4d0137b397b1422cdbd4bf40dff5f3c8658306e77b3c888e3faaf6f47f5cdd62f061a7595a07a6e56469c904c19b5d0ff2091
+AUX python-lsp-server-1.7.1-unpin-all-the-deps.patch 1699 BLAKE2B 0b996ff8590cb3e68007077e2ddda23f64d5ddc9ea272794aee4a9c23dc74bcd44cae65702aa4f03dfe5988c58d90d8dc21b9e249a5c7b3e80083aa0786cf330 SHA512 d46be45443f0e4282104f1e702f8ea5c9f3848f2ea3c63d7007db6876e3abd93f063aa181b2bd4916fb6ddecc6f00da0d8cafccd0eba79657b9bfce051fa735d
DIST python-lsp-server-1.6.0.tar.gz 85242 BLAKE2B 52fcca5a93035a6ec8179908b2139e9392220cad082afb4c31b18284cdd53050c68fca4bcc9d852fa9acb49200487431fec37dc840e61ab9320fd6c3a86189ee SHA512 e4ab52f334fb1eece3458258ed39bf66eeb6056ed7e243be9c69ce2bac92792786df2fbc1d316133ac5523b44a57e7d89d4d6f18120c748e78ef20570a325c9b
DIST python-lsp-server-1.7.0.tar.gz 95085 BLAKE2B 8cce5a01588d44efbc19f8ceec67e61580835814f403d6bda4ca2f82f56dc35c85fc3176f8ebc1eea720aa92710379f87a5e98f443f71a5d16e5bfe48702da1b SHA512 2ef31bdd4451b4b282469223ff5cc5799f4487d3dfc593dfc58483b939802754e0e375461723bf7a90d0fd71f945c927106c5d929621a70f83c3f30bddf68250
-EBUILD python-lsp-server-1.6.0.ebuild 2988 BLAKE2B 669721dc6f3a91a8649118f867c823d7da381da423f7d83d204c03cc86fcb3707ee21caa61d4d046402fbfea2a2912ca9f68885fc3392aae1ce2a7e0c0f4f3e2 SHA512 6a6ccd2aef73459d39d288a4a8690ce772c3ba9c7570ae55cdb86b4c43fe4fa34be189f1976c8d1a06cf3c1ce217d1e0ab5dc44e13a0e7c3acb548559de07d0e
-EBUILD python-lsp-server-1.7.0.ebuild 2988 BLAKE2B bbf836e545c1c704dd85e99cd7f083a3139af0124f25c545aff518a6cd6a87c85a3e903f8a2d443c307ae55ec9d515b2ec2c86bb1c679415160b816f5eaf933c SHA512 fa684130e059ef7ff3ab23db844c7006e9a38cd554981c3cd3c36012186d54b376e45ff68354623eb7075b956dab29974b2ec548f6cd27f0257c82bece0e3d28
+DIST python-lsp-server-1.7.1.tar.gz 95731 BLAKE2B 0cdcda04ef849cb0c5fa83f1f701e986e22fb1228112eaf355bfedc52cca4fcc5927352c71b74fa3903526d8a1fc80fa57ac3e6ee7bcc2609556c2398dd2bbb8 SHA512 36c90f45071f35d0aeb0a57795eb6e9fb531baf9e8b468031b0d3e9eb2d53bee439893a333c6bf5f9d5b0818ec53675a3824850abef3e866e8ebdcd4a6142c48
+EBUILD python-lsp-server-1.6.0-r1.ebuild 3086 BLAKE2B 5a033952c3f09defc85278ace28e365af2527b06debc71f3174a3c2bcf7b05896d98dc5468d4b9789140c28fc60a78ad68d7fbec5fb610e296477d0ec7b9ecc6 SHA512 6effad7949df93662943f411ee2f8d1f1fbb004abc31e4c8ac4d9f580398f6d5be3890cdfbb8e15a7ba400477fe0a1f7572697bba9c4ff9f099aaab6673166eb
+EBUILD python-lsp-server-1.7.0-r1.ebuild 3086 BLAKE2B 0d6642e9b57b44c07a9414164074a75b8a52ea040235a0542b10b334eb3804b6a557cf7449393e97441ef010549fe31931bcf7a2138069d39e885c34b7a1f86c SHA512 15a1f9f2a77c6ffc7dd9f6efa78708edbd22dcb3c26df8678ab40b545d5da4d13f6a029cda29c882eb98c584574857b080d188998c6d062535f94a5a2b442d5a
+EBUILD python-lsp-server-1.7.1.ebuild 3086 BLAKE2B 685deb59e671aa1fac9d76db101eac251e0376a50ce4b41eb42c88b437422ae8cabeb21562c9fd66b8cd67c5ea750a8bb3ff39a3b51562fec214a450312a4585 SHA512 65035323347b1ba30765b436724d33826151602f7051c7e55036668347d6a6794974af4bba9ba7027db48d574c04c9df7c7c03b1abcd8bfcd2bbd1185b97da01
MISC metadata.xml 610 BLAKE2B e111007adc2612409df72955babe0c4725fd5726449435988cf13c1142049d78089d38e54783712e2c70c74437157ffb2049bd9d63322cec084204eb5038e724 SHA512 5e1e4b43a5bfacb6a2fcae57413ebf79c6aed917b00022140d855acd773d82e56b2d73ae8270d42675a34d9f37f9ad53c8f61930c3f447d8a9e45a521a20e9bb
diff --git a/dev-python/python-lsp-server/files/python-lsp-server-1.7.1-unpin-all-the-deps.patch b/dev-python/python-lsp-server/files/python-lsp-server-1.7.1-unpin-all-the-deps.patch
new file mode 100644
index 000000000000..4a8104130e06
--- /dev/null
+++ b/dev-python/python-lsp-server/files/python-lsp-server-1.7.1-unpin-all-the-deps.patch
@@ -0,0 +1,60 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 8d38434..50e8e16 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -13,7 +13,7 @@ readme = "README.md"
+ license = {text = "MIT"}
+ requires-python = ">=3.7"
+ dependencies = [
+- "jedi>=0.17.2,<0.19.0",
++ "jedi>=0.17.2",
+ "python-lsp-jsonrpc>=1.0.0",
+ "pluggy>=1.0.0",
+ "docstring-to-markdown",
+@@ -27,29 +27,29 @@ Homepage = "https://github.com/python-lsp/python-lsp-server"
+
+ [project.optional-dependencies]
+ all = [
+- "autopep8>=1.6.0,<1.7.0",
+- "flake8>=5.0.0,<7",
+- "mccabe>=0.7.0,<0.8.0",
+- "pycodestyle>=2.9.0,<2.11.0",
+- "pydocstyle>=6.2.0,<6.3.0",
+- "pyflakes>=2.5.0,<3.1.0",
+- "pylint>=2.5.0,<3",
++ "autopep8>=1.6.0",
++ "flake8>=5.0.0",
++ "mccabe>=0.7.0",
++ "pycodestyle>=2.9.0",
++ "pydocstyle>=6.2.0",
++ "pyflakes>=2.5.0",
++ "pylint>=2.5.0",
+ "rope>1.2.0",
+ "yapf",
+- "whatthepatch>=1.0.2,<2.0.0"
++ "whatthepatch>=1.0.2"
+ ]
+-autopep8 = ["autopep8>=1.6.0,<1.7.0"]
+-flake8 = ["flake8>=5.0.0,<7"]
+-mccabe = ["mccabe>=0.7.0,<0.8.0"]
+-pycodestyle = ["pycodestyle>=2.9.0,<2.11.0"]
+-pydocstyle = ["pydocstyle>=6.2.0,<6.3.0"]
+-pyflakes = ["pyflakes>=2.5.0,<3.1.0"]
+-pylint = ["pylint>=2.5.0,<3"]
++autopep8 = ["autopep8>=1.6.0"]
++flake8 = ["flake8>=5.0.0"]
++mccabe = ["mccabe>=0.7.0"]
++pycodestyle = ["pycodestyle>=2.9.0"]
++pydocstyle = ["pydocstyle>=6.2.0"]
++pyflakes = ["pyflakes>=2.5.0"]
++pylint = ["pylint>=2.5.0"]
+ rope = ["rope>1.2.0"]
+-yapf = ["yapf", "whatthepatch>=1.0.2,<2.0.0"]
++yapf = ["yapf", "whatthepatch>=1.0.2"]
+ websockets = ["websockets>=10.3"]
+ test = [
+- "pylint>=2.5.0,<3",
++ "pylint>=2.5.0",
+ "pytest",
+ "pytest-cov",
+ "coverage",
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-r1.ebuild
index 2d13e6dac881..29db36cb6358 100644
--- 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-r1.ebuild
@@ -29,6 +29,7 @@ BDEPEND="
dev-python/pandas[${PYTHON_USEDEP}]
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
>=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
@@ -49,6 +50,7 @@ RDEPEND="
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
>=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
>=dev-python/rope-0.10.5[${PYTHON_USEDEP}]
diff --git a/dev-python/python-lsp-server/python-lsp-server-1.7.0.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.7.0-r1.ebuild
index 9973c2181c42..ae316d1b4366 100644
--- a/dev-python/python-lsp-server/python-lsp-server-1.7.0.ebuild
+++ b/dev-python/python-lsp-server/python-lsp-server-1.7.0-r1.ebuild
@@ -29,6 +29,7 @@ BDEPEND="
dev-python/pandas[${PYTHON_USEDEP}]
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
>=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
@@ -49,6 +50,7 @@ RDEPEND="
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
>=dev-python/pydocstyle-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
>=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
diff --git a/dev-python/python-lsp-server/python-lsp-server-1.7.1.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.7.1.ebuild
new file mode 100644
index 000000000000..c0abd68bb8f3
--- /dev/null
+++ b/dev-python/python-lsp-server/python-lsp-server-1.7.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Python Language Server for the Language Server Protocol"
+HOMEPAGE="https://github.com/python-lsp/python-lsp-server"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+IUSE="all-plugins"
+
+BDEPEND="
+ test? (
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}]
+ dev-python/flaky[${PYTHON_USEDEP}]
+ >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
+ >=dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
+ dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
+ >=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
+ dev-python/yapf[${PYTHON_USEDEP}]
+ >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
+ )
+"
+
+RDEPEND="
+ dev-python/docstring-to-markdown[${PYTHON_USEDEP}]
+ >=dev-python/jedi-0.17.2[${PYTHON_USEDEP}]
+ >=dev-python/python-lsp-jsonrpc-1.0.0[${PYTHON_USEDEP}]
+ dev-python/pluggy[${PYTHON_USEDEP}]
+ all-plugins? (
+ >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}]
+ >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
+ >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
+ >=dev-python/pydocstyle-6.2.0[${PYTHON_USEDEP}]
+ <dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
+ dev-python/yapf[${PYTHON_USEDEP}]
+ >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
+ )
+"
+
+# Upstream is overly cautious, insists on pinning
+# dependencies to versions required by other dependencies.
+# i.e. pin to <dev-python/pycodestyle-2.9.0 because
+# dev-python/autopep8-1.6.0 requires that version.
+# This causes way more problems then it solves.
+PATCHES=(
+ "${FILESDIR}/${P}-unpin-all-the-deps.patch"
+)
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # remove pytest-cov dep
+ sed -i -e '/addopts =/d' pyproject.toml || die
+ distutils-r1_python_prepare_all
+}
+
+pkg_postinst() {
+ optfeature "Automatically format Python code to conform to the PEP 8 style guide" dev-python/autopep8
+ optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8
+ optfeature "flake8 plugin: McCabe complexity checker" dev-python/mccabe
+ optfeature "Python style guide checker (fka pep8)" dev-python/pycodestyle
+ optfeature "Python docstring style checker" dev-python/pydocstyle
+ optfeature "Passive checker for Python programs" dev-python/pyflakes
+ optfeature "Python code static checker" dev-python/pylint
+ optfeature "Python refactoring library" dev-python/rope
+ optfeature "A formatter for Python files" dev-python/yapf
+}