14
0
forked from pool/python-ujson

Accepting request 979169 from home:gosipyan:branches:devel:languages:python

- update to version 5.3.0
  * Test Python 3.11 beta (#539) @hugovk
  * Benchmark refactor - argparse CLI (#533) @Erotemic
  * Fix segmentation faults when errors occur while handling unserialisable objects (#531) @JustAnotherArchivist
  * Fix segmentation fault when an exception is raised while converting a dict key to a string (#526) @JustAnotherArchivist
  * Fix memory leak dumping on non-string dict keys (#521) @JustAnotherArchivist
  * Fix ref counting on repeated default function calls (#524) @JustAnotherArchivist
  * Remove redundant wheel dependency from pyproject.toml (#535) @hugovk
- Release 5.2.0
  * Support parsing NaN, Infinity and -Infinity (#514) @Erotemic
  * Support dynamically linking against system double-conversion library (#508) @musicinmybrain
  * Add env var to control stripping debug info (#507) @musicinmybrain
  * Add JSONDecodeError (#498) @JustAnotherArchivist
  * Fix buffer overflows (CVE-2021-45958) (#519) @JustAnotherArchivist
  * Upgrade Black to fix Click (#515) @hugovk
  * simplify exception handling on integer overflow (#510) @RouquinBlanc
  * Remove dead code that used to handle the separate int type in Python 2 (#509) @JustAnotherArchivist
  * Fix exceptions on encoding list or dict elements and non-overflow errors on int handling getting silenced (#505) @JustAnotherArchivist
- Release 5.1.0
  * Strip debugging symbols from Linux binaries (#493) @bwoodsend
- Release 5.0.0
  * Use cibuildwheel to build wheels (#491) @bwoodsend
  * Drop support for soon-EOL Python 3.6 (#490) @hugovk
  * Install Twine to upload to PyPI (#492) @hugovk
- Remove python-ujson-system-double-conversion.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/979169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=30
This commit is contained in:
2022-05-25 12:24:16 +00:00
committed by Git OBS Bridge
parent 243d9d8f83
commit ecc0d8fce2
5 changed files with 36 additions and 23 deletions

View File

@@ -1,16 +0,0 @@
Index: ujson-4.3.0/setup.py
===================================================================
--- ujson-4.3.0.orig/setup.py
+++ ujson-4.3.0/setup.py
@@ -15,9 +15,9 @@ module1 = Extension(
"./lib/ultrajsonenc.c",
"./lib/ultrajsondec.c",
],
- include_dirs=["./python", "./lib", "./deps/double-conversion/double-conversion"],
+ include_dirs=["./python", "./lib", "/usr/include/double-conversion"],
extra_compile_args=["-D_GNU_SOURCE"],
- extra_link_args=["-lstdc++", "-lm"],
+ extra_link_args=["-lstdc++", "-lm", "-ldouble-conversion"],
)
with open("python/version_template.h") as f:

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Tue May 24 16:34:36 UTC 2022 - Gayane Osipyan <Gayane.Osipyan@suse.com>
- update to version 5.3.0
* Test Python 3.11 beta (#539) @hugovk
* Benchmark refactor - argparse CLI (#533) @Erotemic
* Fix segmentation faults when errors occur while handling unserialisable objects (#531) @JustAnotherArchivist
* Fix segmentation fault when an exception is raised while converting a dict key to a string (#526) @JustAnotherArchivist
* Fix memory leak dumping on non-string dict keys (#521) @JustAnotherArchivist
* Fix ref counting on repeated default function calls (#524) @JustAnotherArchivist
* Remove redundant wheel dependency from pyproject.toml (#535) @hugovk
- Release 5.2.0
* Support parsing NaN, Infinity and -Infinity (#514) @Erotemic
* Support dynamically linking against system double-conversion library (#508) @musicinmybrain
* Add env var to control stripping debug info (#507) @musicinmybrain
* Add JSONDecodeError (#498) @JustAnotherArchivist
* Fix buffer overflows (CVE-2021-45958) (#519) @JustAnotherArchivist
* Upgrade Black to fix Click (#515) @hugovk
* simplify exception handling on integer overflow (#510) @RouquinBlanc
* Remove dead code that used to handle the separate int type in Python 2 (#509) @JustAnotherArchivist
* Fix exceptions on encoding list or dict elements and non-overflow errors on int handling getting silenced (#505) @JustAnotherArchivist
- Release 5.1.0
* Strip debugging symbols from Linux binaries (#493) @bwoodsend
- Release 5.0.0
* Use cibuildwheel to build wheels (#491) @bwoodsend
* Drop support for soon-EOL Python 3.6 (#490) @hugovk
* Install Twine to upload to PyPI (#492) @hugovk
- Remove python-ujson-system-double-conversion.patch (upstreamed)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 11 18:15:20 UTC 2021 - Ben Greiner <code@bnavigator.de> Sat Dec 11 18:15:20 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ujson # spec file for package python-ujson
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,12 @@
%{?!python_module:%define python_module() python3-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-ujson Name: python-ujson
Version: 4.3.0 Version: 5.3.0
Release: 0 Release: 0
Summary: JSON encoder and decoder for Python Summary: JSON encoder and decoder for Python
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/esnme/ultrajson URL: https://github.com/esnme/ultrajson
Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
# unbundle double-conversion (https://github.com/ultrajson/ultrajson/issues/375)
Patch0: python-ujson-system-double-conversion.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
@@ -48,6 +46,8 @@ bindings for Python 2.7 and 3.5+
%build %build
rm -r deps rm -r deps
export CFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"
export UJSON_BUILD_DC_INCLUDES='/usr/include/double-conversion'
export UJSON_BUILD_DC_LIBS='-ldouble-conversion'
%python_build %python_build
%install %install

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:baee56eca35cb5fbe02c28bd9c0936be41a96fa5c0812d9d4b7edeb5c3d568a0
size 7129405

3
ujson-5.3.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab938777b3ac0372231ee654a7f6a13787e587b1ca268d8aa7e6fb6846e477d0
size 7137499