1
0

27 Commits

Author SHA256 Message Date
f00ff57fde Accepting request 1323721 from devel:languages:python
Forwarded request #1322932 from mcalabkova

- Exclude testing with pandas on Leap 16.0

OBS-URL: https://build.opensuse.org/request/show/1323721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=23
2025-12-20 20:46:07 +00:00
b901d092d2 - Exclude testing with pandas on Leap 16.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=50
2025-12-19 21:59:41 +00:00
87cdeb7abd Accepting request 1307763 from devel:languages:python
- 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)

OBS-URL: https://build.opensuse.org/request/show/1307763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=22
2025-09-29 14:37:53 +00:00
3ce7dd7581 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=48
2025-09-29 11:33:09 +00:00
5cc48035e2 Accepting request 1248171 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=21
2025-02-25 15:47:13 +00:00
bd8cfc6f64 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=46
2025-02-24 14:31:00 +00:00
09f0a97c48 Accepting request 1243316 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1243316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=20
2025-02-05 16:32:21 +00:00
6eace1b379 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=44
2025-02-05 10:57:23 +00:00
39e4d8f8f4 Accepting request 1225333 from devel:languages:python
- 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)

OBS-URL: https://build.opensuse.org/request/show/1225333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=19
2024-11-21 14:13:55 +00:00
7426192e76 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=42
2024-11-20 16:10:58 +00:00
7345749064 Accepting request 1184137 from devel:languages:python
- update to 3.2.2:
  * A bug with the incorrect (de)serialization of NoneType
    objects has been fixed. (+507)
  * tests/benchmark.py was updated to avoid Python 2 syntax.
    (+508)
  * The unpickler was updated to avoid creating temporary
    functions. (+508)
  * Some basic scripts have been made to analyze benchmark
    results. (+511)
  * Fix test suite compatibility with Numpy 2.x (+512)
  * setup.cfg was updated to use license_files instead of
    license_file.

