From: not-chicken <not-chicken@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-language-server: fix compatibility with jedi 0.18.0
Date: Fri, 25 Jun 2021 10:49:15 +0200 [thread overview]
Message-ID: <20210625084915.YK7ity9Yynaw27hmGbeZ04nduN9wsTXnw64YWegk774@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31650@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]
There is an updated pull request by not-chicken against master on the void-packages repository
https://github.com/not-chicken/void-packages pyls
https://github.com/void-linux/void-packages/pull/31650
python3-language-server: fix compatibility with jedi 0.18.0
Project seems to be unmaintained at the moment. There's an active fork at
https://github.com/python-lsp/python-lsp-server that we can switch to
in future.
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/31650.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pyls-31650.patch --]
[-- Type: text/x-diff, Size: 3679 bytes --]
From 6f11ef55191a216a4431ab9e69868585b3e3a1e8 Mon Sep 17 00:00:00 2001
From: Lorem <notloremipsum@protonmail.com>
Date: Fri, 25 Jun 2021 13:29:11 +0530
Subject: [PATCH] python3-language-server: fix compatibility with jedi 0.18.0
Project seems to be unmaintained at the moment. There's an active fork at
https://github.com/python-lsp/python-lsp-server that we can switch to
in future.
---
.../patches/jedi_compat.patch | 37 +++++++++++++++++++
srcpkgs/python3-language-server/template | 9 ++++-
2 files changed, 45 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/python3-language-server/patches/jedi_compat.patch
diff --git a/srcpkgs/python3-language-server/patches/jedi_compat.patch b/srcpkgs/python3-language-server/patches/jedi_compat.patch
new file mode 100644
index 000000000000..52e7e3c59abe
--- /dev/null
+++ b/srcpkgs/python3-language-server/patches/jedi_compat.patch
@@ -0,0 +1,37 @@
+https://github.com/palantir/python-language-server/pull/901
+
+From: bnavigator <code@bnavigator.de>
+Date: Tue, 5 Jan 2021 01:17:33 +0100
+Subject: [PATCH] bump jedi compatibility: compare to Path-like object
+
+---
+ pyls/plugins/symbols.py | 2 +-
+ setup.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyls/plugins/symbols.py b/pyls/plugins/symbols.py
+index 6468dd83..69a09fe9 100644
+--- a/pyls/plugins/symbols.py
++++ b/pyls/plugins/symbols.py
+@@ -37,7 +37,7 @@ def pyls_document_symbols(config, document):
+ not sym_full_name.startswith('__main__')):
+ continue
+
+- if _include_def(d) and document.path == d.module_path:
++ if _include_def(d) and os.path.samefile(document.path, d.module_path):
+ tuple_range = _tuple_range(d)
+ if tuple_range in exclude:
+ continue
+diff --git a/setup.py b/setup.py
+index 12782990..99d2b312 100755
+--- a/setup.py
++++ b/setup.py
+@@ -10,7 +10,7 @@
+ 'configparser; python_version<"3.0"',
+ 'future>=0.14.0; python_version<"3"',
+ 'backports.functools_lru_cache; python_version<"3.2"',
+- 'jedi>=0.17.2,<0.18.0',
++ 'jedi>=0.17.2,<0.19.0',
+ 'python-jsonrpc-server>=0.4.0',
+ 'pluggy',
+ 'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"',
diff --git a/srcpkgs/python3-language-server/template b/srcpkgs/python3-language-server/template
index 4585a7381de1..355a49e1f5fc 100644
--- a/srcpkgs/python3-language-server/template
+++ b/srcpkgs/python3-language-server/template
@@ -1,17 +1,24 @@
# Template file for 'python3-language-server'
pkgname=python3-language-server
version=0.36.1
-revision=1
+revision=2
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-jedi python3-pluggy python3-jsonrpc-server python3-ultrajson"
+checkdepends="${depends} autopep8 python3-coverage python3-flaky python3-matplotlib
+ python3-mccabe python3-mock python3-numpy python3-pandas python3-pycodestyle
+ python3-PyQt5 python3-pyflakes python3-pylint python3-pytest python3-pytest-cov
+ python3-yapf"
short_desc="Python implementation of the Language Server Protocol"
maintainer="k4leg <d0xi@inbox.ru>"
license="MIT"
homepage="https://github.com/palantir/python-language-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
checksum=c85d718ef6860319ad59fd6f2acb1166e9349b782ee8e8908e08ecf241615f52
+# Needs unpackaged rope and versioneer
+# https://github.com/palantir/python-language-server/blob/develop/setup.py#L51
+make_check=no
post_patch() {
vsed -i setup.py -e 's/\bujson<=1.35\b/ujson/'
next prev parent reply other threads:[~2021-06-25 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-25 8:13 [PR PATCH] " not-chicken
2021-06-25 8:49 ` not-chicken [this message]
2021-06-26 21:34 ` ericonr
2021-06-26 21:35 ` [PR PATCH] [Merged]: " ericonr
2021-06-27 1:11 ` ahesford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210625084915.YK7ity9Yynaw27hmGbeZ04nduN9wsTXnw64YWegk774@z \
--to=not-chicken@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).