forked from pool/python-JsonWeb
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-JsonWeb?expand=0&rev=14
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
JsonWeb-0.8.2.tar.gz
Normal file
3
JsonWeb-0.8.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:edc70578c2ddc48e58a640ca23ed010c0fcd0e7d5ccc4b507ce996b3a393a662
|
||||
size 22733
|
||||
13
python-311.patch
Normal file
13
python-311.patch
Normal 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:
|
||||
36
python-JsonWeb.changes
Normal file
36
python-JsonWeb.changes
Normal file
@@ -0,0 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 08:16:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- replace nose with pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 14:51:29 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Run through spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:49:41 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 24 13:42:06 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- singlespec auto-conversion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 28 17:34:29 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- initial commit
|
||||
|
||||
|
||||
57
python-JsonWeb.spec
Normal file
57
python-JsonWeb.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package python-JsonWeb
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-JsonWeb
|
||||
Version: 0.8.2
|
||||
Release: 0
|
||||
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 pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Quickly add json serialization and deserialization
|
||||
to your python classes.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n JsonWeb-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%{python_sitelib}/jsonweb
|
||||
%{python_sitelib}/[Jj]son[Ww]eb-%{version}*info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user