Hello community,

here is the log from the commit of package python-python-jsonrpc-server for 
openSUSE:Factory checked in at 2020-03-14 09:55:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-jsonrpc-server (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-jsonrpc-server.new.3160 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-jsonrpc-server"

Sat Mar 14 09:55:27 2020 rev:3 rq:784806 version:0.3.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-jsonrpc-server/python-python-jsonrpc-server.changes
        2020-02-22 19:07:08.450430589 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-jsonrpc-server.new.3160/python-python-jsonrpc-server.changes
      2020-03-14 09:55:41.383125522 +0100
@@ -1,0 +2,19 @@
+Sat Mar 14 07:49:13 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Do not pull in py2 dependencies at all since we disabled the
+  python2 build
+
+-------------------------------------------------------------------
+Sat Mar 14 07:21:48 CET 2020 - Matej Cepl <[email protected]>
+
+- Switch off python2 build, broken dependencies.
+
+-------------------------------------------------------------------
+Fri Mar 13 09:11:41 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add remove_testing_warnings.patch to remove some warnings
+  in the test suite run log (gh#palantir/python-jsonrpc-serveri#34).
+- Switch off some tests which fail with Python 3.8
+  (gh#palantir/python-jsonrpc-server#33)
+
+-------------------------------------------------------------------

New:
----
  remove_testing_warnings.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-jsonrpc-server.spec ++++++
--- /var/tmp/diff_new_pack.ZGYaLu/_old  2020-03-14 09:55:42.103126051 +0100
+++ /var/tmp/diff_new_pack.ZGYaLu/_new  2020-03-14 09:55:42.103126051 +0100
@@ -17,15 +17,18 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without python2
+%define skip_python2 1
+%define modname python-jsonrpc-server
 Name:           python-python-jsonrpc-server
 Version:        0.3.4
 Release:        0
 Summary:        JSON RPC 2.0 server library
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/palantir/python-jsonrpc-server
-Source:         
https://files.pythonhosted.org/packages/source/p/python-jsonrpc-server/python-jsonrpc-server-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM remove_testing_warnings.patch 
gh#palantir/python-jsonrpc-serveri#34 [email protected]
+# remove warnings about deprecated method logging.Logger.warn
+Patch0:         remove_testing_warnings.patch
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -34,14 +37,6 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-ujson
 BuildArch:      noarch
-%if %{with python2}
-BuildRequires:  python-future >= 0.14.0
-BuildRequires:  python-futures
-%endif
-%ifpython2
-Requires:       python-future >= 0.14.0
-Requires:       python-futures
-%endif
 %python_subpackages
 
 %description
@@ -49,7 +44,8 @@
 This library has been pulled out of the Python Language Server project.
 
 %prep
-%setup -q -n python-jsonrpc-server-%{version}
+%autosetup -p1 -n %{modname}-%{version}
+
 sed -i 's/ujson<=1.35;/ujson;/' setup.py
 
 %build
@@ -62,7 +58,8 @@
 %check
 # Remove pytest addopts
 rm setup.cfg
-%pytest
+# gh#palantir/python-jsonrpc-server#33
+%pytest -k 'not (test_request_error or test_request_cancel or 
test_writer_bad_message)'
 
 %files %{python_files}
 %doc README.rst

++++++ remove_testing_warnings.patch ++++++
>From 3d48da82ce3c858e7a818bb954b33ab144e63a7b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <[email protected]>
Date: Fri, 13 Mar 2020 09:58:58 +0100
Subject: [PATCH] logging.Logger.warn method has been deprecated for very long
 time.

---
 pyls_jsonrpc/endpoint.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyls_jsonrpc/endpoint.py b/pyls_jsonrpc/endpoint.py
index e8bfb5b..85458c1 100644
--- a/pyls_jsonrpc/endpoint.py
+++ b/pyls_jsonrpc/endpoint.py
@@ -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,7 +230,7 @@ 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:
-- 
2.25.1


Reply via email to