From 7efe3d151bbf33da994e69353e3af24130ecf35ecbad7eb176c1177c44f8cf30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Mar 2019 14:53:26 +0000 Subject: [PATCH] - Update to 1.12.1: * ADD: Ability to override function name with decorator convention in dispatcher * REF: Improve function parameter introspection: use more stable approach for python3, allow both args and kwards parameters check at the same time. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json-rpc?expand=0&rev=7 --- LICENSE.txt | 21 --------------------- json-rpc-1.11.0.tar.gz | 3 --- json-rpc-1.12.1.tar.gz | 3 +++ python-json-rpc.changes | 10 ++++++++++ python-json-rpc.spec | 15 ++++++--------- 5 files changed, 19 insertions(+), 33 deletions(-) delete mode 100644 LICENSE.txt delete mode 100644 json-rpc-1.11.0.tar.gz create mode 100644 json-rpc-1.12.1.tar.gz diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 64b8765..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013-2017 Kirill Pavlov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/json-rpc-1.11.0.tar.gz b/json-rpc-1.11.0.tar.gz deleted file mode 100644 index 323926f..0000000 --- a/json-rpc-1.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5e53f80699e97754bfd8a29c86138aa144c4e6663fe80c0be5270fc6f177166 -size 29442 diff --git a/json-rpc-1.12.1.tar.gz b/json-rpc-1.12.1.tar.gz new file mode 100644 index 0000000..f1c7c30 --- /dev/null +++ b/json-rpc-1.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc84451268b48a576d3138744322a8ce673eccadf7424edf4d446b1ddb59e58c +size 1364570 diff --git a/python-json-rpc.changes b/python-json-rpc.changes index c664c92..0047907 100644 --- a/python-json-rpc.changes +++ b/python-json-rpc.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Mar 26 14:49:45 UTC 2019 - Tomáš Chvátal + +- Update to 1.12.1: + * ADD: Ability to override function name with decorator convention in + dispatcher + * REF: Improve function parameter introspection: use more stable + approach for python3, allow both args and kwards parameters check at + the same time. + ------------------------------------------------------------------- Tue Dec 4 12:49:39 UTC 2018 - Matej Cepl diff --git a/python-json-rpc.spec b/python-json-rpc.spec index 4da4f2d..628e936 100644 --- a/python-json-rpc.spec +++ b/python-json-rpc.spec @@ -1,7 +1,7 @@ # # spec file for package python-json-rpc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-json-rpc -Version: 1.11.0 +Version: 1.12.1 Release: 0 Summary: JSON-RPC transport implementation License: MIT Group: Development/Languages/Python -Url: https://github.com/pavlov99/json-rpc +URL: https://github.com/pavlov99/json-rpc Source: https://files.pythonhosted.org/packages/source/j/json-rpc/json-rpc-%{version}.tar.gz -Source10: https://raw.githubusercontent.com/pavlov99/json-rpc/%{version}/LICENSE.txt BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} # /SECTION -BuildArch: noarch - %python_subpackages %description @@ -47,7 +45,6 @@ requests, gevent or zmq. %prep %setup -q -n json-rpc-%{version} -cp %{SOURCE10} . %build %python_build @@ -57,7 +54,7 @@ cp %{SOURCE10} . %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst