[arch-commits] Commit in python-jsonrpc-server/trunk (3 files)
Maxim Baz
maximbaz at archlinux.org
Mon Nov 18 19:35:37 UTC 2019
Date: Monday, November 18, 2019 @ 19:35:36
Author: maximbaz
Revision: 530340
upgpkg: python-jsonrpc-server 0.3.0-1
Added:
python-jsonrpc-server/trunk/python-3.8.patch
Modified:
python-jsonrpc-server/trunk/PKGBUILD
Deleted:
python-jsonrpc-server/trunk/python-3.8,patch
------------------+
PKGBUILD | 12 +++++-----
python-3.8,patch | 60 -----------------------------------------------------
python-3.8.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 66 insertions(+), 66 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-18 18:27:43 UTC (rev 530339)
+++ PKGBUILD 2019-11-18 19:35:36 UTC (rev 530340)
@@ -3,23 +3,23 @@
# Contributor: fenuks
pkgname=python-jsonrpc-server
-pkgver=0.2.0
-pkgrel=3
+pkgver=0.3.0
+pkgrel=1
pkgdesc="An implementation of the Language Server Protocol for Python"
arch=("any")
url="https://github.com/palantir/python-jsonrpc-server"
license=("MIT")
-depends=("python" "python-future")
+depends=("python" "python-future" "python-ujson")
makedepends=("python" "python-setuptools")
checkdepends=("python-pytest" "python-pytest-runner" "python-pytest-cov" "python-pyflakes" "python-mock")
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'python-3.8,patch')
-sha256sums=('59ce9c9523c14c493a327b3a27ee37464a36dc2b9d8ab485ecbcedd38840380a'
+ 'python-3.8.patch')
+sha256sums=('fed74a453124616c41f74d326164ba7d6dcb5a2a231e04f0f3f050daeca6c37e'
'718d791bd233eeb9c3876f5e18d32e28e75d919375c4c2dd511f8a4e1023b479')
prepare() {
cd "${pkgname}-${pkgver}"
- patch -Np1 -i ../python-3.8,patch
+ patch -Np1 -i ../python-3.8.patch
}
build() {
Deleted: python-3.8,patch
===================================================================
--- python-3.8,patch 2019-11-18 18:27:43 UTC (rev 530339)
+++ python-3.8,patch 2019-11-18 19:35:36 UTC (rev 530340)
@@ -1,60 +0,0 @@
-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):
Added: python-3.8.patch
===================================================================
--- python-3.8.patch (rev 0)
+++ python-3.8.patch 2019-11-18 19:35:36 UTC (rev 530340)
@@ -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):
More information about the arch-commits
mailing list