Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0
@ 2021-06-25  8:13 not-chicken
  2021-06-25  8:49 ` [PR PATCH] [Updated] " not-chicken
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: not-chicken @ 2021-06-25  8:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

There is a new 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: 2801 bytes --]

From 72aa12e1255752046e4005c759fab82c69074343 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      |  2 +-
 2 files changed, 38 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..265e4798dcbf 100644
--- a/srcpkgs/python3-language-server/template
+++ b/srcpkgs/python3-language-server/template
@@ -1,7 +1,7 @@
 # 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"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] python3-language-server: fix compatibility with jedi 0.18.0
  2021-06-25  8:13 [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0 not-chicken
@ 2021-06-25  8:49 ` not-chicken
  2021-06-26 21:34 ` ericonr
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: not-chicken @ 2021-06-25  8:49 UTC (permalink / raw)
  To: ml

[-- 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/'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: python3-language-server: fix compatibility with jedi 0.18.0
  2021-06-25  8:13 [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0 not-chicken
  2021-06-25  8:49 ` [PR PATCH] [Updated] " not-chicken
@ 2021-06-26 21:34 ` ericonr
  2021-06-26 21:35 ` [PR PATCH] [Merged]: " ericonr
  2021-06-27  1:11 ` ahesford
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-06-26 21:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31650#issuecomment-869064307

Comment:
Fix looks fine, but I think we should actively look into switching to the fork. @ahesford thoughts?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Merged]: python3-language-server: fix compatibility with jedi 0.18.0
  2021-06-25  8:13 [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0 not-chicken
  2021-06-25  8:49 ` [PR PATCH] [Updated] " not-chicken
  2021-06-26 21:34 ` ericonr
@ 2021-06-26 21:35 ` ericonr
  2021-06-27  1:11 ` ahesford
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-06-26 21:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]

There's a merged pull request on the void-packages repository

python3-language-server: fix compatibility with jedi 0.18.0
https://github.com/void-linux/void-packages/pull/31650

Description:
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
-->


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: python3-language-server: fix compatibility with jedi 0.18.0
  2021-06-25  8:13 [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0 not-chicken
                   ` (2 preceding siblings ...)
  2021-06-26 21:35 ` [PR PATCH] [Merged]: " ericonr
@ 2021-06-27  1:11 ` ahesford
  3 siblings, 0 replies; 5+ messages in thread
From: ahesford @ 2021-06-27  1:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/31650#issuecomment-869082693

Comment:
Looks like nothing depends on this package, so moving to a more active upstream seems OK if we have to keep patching. It would be good to get some kind of blessing from the original upstream if possible.

Also, because `make_check=no`, this should have not had any `checkdepends`; all of those packages get installed when building with `-Q` or `-K`, but they aren't actually used because tests are skipped for this template.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-27  1:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25  8:13 [PR PATCH] python3-language-server: fix compatibility with jedi 0.18.0 not-chicken
2021-06-25  8:49 ` [PR PATCH] [Updated] " not-chicken
2021-06-26 21:34 ` ericonr
2021-06-26 21:35 ` [PR PATCH] [Merged]: " ericonr
2021-06-27  1:11 ` ahesford

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).