Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: python3-language-server-0.31.4
Date: Sun, 29 Dec 2019 17:44:55 +0100	[thread overview]
Message-ID: <20191229164455.m5wCgOrh33MVvYSV5jRGw1C99xSAEmJhcn7UHucPTAc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17862@inbox.vuxu.org>

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

There is an updated pull request by k4leg against master on the void-packages repository

https://github.com/k4leg/void-packages python-language-server
https://github.com/void-linux/void-packages/pull/17862

New package: python3-language-server-0.31.4


A patch file from https://github.com/void-linux/void-packages/pull/17862.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python-language-server-17862.patch --]
[-- Type: text/x-diff, Size: 7016 bytes --]

From d93b65cab063198bd6ca5b8a4f025dda95f3f17c Mon Sep 17 00:00:00 2001
From: k4leg <d0xi@inbox.ru>
Date: Sun, 29 Dec 2019 19:38:58 +0300
Subject: [PATCH 1/3] New package: python3-ultrajson-1.35.

---
 srcpkgs/python3-ultrajson/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-ultrajson/template

diff --git a/srcpkgs/python3-ultrajson/template b/srcpkgs/python3-ultrajson/template
new file mode 100644
index 00000000000..9190899e31a
--- /dev/null
+++ b/srcpkgs/python3-ultrajson/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-ultrajson'
+pkgname=python3-ultrajson
+version=1.35
+revision=1
+wrksrc="${pkgname/*-}-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Ultra fast JSON encoder and decoder for Python"
+maintainer="k4leg <d0xi@inbox.ru>"
+license="BSD-3-Clause"
+homepage="https://github.com/esnme/ultrajson"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=1e7761583065873bed8466a3692fa5539d4f15bebc7af1c8fcc63d322a46804f
+
+post_install() {
+	vlicense LICENSE.txt
+}

From fcc1b1639a38ad2b75d431372621a267c47a907d Mon Sep 17 00:00:00 2001
From: k4leg <d0xi@inbox.ru>
Date: Sun, 29 Dec 2019 19:40:24 +0300
Subject: [PATCH 2/3] New package: python3-language-server-0.31.4.

---
 srcpkgs/python3-language-server/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-language-server/template

diff --git a/srcpkgs/python3-language-server/template b/srcpkgs/python3-language-server/template
new file mode 100644
index 00000000000..b432ac47f55
--- /dev/null
+++ b/srcpkgs/python3-language-server/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-language-server'
+pkgname=python3-language-server
+version=0.31.4
+revision=1
+wrksrc="${pkgname/3}-${version}"
+build_style=python3-module
+pycompile_module=pyls
+hostmakedepends="python3-setuptools"
+depends="python3-future python3-jedi python3-pluggy python3-jsonrpc-server python3-ultrajson"
+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="${homepage}/archive/${version}.tar.gz"
+checksum=3555ebe496858f896eb32c713ce244d5897da2be52a9c17d199ec4026371ad43
+
+post_install() {
+	vlicense LICENSE
+}

From d706f69c443f4bd0307ee604a5465fe3581d5a8d Mon Sep 17 00:00:00 2001
From: k4leg <d0xi@inbox.ru>
Date: Sun, 29 Dec 2019 19:44:41 +0300
Subject: [PATCH 3/3] New package: python3-jsonrpc-server-0.3.2.

---
 .../patches/python-3.8.patch                  | 60 +++++++++++++++++++
 srcpkgs/python3-jsonrpc-server/template       | 20 +++++++
 2 files changed, 80 insertions(+)
 create mode 100644 srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
 create mode 100644 srcpkgs/python3-jsonrpc-server/template

