diff --git a/python-311.patch b/python-311.patch new file mode 100644 index 0000000..2667fb2 --- /dev/null +++ b/python-311.patch @@ -0,0 +1,13 @@ +Index: JsonWeb-0.8.2/jsonweb/decode.py +=================================================================== +--- JsonWeb-0.8.2.orig/jsonweb/decode.py ++++ JsonWeb-0.8.2/jsonweb/decode.py +@@ -231,7 +231,7 @@ class ObjectHook(object): + + + def get_arg_spec(func): +- arg_spec = inspect.getargspec(func) ++ arg_spec = inspect.getfullargspec(func) + args = arg_spec.args + + try: diff --git a/python-JsonWeb.changes b/python-JsonWeb.changes index 767b5df..391f5d6 100644 --- a/python-JsonWeb.changes +++ b/python-JsonWeb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 10 12:14:57 UTC 2023 - Daniel Garcia + +- Add python-311.patch to support python 3.11 + ------------------------------------------------------------------- Tue Jun 9 11:14:01 UTC 2020 - Marketa Calabkova diff --git a/python-JsonWeb.spec b/python-JsonWeb.spec index 8370c60..dde84d1 100644 --- a/python-JsonWeb.spec +++ b/python-JsonWeb.spec @@ -1,7 +1,7 @@ # # spec file for package python-JsonWeb # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-JsonWeb Version: 0.8.2 Release: 0 @@ -24,6 +23,8 @@ Summary: Add JSON (de)serialization to your python objects License: BSD-3-Clause URL: http://www.jsonweb.info/ Source: https://files.pythonhosted.org/packages/source/J/JsonWeb/JsonWeb-%{version}.tar.gz +# PATCH-FIX-OPENSUSE python-311.patch +Patch0: python-311.patch BuildRequires: %{python_module pytest} BuildRequires: python-rpm-macros BuildArch: noarch @@ -34,7 +35,7 @@ Quickly add json serialization and deserialization to your python classes. %prep -%setup -q -n JsonWeb-%{version} +%autosetup -p1 -n JsonWeb-%{version} %build %python_build @@ -47,6 +48,7 @@ to your python classes. %files %{python_files} %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/jsonweb +%{python_sitelib}/JsonWeb-%{version}*-info %changelog