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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CABBF158CB7 for ; Fri, 20 Aug 2021 12:46:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68F71E0841; Fri, 20 Aug 2021 12:46:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E24FE0841 for ; Fri, 20 Aug 2021 12:46:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8341335D4F for ; Fri, 20 Aug 2021 12:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 539455A0 for ; Fri, 20 Aug 2021 12:46:17 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1629463543.326202b90b8e90f0d1a962ddfa7c2ca888ebadc2.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jsonpickle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jsonpickle/jsonpickle-2.0.0.ebuild X-VCS-Directories: dev-python/jsonpickle/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 326202b90b8e90f0d1a962ddfa7c2ca888ebadc2 X-VCS-Branch: master Date: Fri, 20 Aug 2021 12:46:17 +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: c3cc892e-7bb8-45e8-b87f-727a663af657 X-Archives-Hash: e2a7e0dfb8af421caa5fd8e375c8394e commit: 326202b90b8e90f0d1a962ddfa7c2ca888ebadc2 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Aug 14 06:27:04 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Aug 20 12:45:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=326202b9 dev-python/jsonpickle: enable py3.10, cleanup dependencies - make most dependencies as optional or test dependencies - enable more tests - for py3.10, disable feedparser tests as this package has problem with py 3.10 Closes: https://bugs.gentoo.org/732132 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/jsonpickle/jsonpickle-2.0.0.ebuild | 54 ++++++++++++++++----------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/dev-python/jsonpickle/jsonpickle-2.0.0.ebuild b/dev-python/jsonpickle/jsonpickle-2.0.0.ebuild index 629cee7b689..332a82e8d96 100644 --- a/dev-python/jsonpickle/jsonpickle-2.0.0.ebuild +++ b/dev-python/jsonpickle/jsonpickle-2.0.0.ebuild @@ -3,9 +3,8 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) -DISTUTILS_USE_SETUPTOOLS=bdepend -inherit distutils-r1 +PYTHON_COMPAT=( python3_{8..10} ) +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/" @@ -15,35 +14,48 @@ LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" -# There are optional json backends serializer/deserializers in addition to those selected here -# jsonlib, yajl. -RDEPEND=" - dev-python/feedparser[${PYTHON_USEDEP}] - dev-python/simplejson[${PYTHON_USEDEP}] - dev-python/ujson[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/importlib_metadata[${PYTHON_USEDEP}] - ' python3_7) -" # toml via setuptools_scm[toml] BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] - dev-python/toml[${PYTHON_USEDEP}]" + dev-python/toml[${PYTHON_USEDEP}] + test? ( + 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}] + $(python_gen_cond_dep ' + dev-python/feedparser[${PYTHON_USEDEP}] + ' python3_{8,9}) + )" distutils_enable_sphinx "docs/source" distutils_enable_tests pytest python_prepare_all() { - # too many dependencies - rm tests/pandas_test.py || die - # broken with gmpy - rm tests/ecdsa_test.py || die - sed -i -e 's:--flake8 --black --cov::' pytest.ini || die - distutils-r1_python_prepare_all } python_test() { - pytest -vv tests || die "Tests failed with ${EPYTHON}" + 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 + ) + # There is a problem with packaging feedparser with python 3.10, so skip + [[ ${EPYTHON} == python3_10 ]] && EPYTEST_IGNORE+=( + tests/feedparser_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 }