From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B112158042 for ; Tue, 12 Nov 2024 05:35:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53654E0833; Tue, 12 Nov 2024 05:35:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22CFBE082F for ; Tue, 12 Nov 2024 05:35:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE836340C7C for ; Tue, 12 Nov 2024 05:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C3D61E65 for ; Tue, 12 Nov 2024 05:35:07 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1731388745.9a4dba4f16826b738ce8f14c55b488e7e18297a1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jsonpickle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jsonpickle/Manifest dev-python/jsonpickle/jsonpickle-4.0.0.ebuild X-VCS-Directories: dev-python/jsonpickle/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9a4dba4f16826b738ce8f14c55b488e7e18297a1 X-VCS-Branch: master Date: Tue, 12 Nov 2024 05:35:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f9b4db7-fa9c-4881-a7c2-b8d496a0cec4 X-Archives-Hash: 5005352bf028772a0ba32d5e4db54a11 commit: 9a4dba4f16826b738ce8f14c55b488e7e18297a1 Author: Michał Górny gentoo org> AuthorDate: Tue Nov 12 05:19:05 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Nov 12 05:19:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4dba4f dev-python/jsonpickle: Bump to 4.0.0 Signed-off-by: Michał Górny gentoo.org> dev-python/jsonpickle/Manifest | 1 + dev-python/jsonpickle/jsonpickle-4.0.0.ebuild | 67 +++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest index 773907eb0f2e..b08a6fa5c981 100644 --- a/dev-python/jsonpickle/Manifest +++ b/dev-python/jsonpickle/Manifest @@ -1,2 +1,3 @@ DIST jsonpickle-3.3.0.gh.tar.gz 324099 BLAKE2B e2c922df65f497b80ae78258024342de763d7585ce391f076e9e8a2f1da73e5c755b977be069a9778c85721b2fdcfcde70034374c7f38f001486a41742e9a488 SHA512 b796c2263ccb38e9e9191d9519ac044defa5df8a2b34bc8002f4de59397056048e037ae12f3e5ca46061febb81a7b35cfec11335926c893357f0c22e9b1b6d85 DIST jsonpickle-3.4.2.gh.tar.gz 307391 BLAKE2B 30be4460787349a7359062e5ebb14a4fbf3139f12b6bc388d903a419aa7e1a0bed93202aecacf5b43379de9335938b9948dc79f46b73791212b1623c972be0de SHA512 745a1355fa171224b48466590e1dd210d25cda41b8d9a9dfbafebf3b4fe17ca2b5e19b2c3c63d4fd3d5e70a800418f4da95404c3ce86fdfef163deb9b0d3ba46 +DIST jsonpickle-4.0.0.gh.tar.gz 308065 BLAKE2B f55d8e6cc88a35057ecd75cf61878db7040b29c7e6980a99b5457e0851e2be048fed5995a55f2eeae41299c9ee335d7e046ef4389b5549a0a88f3e5e3b516f24 SHA512 6e227d7002e53f705df77c1af95cfa33778c31e030217c5d17a9f0879f6dfa3c4be88e6cb5ec59aec057b874995acf3dd20917f4aa2f098dc2fcb6605eef38b1 diff --git a/dev-python/jsonpickle/jsonpickle-4.0.0.ebuild b/dev-python/jsonpickle/jsonpickle-4.0.0.ebuild new file mode 100644 index 000000000000..971fe8e5ffc6 --- /dev/null +++ b/dev-python/jsonpickle/jsonpickle-4.0.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +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=" + https://github.com/jsonpickle/jsonpickle/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/feedparser[${PYTHON_USEDEP}] + dev-python/gmpy2[${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() { + distutils-r1_python_prepare_all + + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + local EPYTEST_IGNORE=( + # unpackaged bson dependency + tests/bson_test.py + ) + + if ! has_version "dev-python/gmpy2[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py ) + fi + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py ) + fi + + epytest tests +} + +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 +}