* [PR PATCH] python3-jsonrpc-server: update to 0.4.0.
@ 2020-12-07 18:47 kartikynwa
2020-12-07 18:55 ` [PR PATCH] [Updated] " kartikynwa
2020-12-07 19:02 ` [PR PATCH] [Merged]: " ericonr
0 siblings, 2 replies; 3+ messages in thread
From: kartikynwa @ 2020-12-07 18:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
There is a new pull request by kartikynwa against master on the void-packages repository
https://github.com/kartikynwa/void-packages p3-jsonrpc-server-update
https://github.com/void-linux/void-packages/pull/27022
python3-jsonrpc-server: update to 0.4.0.
A patch file from https://github.com/void-linux/void-packages/pull/27022.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-p3-jsonrpc-server-update-27022.patch --]
[-- Type: text/x-diff, Size: 4576 bytes --]
From b7198db63da262c9d62190eac056ab597dcbd611 Mon Sep 17 00:00:00 2001
From: Kartik Singh <kartik.ynwa@gmail.com>
Date: Tue, 8 Dec 2020 00:15:38 +0530
Subject: [PATCH] python3-jsonrpc-server: update to 0.4.0.
---
.../patches/python-3.8.patch | 60 -------------------
srcpkgs/python3-jsonrpc-server/template | 6 +-
2 files changed, 3 insertions(+), 63 deletions(-)
delete mode 100644 srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
diff --git a/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch b/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
deleted file mode 100644
index 67d130ebccb..00000000000
--- a/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
+++ /dev/null
@@ -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):
diff --git a/srcpkgs/python3-jsonrpc-server/template b/srcpkgs/python3-jsonrpc-server/template
index 406f38b8628..a5496eb335a 100644
--- a/srcpkgs/python3-jsonrpc-server/template
+++ b/srcpkgs/python3-jsonrpc-server/template
@@ -1,7 +1,7 @@
# Template file for 'python3-jsonrpc-server'
pkgname=python3-jsonrpc-server
-version=0.3.4
-revision=3
+version=0.4.0
+revision=1
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -11,7 +11,7 @@ maintainer="k4leg <d0xi@inbox.ru>"
license="MIT"
homepage="https://github.com/palantir/python-jsonrpc-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
-checksum=c73bf5495c9dd4d2f902755bedeb6da5afe778e0beee82f0e195c4655352fe37
+checksum=62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595
patch_args="-Np1"
post_patch() {
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Updated] python3-jsonrpc-server: update to 0.4.0.
2020-12-07 18:47 [PR PATCH] python3-jsonrpc-server: update to 0.4.0 kartikynwa
@ 2020-12-07 18:55 ` kartikynwa
2020-12-07 19:02 ` [PR PATCH] [Merged]: " ericonr
1 sibling, 0 replies; 3+ messages in thread
From: kartikynwa @ 2020-12-07 18:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 353 bytes --]
There is an updated pull request by kartikynwa against master on the void-packages repository
https://github.com/kartikynwa/void-packages p3-jsonrpc-server-update
https://github.com/void-linux/void-packages/pull/27022
python3-jsonrpc-server: update to 0.4.0.
A patch file from https://github.com/void-linux/void-packages/pull/27022.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-p3-jsonrpc-server-update-27022.patch --]
[-- Type: text/x-diff, Size: 4627 bytes --]
From 76ec10a215246f5820df7db9aeff15b96acf2a88 Mon Sep 17 00:00:00 2001
From: Kartik Singh <kartik.ynwa@gmail.com>
Date: Tue, 8 Dec 2020 00:15:38 +0530
Subject: [PATCH] python3-jsonrpc-server: update to 0.4.0.
---
.../patches/python-3.8.patch | 60 -------------------
srcpkgs/python3-jsonrpc-server/template | 7 +--
2 files changed, 3 insertions(+), 64 deletions(-)
delete mode 100644 srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
diff --git a/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch b/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
deleted file mode 100644
index 67d130ebccb..00000000000
--- a/srcpkgs/python3-jsonrpc-server/patches/python-3.8.patch
+++ /dev/null
@@ -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):
diff --git a/srcpkgs/python3-jsonrpc-server/template b/srcpkgs/python3-jsonrpc-server/template
index 406f38b8628..3551d7f95ac 100644
--- a/srcpkgs/python3-jsonrpc-server/template
+++ b/srcpkgs/python3-jsonrpc-server/template
@@ -1,7 +1,7 @@
# Template file for 'python3-jsonrpc-server'
pkgname=python3-jsonrpc-server
-version=0.3.4
-revision=3
+version=0.4.0
+revision=1
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -11,8 +11,7 @@ maintainer="k4leg <d0xi@inbox.ru>"
license="MIT"
homepage="https://github.com/palantir/python-jsonrpc-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
-checksum=c73bf5495c9dd4d2f902755bedeb6da5afe778e0beee82f0e195c4655352fe37
-patch_args="-Np1"
+checksum=62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595
post_patch() {
vsed -i setup.py -e 's/\bujson<=1\.35\b/ujson/'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Merged]: python3-jsonrpc-server: update to 0.4.0.
2020-12-07 18:47 [PR PATCH] python3-jsonrpc-server: update to 0.4.0 kartikynwa
2020-12-07 18:55 ` [PR PATCH] [Updated] " kartikynwa
@ 2020-12-07 19:02 ` ericonr
1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2020-12-07 19:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
There's a merged pull request on the void-packages repository
python3-jsonrpc-server: update to 0.4.0.
https://github.com/void-linux/void-packages/pull/27022
Description:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-07 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 18:47 [PR PATCH] python3-jsonrpc-server: update to 0.4.0 kartikynwa
2020-12-07 18:55 ` [PR PATCH] [Updated] " kartikynwa
2020-12-07 19:02 ` [PR PATCH] [Merged]: " ericonr
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).