diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-08 06:15:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-08 06:15:27 +0000 |
commit | 268f9f01921ccb921b794d43092c5f29c1e96c56 (patch) | |
tree | 07329b3a8cb5d315182a2ec2b2f4a4b36374724d /dev-python/jsonpickle | |
parent | e3a48e635527f3e2d2254e9631f7a5758df9c3fb (diff) |
gentoo auto-resync : 08:01:2023 - 06:15:27
Diffstat (limited to 'dev-python/jsonpickle')
-rw-r--r-- | dev-python/jsonpickle/Manifest | 5 | ||||
-rw-r--r-- | dev-python/jsonpickle/files/jsonpickle-2.2.0-python3.11.patch | 46 | ||||
-rw-r--r-- | dev-python/jsonpickle/jsonpickle-2.2.0-r1.ebuild | 63 | ||||
-rw-r--r-- | dev-python/jsonpickle/jsonpickle-3.0.0.ebuild | 59 |
4 files changed, 0 insertions, 173 deletions
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest index 993e6c116ac8..a53a0778f7fc 100644 --- a/dev-python/jsonpickle/Manifest +++ b/dev-python/jsonpickle/Manifest @@ -1,8 +1,3 @@ -AUX jsonpickle-2.2.0-python3.11.patch 1832 BLAKE2B e21a31ea09dbcd3f6cf5ad4864f959f63d295215f1edf539181710877f6ff33a601c72bed832c58422eaeb96b8aa471479db8b61961cb3108b93306c2f0c416b SHA512 560f269a0e19a5e0881c8266fdacf7fb764eaa872c12740dc57d36240421e2aa645cac2d9b107f7dd62b870e1c6371defa3b37a0ec10353ddf53109d83031e89 -DIST jsonpickle-2.2.0.tar.gz 189866 BLAKE2B d8fcd0e8b71947b734c59240d9fa4f0b35b9b0ac2e2940a9baf05c160771db0eae5f011b61e3b1c0bc746a740ac2e137a392931e270fea3acf4884578133283e SHA512 b6cb35316e32f38875cbfa3784a3930f669d4ea730ead6117242070590647987383e9f933c193b8c246c40dba87ad56600a65db89c45c18a790b3c1f9232b245 -DIST jsonpickle-3.0.0.tar.gz 192204 BLAKE2B de46fce9b4cee97ededb4e6febff234c499e0a1025d01dc5e90278e35744938ed1d8bc4f0ac0a0ba5e6006c9bea777479f338849c449aa1e6005c3eb5162d721 SHA512 825e70ccbc35554e7a1938307a81c0672c3a43a10d79a2159e6f453a12a98d36ab5839cf56cd1927c37f30a10efdc33d43a26c91dc7791e788537e2dbd449181 DIST jsonpickle-3.0.1.gh.tar.gz 257651 BLAKE2B 4875985085c8303b316b387968ad46bc35672259f8f6799270bff5dee1b4d341bd92e520155d5c5ff644b289ac21275e95911a38165303c07c4634a93e17ae62 SHA512 3190716491c01de1e5ce16cd8fee3163c20831521503803a5282b43c6653756554fa6184de78755f3232ac6c9bc51baccb91305f9ac9462c8e22fc57fbcc52eb -EBUILD jsonpickle-2.2.0-r1.ebuild 1596 BLAKE2B 9b4a270aebd12cd5fc3ff27ca6eaf8a2b3490db43d3456d02cabd4232cea894a92acf766849afa3f5ef76b0dea5e420b9d5adfd8dd6b136f9f7d7c59f23b91a4 SHA512 88588da30cedbe176186087dd53c81c7694dfb143167fd2c389aa08eee9e16fd603c5cffdfb9308fb5b552f0ccbefc8fd28d109d89fc0105e2f1e28c67845094 -EBUILD jsonpickle-3.0.0.ebuild 1522 BLAKE2B 2026dcde0d5dc4bd9f6c063d67800009b633bbc64b975f6869be5cf7952434918d1d24649f22ca960978febd2f659b37e25fff3dfddd18e89a3e74b33f48202e SHA512 416f62b96624aba569b775045dc0cfe1eaf47f7633a08709f592ac424f984174e7e662f6ce8571dfa89ce76ff7ac1e780c44bb225f94ec27cacf795465069178 EBUILD jsonpickle-3.0.1.ebuild 1451 BLAKE2B 4cebadb7a6ad0efa047d1711980076bc47e4aa2106c6aaea7e75645e039df27690d46bf237f510f7a31145d7a86d6f27efd54de3f4606ab2aa30083a6ef6a4e4 SHA512 6e57260fd399f11a7900bde6193da41c9267c90152ecc3e947b3e042fd1db1d989210b19e5a6be2b8b38bc62be2ad9079b19dd8762d0e76b819f7b06d3be86d0 MISC metadata.xml 412 BLAKE2B a7e746abd8b45415ecdbccbde1b65ba9f1fa9fe7ce353411681c2a3de046878e990aad20849ee561a56ad3208bd5071d7b5e5b3c767fd71b7c44d2e8412d349b SHA512 dc52df78fdfe9024e695aae3d2bf22bed7162e1f2a528a288056b68022ebbc400b0a3a2f3e9c2155ee57e66d77a4f7a3f6f67188fb13ee15f200212ac6809a31 diff --git a/dev-python/jsonpickle/files/jsonpickle-2.2.0-python3.11.patch b/dev-python/jsonpickle/files/jsonpickle-2.2.0-python3.11.patch deleted file mode 100644 index 10c266a2a696..000000000000 --- a/dev-python/jsonpickle/files/jsonpickle-2.2.0-python3.11.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/jsonpickle/pickler.py b/jsonpickle/pickler.py -index 3d391cb..2103e46 100644 ---- a/jsonpickle/pickler.py -+++ b/jsonpickle/pickler.py -@@ -476,8 +476,12 @@ def _flatten_obj_instance(self, obj): - - # Support objects with __getstate__(); this ensures that - # both __setstate__() and __getstate__() are implemented -- has_getstate = hasattr(obj, '__getstate__') -+ has_own_getstate = ( -+ hasattr(type(obj), '__getstate__') -+ and type(obj).__getstate__ is not getattr(object, '__getstate__', None) -+ ) - # not using has_method since __getstate__() is handled separately below -+ # Note: on Python 3.11+, all objects have __getstate__. - - if has_class: - cls = obj.__class__ -@@ -549,7 +553,7 @@ def _flatten_obj_instance(self, obj): - # check that getstate/setstate is sane - if not ( - state -- and hasattr(obj, '__getstate__') -+ and has_own_getstate - and not hasattr(obj, '__setstate__') - and not isinstance(obj, dict) - ): -@@ -581,7 +585,7 @@ def _flatten_obj_instance(self, obj): - if has_getinitargs: - data[tags.INITARGS] = self._flatten(obj.__getinitargs__()) - -- if has_getstate: -+ if has_own_getstate: - try: - state = obj.__getstate__() - except TypeError: -@@ -590,7 +594,8 @@ def _flatten_obj_instance(self, obj): - self._pickle_warning(obj) - return None - else: -- return self._getstate(state, data) -+ if state: -+ return self._getstate(state, data) - - if util.is_module(obj): - if self.unpicklable: diff --git a/dev-python/jsonpickle/jsonpickle-2.2.0-r1.ebuild b/dev-python/jsonpickle/jsonpickle-2.2.0-r1.ebuild deleted file mode 100644 index 0d12c49d69df..000000000000 --- a/dev-python/jsonpickle/jsonpickle-2.2.0-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) - -inherit distutils-r1 optfeature - -DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" -HOMEPAGE=" - https://github.com/jsonpickle/jsonpickle/ - https://pypi.org/project/jsonpickle/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/feedparser[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/simplejson[${PYTHON_USEDEP}] - dev-python/sqlalchemy[${PYTHON_USEDEP}] - dev-python/ujson[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - # https://github.com/jsonpickle/jsonpickle/pull/396 - "${FILESDIR}/${P}-python3.11.patch" -) - -distutils_enable_tests pytest - -python_prepare_all() { - sed -i -e 's:--flake8 --cov::' pytest.ini || die - distutils-r1_python_prepare_all -} - -python_test() { - local EPYTEST_IGNORE=( - # unpackaged bson dependency - tests/bson_test.py - # broken when gmpy is installed - # https://github.com/jsonpickle/jsonpickle/issues/328 - # https://github.com/jsonpickle/jsonpickle/issues/316 - tests/ecdsa_test.py - ) - epytest -} - -pkg_postinst() { - # Unpackaged optional backends: yajl, demjson - optfeature "encoding numpy-based data" dev-python/numpy - optfeature "encoding pandas objects" dev-python/pandas - optfeature "fast JSON backend" dev-python/simplejson -} diff --git a/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild b/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild deleted file mode 100644 index 3b17a7408f52..000000000000 --- a/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) - -inherit distutils-r1 optfeature - -DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" -HOMEPAGE=" - https://github.com/jsonpickle/jsonpickle/ - https://pypi.org/project/jsonpickle/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/feedparser[${PYTHON_USEDEP}] - dev-python/gmpy[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/simplejson[${PYTHON_USEDEP}] - dev-python/sqlalchemy[${PYTHON_USEDEP}] - dev-python/ujson[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_prepare_all() { - sed -i -e 's:--cov::' pytest.ini || die - distutils-r1_python_prepare_all -} - -python_test() { - local EPYTEST_IGNORE=( - # unpackaged bson dependency - tests/bson_test.py - # broken when gmpy is installed - # https://github.com/jsonpickle/jsonpickle/issues/328 - # https://github.com/jsonpickle/jsonpickle/issues/316 - tests/ecdsa_test.py - ) - epytest -} - -pkg_postinst() { - # Unpackaged optional backends: yajl, demjson - optfeature "encoding numpy-based data" dev-python/numpy - optfeature "encoding pandas objects" dev-python/pandas - optfeature "fast JSON backend" dev-python/simplejson -} |