15
0
Commit Graph

38 Commits

Author SHA256 Message Date
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
800bc2cb8f - 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/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=38
2024-06-19 08:56:59 +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
78d5c28131 - 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/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=36
2024-04-14 08:31:20 +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
e5574074ee Accepting request 1163279 from home:ecsos:python
- Fix build error for Leap.

OBS-URL: https://build.opensuse.org/request/show/1163279
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=34
2024-03-28 10:39:24 +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
867cb833d5 - update to 3.0.3:
* Compatibilty with Pandas and Cython 3.0 was added.
  * Fixed a bug where pickling some built-in classes (e.g. zoneinfo)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=32
2024-03-16 08:36:00 +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
0dbe49c03c Accepting request 1136563 from home:alarrosa:branches:devel:languages:python
- Add patch to enable the gmpy test correctly:
  * enable_gmpy_test.patch
- Disable BuildRequies pandas and scikit-learn in SLE where
  they're not available and only used for tests
- Use python-bson instead of python-pymongo in SLE
- Do not search for tests recursively in SLE but explicitly name
  the directory/files containing tests. This solves an issue
  building the package without pandas in SLE.

OBS-URL: https://build.opensuse.org/request/show/1136563
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=30
2024-01-03 18:52:52 +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
82f3c59ed2 Accepting request 1132921 from home:bnavigator:branches:devel:languages:python
- Update to 3.0.2
  * Properly raise warning if a custom pickling handler returns
    None. (#433)
  * Fix issue with serialization of certain sklearn objects
    breaking when the numpy handler was enabled. (#431) (+434)
  * Allow custom backends to not implement _encoder_options (#436)
    (+446)
  * Implement compatibility with pandas 2 (+446)
  * Fix encoding/decoding of dictionary subclasses with referencing
    (+455)
  * Fix depth tracking for list/dict referencing (+456)
- Drop pandas2.patch
- Skip a noncritical test due to pandas built with Cython 3
  gh#jsonpickle/jsonpickle#460

OBS-URL: https://build.opensuse.org/request/show/1132921
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=28
2023-12-14 00:58:00 +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
663402c537 Accepting request 1093100 from home:mcalabkova:branches:devel:languages:python
- Add patch pandas2.patch to fix compatibility
- Skip flaky test

OBS-URL: https://build.opensuse.org/request/show/1093100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=26
2023-06-15 20:05:13 +00:00
705a8cad85 Accepting request 1092103 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=25
2023-06-11 11:43:34 +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
127402c57b Accepting request 1060463 from home:bnavigator:branches:devel:languages:python
- Update to 3.0.1
  * Remove accidental pin of setuptools to versions below 59. This
    allows jsonpickle to build with CPython 3.11 and 3.12 alphas.
    (#424)
  * Remove accidental dependency on pytz in pandas tests. (+421)
  * Fix issue with decoding bson.bson.Int64 objects (#422)
- Release 3.0.0
  * Drop support for CPython<3.7. CPython 3.6 and below have
    reached EOL and no longer receive security updates. (#375)
  * Add support for CPython 3.11. (#395) (+396)
  * Remove jsonlib and yajl backends (py2 only)
  * Add `include_properties` option to the pickler. This should
    only be used if analyzing generated json outside of Python.
    (#297) (+387)
  * Allow the `classes` argument to `jsonpickle.decode` to be a
    dict of class name to class object. This lets you decode
    arbitrary dumps into different classes. (#148) (+392)
  * Fix bug with deserializing `numpy.poly1d`. (#391)
  * Allow frozen dataclasses to be deserialized. (#240)
  * Fixed a bug where pickling a function could return a `None`
    module. (#399)
  * Removed old bytes/quopri and ref decoding abaility from the
    unpickler. These were last used in jsonpickle<1. Removing them
    causes a slight speedup in unpickling lists (~5%). (+403)
  * Fixed a bug with namedtuples encoding on CPython 3.11. (#411)
  * When using the `sort_keys` option for the `simplejson` backend,
    jsonpickle now produces correct object references with py/id
    tags. (#408)
  * Speed up the internal method `_restore_tags` by ~10%. This
    should speed up unpickling of almost every object.
- Release 2.2.0
  * Classes with a custom `__getitem__()` and `append()` now pickle
    properly. (#362) (+379)
  * Remove the demjson backend, as demjson hasn't been maintained
    for 5 years. (+379)
  * Added new handler for numpy objects when using
    unpickleable=False. (#381) (+382)
  * Added exception handling for class attributes that can't be
    accessed. (#301) (+383)
  * Added a long-requested on_missing attribute to the Unpickler
    class. This lets you choose behavior for when jsonpickle can't
    find a class to deserialize to. (#190) (#193) (+384)
  * Private members of `__slots__` are no longer skipped when
    encoding. Any objects encoded with versions prior to 2.2.0
    should still decode properly. (#318) (+385)
- Release 2.1.0
  * Python 3.10 is now officially supported. (+376)
  * `is_reducible()` was sped up by ~80%.  (+353) (+354)
  * `_restore_tags()` was sped up by ~100%. Unpickling items with a
    lot of tuples and sets will benefit most. Python 2 users and
    users deserializing pickles from jsonpickle <= 0.9.6 may see a
    slight performance decrease if using a lot of bytes, ref,
    and/or repr objects. (+354)
  * `is_iterator()` was sped up by ~20% by removing an unnecessary
    variable assignment. (+354)
  * `jsonpickle.decode` has a new option, `v1_decode` to assist in
    decoding objects created in jsonpickle version 1. (#364)
  * The `encode()` documentation has been updated to help sklearn
    users.
  * `SQLALchemy<1.2` is no longer being tested by jsonpickle. Users
    of sqlalchemy + jsonpickle can always use 1.2 or 1.3. When
    jsonpickle v3 is released we will add SQLAlchemy 1.4 to the
    test suite alongside removal of support for Python 3.5 and
    earlier.
- Remove testing skip conditionals:
  * no python36 anymore
  * jsonpickle not in Ring1 anymore

OBS-URL: https://build.opensuse.org/request/show/1060463
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=23
2023-01-24 08:29:53 +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
e91286a691 Accepting request 944521 from home:bnavigator:branches:devel:languages:python
- Don't test and recommend unmaintained packages demjson and
  feedparser

OBS-URL: https://build.opensuse.org/request/show/944521
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=22
2022-01-06 20:04:18 +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
8ad35ea539 Accepting request 872669 from home:bnavigator:branches: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)

OBS-URL: https://build.opensuse.org/request/show/872669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +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
Tomáš Chvátal
3596bdd0a4 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=18
2020-03-14 08:26:48 +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
548c1e69cc - Add PR292-Python38.patch to fix Python 3.8 incompatibilities
(gh#jsonpickle/jsonpickle#281).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=16
2020-02-28 17:46:34 +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
75904ecb7b Add BR: python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=14
2019-12-05 17:51:38 +00:00
297d77d4cc Add BR: python
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=13
2019-12-05 17:29:28 +00:00
0bd16521c7 - 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/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=12
2019-12-05 17:14:02 +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
Tomáš Chvátal
2b5fe1af50 - Update to 1.2:
* support new sqlalchemy
- Remove merged patch sqlalchemy13.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=10
2019-06-17 11:56:11 +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
Tomáš Chvátal
3b3c66c6af - Add patch to work with sqlalchemy 1.3:
* sqlalchemy13.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=8
2019-03-19 08:20:58 +00:00
Tomáš Chvátal
872dfbfd57 - 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/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=7
2019-03-15 13:07:06 +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
1e854dcba6 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=5
2018-12-04 13:36:05 +00:00
20b5e07f8c Accepting request 612068 from devel:languages:python
Python library for serializing any arbitrary object graph into JSON

OBS-URL: https://build.opensuse.org/request/show/612068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpickle?expand=0&rev=1
2018-06-02 10:03:39 +00:00
Todd R
d932ea8b2e Accepting request 612015 from devel:languages:python:misc
Python library for serializing any arbitrary object graph into JSON

OBS-URL: https://build.opensuse.org/request/show/612015
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=1
2018-05-24 20:56:36 +00:00