Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-jsonpickle
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-jsonpickle: updated to 4.1.4 v4.1.4 * Fix broken build from source on 4.1.3. v4.1.3 * Add deprecation warnings for the pending removal of the ``backend``, ``max_iter``, and ``v1_decode`` arguments, as well as the new behavior of 5.0.0 in not registering the yaml backend by default.
*: limit Python versions due to py-numpy dropping Python 3.11 support
py-jsonpickle: updated to 4.1.2 v4.1.2 * Add deprecation warnings for the pending removal of the ``safe``, ``numeric_keys``, and ``use_decimal`` arguments, as well as the pending change of ``keys`` parameter to default to ``True``.
*: remove reference to (removed) Python 3.9
*: py-numpy needs Python >= 3.11 now
py-jsonpickle: updated to 4.1.1 v4.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.
py-jsonpickle: updated to 4.1.0 v4.1.0 * 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)
py-jsonpickle: updated to 4.0.5 v4.0.5 * ``pyproject.toml`` was updated to include the ``project.license.text`` field so that pypi continues to list our license. v4.0.4 * ``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. v4.0.3 * Documentation warnings from ``furo`` have been fixed. * Numpy datetime64 objects with nanosecond precision are now supported. v4.0.2 * The unpickler is now more resilient to malformed "py/id" and "py/repr" data. * The unpickler is now more resilient to invalid "py/b85" and "py/b64" data. * The unpickler's support for read-only str attributes was improved. v4.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. * 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. v4.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. * 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. * The test suite no longer uses the deprecated ``datetime.datetime.utcnow()`` function.
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-jsonpickle: updated to 3.0.4 v3.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 <https://crates.io/crates/garden-tools>_` command runner. * The test suite was updated to avoid deprecated SQLALchemy APIs. * The `jaraco.packaging.sphinx` documentation dependency was removed.
py-jsonpickle: updated to 3.0.3 v3.0.3 * Compatibilty with Pandas and Cython 3.0 was added. * Fixed a bug where pickling some built-in classes (e.g. zoneinfo) could return a ``None`` module. * Fixed a bug where unpickling a missing class would return a different object instead of ``None``. * Fixed the handling of missing classes when setting ``on_missing`` to ``warn`` or ``error``. * The test suite was made compatible with Python 3.12. * The tox configuration was updated to generate code coverage reports. * The suite now uses ``ruff`` to validate python code. * The documentation can now be built offline when ``rst.linker`` and ``jaraco.packaging.sphinx`` are not available.
py-jsonpickle: updated to 3.0.2 v3.0.2 ====== * Properly raise warning if a custom pickling handler returns None. * Fix issue with serialization of certain sklearn objects breaking when the numpy handler was enabled. * Allow custom backends to not implement _encoder_options * Implement compatibility with pandas 2 (+446) v3.0.1 ====== * Remove accidental pin of setuptools to versions below 59. This allows jsonpickle to build with CPython 3.11 and 3.12 alphas. * Remove accidental dependency on pytz in pandas tests. (+421) * Fix issue with decoding bson.bson.Int64 objects v3.0.0 ====== * Drop support for CPython<3.7. CPython 3.6 and below have reached EOL and no longer receive security updates. * Add support for CPython 3.11. * 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. * 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. * Fix bug with deserializing `numpy.poly1d`. * Allow frozen dataclasses to be deserialized. * Fixed a bug where pickling a function could return a ``None`` module. * 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. * When using the ``sort_keys`` option for the ``simplejson`` backend, jsonpickle now produces correct object references with py/id tags. * Speed up the internal method ``_restore_tags`` by ~10%. This should speed up unpickling of almost every object.
Remove dependencies for Python 3.7
py-jsonpickle: not for python 2
*: use PYTHON_VERSION instead of _PYTHON_VERSION
*: use py-test-cov from versioned_dependencies
*: use versioned_dependencies.mk for py-importlib-metadata
*: setuptools_scm: switch to versioned_dependencies
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-jsonpickle: updated to 2.0.0 v2.0.0 Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. 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. 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. This relese does not include the performance improvements from v1.5.1. Pandas DataFrame objects with multilevel columns are now supported. Numpy 1.20 is now officially supported. Python 3.9 is now officially supported. Achieved a small speedup for _get_flattener by merging type checks. v1.5.1 The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. decode() documentation improvements. Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. 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. Unit tests were added to ensure that sklearn.tree.DecisionTreeClassifier objects are properly serialized. The is_reducible() utility function used by encode() is now 4x faster! Objects that provide __getstate__(), __setstate__(), and __slots__ benefit most from these improvements. Improved pickler flatten()/encode() performance. 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. Multiple enums are now serialized correctly with make_refs=False.
py-jsonpickle: updated to 1.4.2 v1.4.2 * Use importlib.metadata from the stdlib on Python 3.8. * Micro-optimize type checks to use a `set` for lookups. * Documentation improvements.
py-jsonpickle: updated to 1.4.1 v1.4.1 * Patch release for Python 3.8 `importlib_metadata` support. v1.4 * Python 3.8 support. * ``jsonpickle.encode`` now supports the standard ``indent`` and ``separators`` arguments, and passes them through to the active JSON backend library. * We now include a custom handler for `array.array` objects. * Dict key order is preserved when pickling dictionaries on Python3. * 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. * Improved serialization of pandas.Series objects. v1.3 * Improved round tripping of default dicts. * Better support for cyclical references when encoding with ``unpicklable=False``.
all: migrate several HOMEPAGEs to https pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
py-jsonpickle: updated to 1.2 Version 1.2: * Simplified JSON representation for __reduce__ values. * Improved Pandas support with new handlers for more Pandas data types. * Prevent stack overflows caused by bugs in user-defined __getstate__ functions which cause infinite recursion. * Improved support for objects that contain dicts with Integer keys. Previously, jsonpickle could not restore objects that contained dicts with integer keys and provided getstate only. These objects are now handled robustly. * Support for encoding binary data in base85_ instead of base64 has been added on Python 3. Base85 produces payloads about 10% smaller than base64, albeit at the cost of lower throughput. For performance and backwards compatibility with Python 2 the pickler uses base64 by default, but it can be configured to use base85 with the new use_base85 argument. * Dynamic SQLAlchemy tables in SQLAlchemy >= 1.3 are now supported.
py-jsonpickle: updated to 1.1 Version 1.1: * Python 3.7 `collections.Iterator` deprecation warnings have been fixed. * Improved Pandas support for datetime and complex numbers.
py-jsonpickle: updated to 1.0 Version 1.0: 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. Improved support for pickling iterators. Better support for the stdlib json module when simplejson is not installed. jsonpickle will now output python3-style module names when pickling builtins methods or functions. 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. Better support for older (pre-1.9) versions of numpy
py-jsonpickle: updated to 0.9.6 Version 0.9.6: * Better support for SQLAlchemy * Better support for NumPy and SciKit-Learn. * Better support for dict sub-classes
Added textproc/py-jsonpickle version 0.9.5 jsonpickle converts complex Python objects to and from JSON.