forked from pool/python-jsonpickle
Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f00ff57fde | |||
| b901d092d2 | |||
| 87cdeb7abd | |||
| 3ce7dd7581 | |||
| 5cc48035e2 | |||
| bd8cfc6f64 | |||
| 09f0a97c48 | |||
| 6eace1b379 | |||
| 39e4d8f8f4 | |||
| 7426192e76 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d425fd2b8afe9f5d7d57205153403fbf897782204437882a477e8eed60930f8c
|
|
||||||
size 327839
|
|
||||||
3
jsonpickle-4.1.1.tar.gz
Normal file
3
jsonpickle-4.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f86e18f13e2b96c1c1eede0b7b90095bbb61d99fedc14813c44dc2f361dbbae1
|
||||||
|
size 316885
|
||||||
@@ -1,3 +1,104 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 15 10:20:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Exclude testing with pandas on Leap 16.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 29 11:33:04 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.1.1:
|
||||||
|
* Maintenance release to omit upcoming breaking changes.
|
||||||
|
* An error in the jsonpickle pandas extension when decoding
|
||||||
|
objects that were encoded before jsonpickle v3.4.0 was fixed,
|
||||||
|
and warnings were added. (+562)
|
||||||
|
* Added jsonpickle.ext.yaml for forwards-compatibility, but the
|
||||||
|
yaml module continues to be registered by default. v5.0.0
|
||||||
|
will no longer register jsonpickle.ext.yaml by default.
|
||||||
|
* Deprecation warnings were added to certain simple functions
|
||||||
|
in jsonpickle/util.py. These functions will be removed in
|
||||||
|
5.0.0 to ease the transition into typing everything.
|
||||||
|
* The test_multindex_dataframe_roundtrip test in the pandas
|
||||||
|
extension had been failing on 32-bit architectures in
|
||||||
|
Debian's test suite. This has been resolved. (+560)
|
||||||
|
* pyproject.toml was updated to include the
|
||||||
|
project.license.text field so that pypi continues to list our
|
||||||
|
license.
|
||||||
|
* pyproject.toml was updated to avoid specifying the license
|
||||||
|
file. This avoids breaking older setuptools versions while
|
||||||
|
also avoiding the deprecated tool.setuptools.license-files
|
||||||
|
field. setuptools will find our LICENSE file automatically,
|
||||||
|
so there is no need to specify it.
|
||||||
|
* Documentation warnings from furo have been fixed.
|
||||||
|
* Numpy datetime64 objects with nanosecond precision are now
|
||||||
|
supported. (+556)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 24 13:37:56 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.0.2
|
||||||
|
* The unpickler is now more resilient to malformed "py/id" and "py/repr" data. (+546)
|
||||||
|
* The unpickler is now more resilient to invalid "py/b85" and "py/b64" data. (+547)
|
||||||
|
* The unpickler's support for read-only str attributes was improved. (+548) (#478)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 5 07:24:26 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.0.1
|
||||||
|
* The unpickler is now more resilient to malformed "py/reduce", "py/set",
|
||||||
|
"py/tuple", "py/b64", "py/b85", and "py/iterator" input data. (+544) (+545)
|
||||||
|
* The test suite was updated to leverage more pytest features.
|
||||||
|
* The ``jsonpickle.compat`` module is no longer used. It is still provided
|
||||||
|
for backwards compatibility but it may be removed in a future version.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 16:10:49 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.0.0:
|
||||||
|
* Breaking Change: Python 3.7 is no longer supported.
|
||||||
|
* Breaking Change: Support for pre-0.7.0 repr-serialized
|
||||||
|
objects is no longer enabled by default. The safe option to
|
||||||
|
decode() was changed from False to True. Users can still pass
|
||||||
|
safe=False to decode() in order to enable this feature for
|
||||||
|
the purposes of loading older files, but beware that this
|
||||||
|
feature relies on unsafe behavior through its use of eval().
|
||||||
|
Users are encouraged to re-pickle old data in order to
|
||||||
|
migrate away from the the unsafe loading feature. (+514)
|
||||||
|
* The pickler no longer produces py/repr tags when pickling
|
||||||
|
modules. py/mod is used instead, as it is clearer and uses
|
||||||
|
one less byte. (+514)
|
||||||
|
* The test suite no longer uses the deprecated
|
||||||
|
datetime.datetime.utcnow() function. (+539)
|
||||||
|
* The breaking changes from v4 were inadvertedly included in
|
||||||
|
v3.4.1, which has been yanked. This release remedies this by
|
||||||
|
reverting the v4 changes.
|
||||||
|
* Support decoding pandas dataframes encoded with versions
|
||||||
|
3.3.0 and older. (+536)
|
||||||
|
* Officially support Python 3.12 in the GitHub Actions testing
|
||||||
|
matrix, and update GHA package versions used. (+524)
|
||||||
|
* Improve reproducibility of benchmarking commands on Linux by
|
||||||
|
using taskset and adding a "HOWTO" run benchmarks section in
|
||||||
|
benchmarking/README.md. (+526)
|
||||||
|
* The setup.cfg packaging configuration has been replaced by
|
||||||
|
pyproject.toml. (+527)
|
||||||
|
* yaml is now supported as a jsonpickle backend. (+528)
|
||||||
|
* OSSFuzz scripts are now available in the fuzzing/ directory.
|
||||||
|
(+525)
|
||||||
|
* Pure-python dtypes are now preserved across encode()/decode()
|
||||||
|
roundtrips for the pandas extension.
|
||||||
|
* Pandas dataframe columns with an object dtype that contain
|
||||||
|
multiple different types within (e.g. a column of type
|
||||||
|
list[Union[str, int]]) now preserve the types upon being
|
||||||
|
roundtripped. (#457)
|
||||||
|
* Fix warnings in the test suite regarding numpy.compat usage.
|
||||||
|
* The unpickler was updated to avoid using eval, which helps
|
||||||
|
improve its security. Users can still pass safe=False to
|
||||||
|
decode to use the old behavior, though this is not
|
||||||
|
recommended. (+513)
|
||||||
|
* Objects can now exclude specific attributes from pickling by
|
||||||
|
providing a _jsonpickle_exclude class or instance attribute.
|
||||||
|
This attribute should contain the list of attribute names to
|
||||||
|
exclude when pickling the object.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 30 20:34:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sun Jun 30 20:34:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jsonpickle
|
# spec file for package python-jsonpickle
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-jsonpickle
|
Name: python-jsonpickle
|
||||||
Version: 3.2.2
|
Version: 4.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library for serializing any arbitrary object graph into JSON
|
Summary: Python library for serializing any arbitrary object graph into JSON
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@@ -46,7 +46,7 @@ BuildRequires: %{python_module ecdsa}
|
|||||||
BuildRequires: %{python_module feedparser}
|
BuildRequires: %{python_module feedparser}
|
||||||
BuildRequires: %{python_module gmpy2 if %python-base < 3.12}
|
BuildRequires: %{python_module gmpy2 if %python-base < 3.12}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550 && 0%{?suse_version} < 1600 || 0%{?suse_version} >= 1699
|
||||||
BuildRequires: %{python_module pandas}
|
BuildRequires: %{python_module pandas}
|
||||||
BuildRequires: %{python_module pymongo}
|
BuildRequires: %{python_module pymongo}
|
||||||
BuildRequires: %{python_module scikit-learn}
|
BuildRequires: %{python_module scikit-learn}
|
||||||
@@ -76,14 +76,15 @@ sed -i 's/ --cov//' pytest.ini
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
rm -rv fuzzing
|
||||||
# test_multindex_dataframe_roundtrip is flaky on i586
|
# test_multindex_dataframe_roundtrip is flaky on i586
|
||||||
donttest="test_multindex_dataframe_roundtrip"
|
donttest="test_multindex_dataframe_roundtrip"
|
||||||
# https://github.com/jsonpickle/jsonpickle/issues/460
|
# https://github.com/jsonpickle/jsonpickle/issues/460
|
||||||
donttest+=" or test_timedelta_index_roundtrip"
|
donttest+=" or test_timedelta_index_roundtrip"
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} >= 1550 && 0%{?suse_version} < 1600 || 0%{?suse_version} >= 1699
|
||||||
%pytest -ra -k "not ($donttest)" tests jsonpickle/pickler.py jsonpickle/unpickler.py jsonpickle/util.py
|
|
||||||
%else
|
|
||||||
%pytest -ra -k "not ($donttest)"
|
%pytest -ra -k "not ($donttest)"
|
||||||
|
%else
|
||||||
|
%pytest -ra -k "not ($donttest)" tests jsonpickle/pickler.py jsonpickle/unpickler.py jsonpickle/util.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
|||||||
Reference in New Issue
Block a user