15
0

Accepting request 1078256 from devel:languages:python

- Add python-311.patch to support python 3.11

OBS-URL: https://build.opensuse.org/request/show/1078256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-JsonWeb?expand=0&rev=6
This commit is contained in:
2023-04-10 19:24:51 +00:00
committed by Git OBS Bridge
3 changed files with 24 additions and 4 deletions

13
python-311.patch Normal file
View File

@@ -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:

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 10 12:14:57 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add python-311.patch to support python 3.11
-------------------------------------------------------------------
Tue Jun 9 11:14:01 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -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