pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-jsonpickle



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Dec 10 08:52:22 UTC 2021

Modified Files:
        pkgsrc/textproc/py-jsonpickle: Makefile distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/textproc/py-jsonpickle/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/py-jsonpickle/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-jsonpickle/Makefile
diff -u pkgsrc/textproc/py-jsonpickle/Makefile:1.8 pkgsrc/textproc/py-jsonpickle/Makefile:1.9
--- pkgsrc/textproc/py-jsonpickle/Makefile:1.8  Mon Nov 30 20:36:10 2020
+++ pkgsrc/textproc/py-jsonpickle/Makefile      Fri Dec 10 08:52:22 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2020/11/30 20:36:10 adam Exp $
+# $NetBSD: Makefile,v 1.9 2021/12/10 08:52:22 adam Exp $
 
-DISTNAME=      jsonpickle-1.4.2
+DISTNAME=      jsonpickle-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=j/jsonpickle/}
@@ -11,6 +11,9 @@ COMMENT=      Python library for serializing 
 LICENSE=       modified-bsd
 
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 .include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} < 38
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
@@ -19,7 +22,7 @@ DEPENDS+=     ${PYPKGPREFIX}-importlib-metad
 USE_LANGUAGES= # none
 
 do-test:
-       cd ${WRKSRC} && ${PYTHONBIN} tests/runtests.py
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/py-jsonpickle/distinfo
diff -u pkgsrc/textproc/py-jsonpickle/distinfo:1.9 pkgsrc/textproc/py-jsonpickle/distinfo:1.10
--- pkgsrc/textproc/py-jsonpickle/distinfo:1.9  Tue Oct 26 11:23:06 2021
+++ pkgsrc/textproc/py-jsonpickle/distinfo      Fri Dec 10 08:52:22 2021
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 11:23:06 nia Exp $
+$NetBSD: distinfo,v 1.10 2021/12/10 08:52:22 adam Exp $
 
-BLAKE2s (jsonpickle-1.4.2.tar.gz) = c7cf63bfaa552b817f258e345375bd86f1dd57497cc4199f4f322e77416934f5
-SHA512 (jsonpickle-1.4.2.tar.gz) = a6da661a69daefbc9393a4a4c88aa1da1b8bd687b6eeaed3d833ce1683bd1fa9d7943fdeecfe927e0492945ee2910b6f2d5e53ddb2b928b21f7b099ab79d45e9
-Size (jsonpickle-1.4.2.tar.gz) = 104745 bytes
+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



Home | Main Index | Thread Index | Old Index