Skip to content

Commit

Permalink
py-jsonpickle: updated to 3.0.2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adam committed Feb 3, 2024
1 parent cc11ec2 commit 235642c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
22 changes: 11 additions & 11 deletions textproc/py-jsonpickle/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.16 2023/07/30 15:32:49 adam Exp $
# $NetBSD: Makefile,v 1.17 2024/02/03 17:11:34 adam Exp $

DISTNAME= jsonpickle-2.0.0
DISTNAME= jsonpickle-3.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=j/jsonpickle/}

Expand All @@ -11,17 +10,18 @@ HOMEPAGE= https://jsonpickle.github.io/
COMMENT= Python library for serializing any arbitrary object graph into JSON
LICENSE= modified-bsd

TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=42:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
TEST_DEPENDS+= ${PYPKGPREFIX}-gmpy2-[0-9]*:../../math/py-gmpy2
TEST_DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
TEST_DEPENDS+= ${PYPKGPREFIX}-pandas-[0-9]*:../../math/py-pandas
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8

PYTHON_VERSIONS_INCOMPATIBLE= 27
TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8>=1.1.1:../../devel/py-test-flake8

USE_LANGUAGES= # none

do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
PYTHON_VERSIONS_INCOMPATIBLE= 27

.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
18 changes: 12 additions & 6 deletions textproc/py-jsonpickle/PLIST
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@comment $NetBSD: PLIST,v 1.3 2020/07/21 10:57:12 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.4 2024/02/03 17:11:34 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/jsonpickle/__init__.py
${PYSITELIB}/jsonpickle/__init__.pyc
${PYSITELIB}/jsonpickle/__init__.pyo
Expand All @@ -13,9 +13,15 @@ ${PYSITELIB}/jsonpickle/backend.pyo
${PYSITELIB}/jsonpickle/compat.py
${PYSITELIB}/jsonpickle/compat.pyc
${PYSITELIB}/jsonpickle/compat.pyo
${PYSITELIB}/jsonpickle/errors.py
${PYSITELIB}/jsonpickle/errors.pyc
${PYSITELIB}/jsonpickle/errors.pyo
${PYSITELIB}/jsonpickle/ext/__init__.py
${PYSITELIB}/jsonpickle/ext/__init__.pyc
${PYSITELIB}/jsonpickle/ext/__init__.pyo
${PYSITELIB}/jsonpickle/ext/gmpy.py
${PYSITELIB}/jsonpickle/ext/gmpy.pyc
${PYSITELIB}/jsonpickle/ext/gmpy.pyo
${PYSITELIB}/jsonpickle/ext/numpy.py
${PYSITELIB}/jsonpickle/ext/numpy.pyc
${PYSITELIB}/jsonpickle/ext/numpy.pyo
Expand Down
8 changes: 4 additions & 4 deletions textproc/py-jsonpickle/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.10 2021/12/10 08:52:22 adam Exp $
$NetBSD: distinfo,v 1.11 2024/02/03 17:11:34 adam Exp $

BLAKE2s (jsonpickle-2.0.0.tar.gz) = 6998cdc8156409fc399283fa3f9a0309d29e92aa7f2253e84243b8639283e668
SHA512 (jsonpickle-2.0.0.tar.gz) = acba11e5dfce116b27edfe0fdccdd74755e299aa43f873dd1ce547d947b58f14c1059c21d04007b5be0857f7ce69fe5355fb2edc47a99cc2217fe00297ca78d3
Size (jsonpickle-2.0.0.tar.gz) = 110336 bytes
BLAKE2s (jsonpickle-3.0.2.tar.gz) = 6bcd3c185244950e607104da7191d0f99e8ea4547aaeda643e914993002bf775
SHA512 (jsonpickle-3.0.2.tar.gz) = bb871c8982a3012ced11e98c2e2c5930a897d37611b1d9e6fbfef4a80f5eac1a471607018da12aed40fd48bb98bdeaf575aa687f247c372c8da0ce09b0222c0d
Size (jsonpickle-3.0.2.tar.gz) = 266361 bytes

0 comments on commit 235642c

Please sign in to comment.