OBS-URL: https://build.opensuse.org/request/show/1184137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=18
2024-07-01 09:21:44 +00:00
bd779e0dba Accepting request 1181704 from devel:languages:python
- update to 3.2.1:
  * The ``ignorereserved`` parameter to the private
    ``_restore_from_dict()`` function has been restored for
    backwards compatibility. (+501)
  * Nested dictionaries in `py/state` are now correctly restored when
    tracking object references. (+501) (#500)
  * `jsonpickle.ext.numpy.register_handlers` now provides options
    that are forwarded to the `NumpyNDArrayHandler` constructor.
  * Fix bug of not handling ``classes`` argument to
    `jsonpickle.decode` being a dict. Previously, the keys were
    ignored and only values were used. (+494)
  * Allow the ``classes`` argument to `jsonpickle.pickle` to have
    class objects as keys. This extends the current functionality
    of only having class name strings as keys. (+494)
  * The ``garden setup/dev`` action and ``requirements-dev.txt``
    requirements file now include test dependencies for use
    during development.
  * Added support for Python 3.13. (+505) (#504)

OBS-URL: https://build.opensuse.org/request/show/1181704
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=17
2024-06-19 14:40:49 +00:00
1f426ffd82 Accepting request 1167627 from devel:languages:python
- update to 3.0.4:
  * Fixed an issue with django.SafeString and other classes
    inheriting from str having read-only attribute errors
  * The test suite was made compatible with pytest-ruff>=0.3.0
  * A `garden.yaml` file was added for use with the
   `garden` command runner.
  * The test suite was updated to avoid deprecated SQLALchemy APIs.
   * The `jaraco.packaging.sphinx` documentation dependency was
     removed.

OBS-URL: https://build.opensuse.org/request/show/1167627
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=16
2024-04-15 18:17:09 +00:00
085f78145f Accepting request 1163290 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1163290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=15
2024-03-28 12:55:35 +00:00
a649a0c3d0 Accepting request 1160902 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1160902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=14
2024-03-25 20:08:37 +00:00
ef34bfb2ea Accepting request 1136659 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1136659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=13
2024-01-04 14:58:49 +00:00
b2580a2d51 Accepting request 1132963 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1132963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=12
2023-12-14 21:03:17 +00:00
3a0b9426ce Accepting request 1093360 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1093360
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=11
2023-06-16 14:54:56 +00:00
baa44a21d2 Accepting request 1060582 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1060582
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=10
2023-01-24 18:43:34 +00:00
467ed43bd4 Accepting request 944522 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/944522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=9
2022-01-08 22:23:04 +00:00
38fe2c4497 Accepting request 872816 from devel:languages:python
- Update to version 2.0.0
  * Major release: the serialized JSON format now preserves
    dictionary identity, which is a subtle change in the
    serialized format. (#351)
  * Dictionary identity is now preserved. For example, if the same
    dictionary appears twice in a list, the reconstituted list
    will now contain two references to the same dictionary. (#255)
    (+332)
- Changes in v1.5.2
  * Patch release to avoid the change in behavior from the
    preservation of dict identity. The next release will be
    v2.0.0. (#351)
  * This relese does not include the performance improvements from
    v1.5.1.
  * Pandas DataFrame objects with multilevel columns are now
    supported. (#346) (+347)
  * Numpy 1.20 is now officially supported. (#336)
  * Python 3.9 is now officially supported. (+348)
  * Achieved a small speedup for _get_flattener by merging type
    checks. (+349)
- Changes in v1.5.1
  * The performance of the unpickler was drastically improved by
    avoiding tag checks for basic Python types. (+340)
  * decode() documentation improvements. (+341)
  * Serialization of Pandas DataFrame objects that contain
    timedelta64[ns] dtypes are now supported. (+330) (#331)
  * Dictionary identity is now preserved. For example, if the same
    dictionary appears twice in a list, the reconstituted list
    will now contain two references to the same dictionary. (#255)
    (+332)
  * Unit tests were added to ensure that sklearn.tree.
    DecisionTreeClassifier objects are properly serialized. (#155)
    (+344)
  * The is_reducible() utility function used by encode() is now 4x
    faster! Objects that provide __getstate__(), __setstate__(),
    and __slots__ benefit most from these improvements. (+343)
  * Improved pickler flatten()/encode() performance. (+345)
- Changes in v1.5.0
  * Previous versions of jsonpickle with make_refs=False would
    emit null when encountering an object it had already seen when
    traversing objects. All instances of the object are now
    serialized. While this is arguably an improvement in the vast
    majority of scenarios, it is a change in behavior and is thus
    considered a minor-level change. (#333) (#334) (#337) (+338)
  * Multiple enums are now serialized correctly with
    make_refs=False. (#235)
- Changes in v1.4.2
  * Use importlib.metadata from the stdlib on Python 3.8. (+305)
    (#303)
  * Micro-optimize type checks to use a set for lookups. (+327)
  * Documentation improvements.
- Changes in v1.4.1
  * Patch release for Python 3.8 importlib_metadata support. (#300)
- Changes in v1.4
  * Python 3.8 support. (#292)
  * jsonpickle.encode now supports the standard indent and
    separators arguments, and passes them through to the active
    JSON backend library. (#183)
  * We now include a custom handler for array.array objects. (#199)
  * Dict key order is preserved when pickling dictionaries on
    Python3. (#193)
  * Improved serialization of dictionaries with non-string keys.
    Previously, using an enum that was both the key and a value in
    a dictionary could end up with incorrect references to other
    objects. The references are now properly maintained for dicts
    with object keys that are also referenced in the dict's
    values. (#286)
  * Improved serialization of pandas.Series objects. (#287)
- Don't test numpy and pandas in python36 flavor, because
  they are no longer available on Tumbleweed (NEP 29)
- Test some extras, but not in lettered staging if they are not
  in Ring1.
- Drop PR292-Python38.patch merged upstream

OBS-URL: https://build.opensuse.org/request/show/872816
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=8
2021-02-16 21:34:38 +00:00
428ab97431 Accepting request 784832 from devel:languages:python
Staging:I py2

OBS-URL: https://build.opensuse.org/request/show/784832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=7
2020-03-26 23:23:49 +00:00
5b79f20390 Accepting request 780358 from devel:languages:python
- Add PR292-Python38.patch to fix Python 3.8 incompatibilities
  (gh#jsonpickle/jsonpickle#281).

OBS-URL: https://build.opensuse.org/request/show/780358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=6
2020-03-08 21:21:24 +00:00
a1ef853d40 Accepting request 754492 from devel:languages:python
- Exclude tests failing with python 3.8 (test_thing_with_fd,
  test_list_with_fd, and test_dict_with_fd). gh#jsonpickle/jsonpickle#281

OBS-URL: https://build.opensuse.org/request/show/754492
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=5
2019-12-11 11:10:05 +00:00
ecb7e4fc30 Accepting request 710340 from devel:languages:python
- Update to 1.2:
  * support new sqlalchemy
- Remove merged patch sqlalchemy13.patch

OBS-URL: https://build.opensuse.org/request/show/710340
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=4
2019-06-22 09:22:57 +00:00
2e0b2f2fb3 Accepting request 686312 from devel:languages:python
- Add patch to work with sqlalchemy 1.3:
  * sqlalchemy13.patch

- Update to 1.1:
  * Python 3.7 collections.Iterator deprecation warnings have been fixed. (#229).
  * Improved Pandas support for datetime and complex numbers. (#245)
  * NOTE jsonpickle no longer supports Python2.6, or Python3 < 3.4. The officially supported Python versions are now 2.7 and 3.4+.
  * Improved Pandas and Numpy support. (#227)
  * Improved support for pickling iterators. (#216)
  * Better support for the stdlib json module when simplejson is not installed. (#217)
  * jsonpickle will now output python3-style module names when pickling builtins methods or functions. (#223)
  * jsonpickle will always flatten primitives, even when max_depth is reached, which avoids encoding unicode strings into their u'string' representation.
  * Nested classes are now supported on Python 3. (#206, #176).
  * Better support for older (pre-1.9) versions of numpy (#195).

OBS-URL: https://build.opensuse.org/request/show/686312
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=3
2019-03-20 12:19:24 +00:00
971336ba80 Accepting request 659458 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=2
2018-12-24 10:38:50 +00:00
4 changed files with 111 additions and 9 deletions

View File

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

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

View File

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

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-jsonpickle
Version: 3.2.2
Version: 4.1.1
Release: 0
Summary: Python library for serializing any arbitrary object graph into JSON
License: BSD-3-Clause
@@ -46,7 +46,7 @@ BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module feedparser}
BuildRequires: %{python_module gmpy2 if %python-base < 3.12}
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 pymongo}
BuildRequires: %{python_module scikit-learn}
@@ -76,14 +76,15 @@ sed -i 's/ --cov//' pytest.ini
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
rm -rv fuzzing
# test_multindex_dataframe_roundtrip is flaky on i586
donttest="test_multindex_dataframe_roundtrip"
# https://github.com/jsonpickle/jsonpickle/issues/460
donttest+=" or test_timedelta_index_roundtrip"
%if 0%{?suse_version} < 1550
%pytest -ra -k "not ($donttest)" tests jsonpickle/pickler.py jsonpickle/unpickler.py jsonpickle/util.py
%else
%if 0%{?suse_version} >= 1550 && 0%{?suse_version} < 1600 || 0%{?suse_version} >= 1699
%pytest -ra -k "not ($donttest)"
%else
%pytest -ra -k "not ($donttest)" tests jsonpickle/pickler.py jsonpickle/unpickler.py jsonpickle/util.py
%endif
%files %{python_files}