diff --git a/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch b/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
new file mode 100644
index 00000000000..67d130ebccb
--- /dev/null
+++ b/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
@@ -0,0 +1,60 @@
+diff -uprb python-jsonrpc-server-0.2.0.orig/pyls_jsonrpc/endpoint.py python-jsonrpc-server-0.2.0/pyls_jsonrpc/endpoint.py
+--- python-jsonrpc-server-0.2.0.orig/pyls_jsonrpc/endpoint.py	2019-06-27 18:42:22.000000000 +0300
++++ python-jsonrpc-server-0.2.0/pyls_jsonrpc/endpoint.py	2019-11-02 23:24:59.407851208 +0200
+@@ -98,7 +98,7 @@ class Endpoint(object):
+             message (dict): The JSON RPC message sent by the client
+         """
+         if 'jsonrpc' not in message or message['jsonrpc'] != JSONRPC_VERSION:
+-            log.warn("Unknown message type %s", message)
++            log.warning("Unknown message type %s", message)
+             return
+ 
+         if 'id' not in message:
+@@ -135,7 +135,7 @@ class Endpoint(object):
+         try:
+             handler = self._dispatcher[method]
+         except KeyError:
+-            log.warn("Ignoring notification for unknown method %s", method)
++            log.warning("Ignoring notification for unknown method %s", method)
+             return
+ 
+         try:
+@@ -165,7 +165,7 @@ class Endpoint(object):
+         request_future = self._client_request_futures.pop(msg_id, None)
+ 
+         if not request_future:
+-            log.warn("Received cancel notification for unknown message id %s", msg_id)
++            log.warning("Received cancel notification for unknown message id %s", msg_id)
+             return
+ 
+         # Will only work if the request hasn't started executing
+@@ -230,12 +230,13 @@ class Endpoint(object):
+         request_future = self._server_request_futures.pop(msg_id, None)
+ 
+         if not request_future:
+-            log.warn("Received response to unknown message id %s", msg_id)
++            log.warning("Received response to unknown message id %s", msg_id)
+             return
+ 
+         if error is not None:
+             log.debug("Received error response to message %s: %s", msg_id, error)
+             request_future.set_exception(JsonRpcException.from_dict(error))
++            return
+ 
+         log.debug("Received result for message %s: %s", msg_id, result)
+         request_future.set_result(result)
+diff -uprb python-jsonrpc-server-0.2.0.orig/test/test_endpoint.py python-jsonrpc-server-0.2.0/test/test_endpoint.py
+--- python-jsonrpc-server-0.2.0.orig/test/test_endpoint.py	2019-06-27 18:42:22.000000000 +0300
++++ python-jsonrpc-server-0.2.0/test/test_endpoint.py	2019-11-02 23:24:21.033838729 +0200
+@@ -115,9 +115,9 @@ def test_request_cancel(endpoint, consum
+         'params': {'id': MSG_ID}
+     })
+ 
+-    with pytest.raises(exceptions.JsonRpcException) as exc_info:
++    with pytest.raises((exceptions.JsonRpcException, futures.CancelledError)) as exc_info:
+         assert future.result(timeout=2)
+-    assert exc_info.type == exceptions.JsonRpcRequestCancelled
++    assert exc_info.type in (exceptions.JsonRpcRequestCancelled, futures.CancelledError)
+ 
+ 
+ def test_consume_notification(endpoint, dispatcher):
diff --git a/srcpkgs/python3-jsonrpc-server/template b/srcpkgs/python3-jsonrpc-server/template
new file mode 100644
index 00000000000..d5eb02d7be9
--- /dev/null
+++ b/srcpkgs/python3-jsonrpc-server/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jsonrpc-server'
+pkgname=python3-jsonrpc-server
+version=0.3.2
+revision=1
+wrksrc="${pkgname/3}-${version}"
+build_style=python3-module
+pycompile_module="pyls_jsonrpc"
+makedepends="python3-setuptools"
+depends="python3 python3-future python3-ultrajson"
+short_desc="Python library implementing asynchronous JSON RPC server"
+maintainer="k4leg <d0xi@inbox.ru>"
+license="MIT"
+homepage="https://github.com/palantir/python-jsonrpc-server"
+distfiles="${homepage}/archive/${version}.tar.gz"
+checksum=bc762d24d7dccf2fc9cf2ae1746130505544570dd845e6ed887238a5767cf4fe
+patch_args="-Np1"
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2019-12-29 16:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-29 12:58 [PR PATCH] New package: python-language-server-0.31.4 voidlinux-github
2019-12-29 13:30 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-29 14:38 ` voidlinux-github
2019-12-29 15:53 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-29 15:59 ` voidlinux-github
2019-12-29 16:04 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-29 16:07 ` voidlinux-github
2019-12-29 16:23 ` New package: python3-language-server-0.31.4 voidlinux-github
2019-12-29 16:27 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-29 16:40 ` voidlinux-github
2019-12-29 16:44 ` voidlinux-github [this message]
2019-12-29 16:59 ` voidlinux-github
2019-12-29 17:33 ` voidlinux-github
2019-12-30 13:42 ` voidlinux-github
2019-12-30 16:11 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-30 16:13 ` voidlinux-github
2019-12-30 16:27 ` voidlinux-github
2019-12-30 17:17 ` voidlinux-github
2019-12-30 18:02 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-30 20:03 ` voidlinux-github
2019-12-30 20:03 ` [PR PATCH] [Merged]: " voidlinux-github

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=20191229164455.m5wCgOrh33MVvYSV5jRGw1C99xSAEmJhcn7UHucPTAc@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).