From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1242232-garchives=archives.gentoo.org@lists.gentoo.org> 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 22F5E1382C5 for <garchives@archives.gentoo.org>; Sun, 17 Jan 2021 09:02:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A90CE0855; Sun, 17 Jan 2021 09:02:34 +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 0193FE0855 for <gentoo-commits@lists.gentoo.org>; Sun, 17 Jan 2021 09:02:33 +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 E498C340F07 for <gentoo-commits@lists.gentoo.org>; Sun, 17 Jan 2021 09:02:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0208C309 for <gentoo-commits@lists.gentoo.org>; Sun, 17 Jan 2021 09:02:30 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1610872612.1161dd342e038302dd44c89075b894dc3bc05cb2.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-1.5.0.ebuild X-VCS-Directories: dev-python/jsonpickle/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1161dd342e038302dd44c89075b894dc3bc05cb2 X-VCS-Branch: master Date: Sun, 17 Jan 2021 09:02:30 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8524b65f-f0c2-45a1-83bf-14334bd19670 X-Archives-Hash: f42eb889fd3759a3a30b552fc1a50e66 commit: 1161dd342e038302dd44c89075b894dc3bc05cb2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Jan 17 08:36:52 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Jan 17 08:36:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1161dd34 dev-python/jsonpickle: Bump to 1.5.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/jsonpickle/Manifest | 1 + dev-python/jsonpickle/jsonpickle-1.5.0.ebuild | 52 +++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest index 883a86a67f0..4fc4056dcef 100644 --- a/dev-python/jsonpickle/Manifest +++ b/dev-python/jsonpickle/Manifest @@ -1 +1,2 @@ DIST jsonpickle-1.4.2.tar.gz 104745 BLAKE2B af12141c867cd3dbecace5b7bc637b554c51c245d4f584c4d94e73e694b74f66fc59a65a62b7a0af361a7a8010b9398a9b04ee838c4f76c168b21dba6f2c9542 SHA512 a6da661a69daefbc9393a4a4c88aa1da1b8bd687b6eeaed3d833ce1683bd1fa9d7943fdeecfe927e0492945ee2910b6f2d5e53ddb2b928b21f7b099ab79d45e9 +DIST jsonpickle-1.5.0.tar.gz 106088 BLAKE2B dcd35979a428180f10611638c831b083d9b8307729a0b19fe89b283c30ecac58477bd6a66e89c31e214dd2f100385d9933dc00d506e1f9bbb4b6ea9c3a0eaed3 SHA512 7828ded98173cb10908a9d60fa6b3f358add360d738cd85a90f012ca24b15c6bbb19c611027bdb0a4d25fe0649978ae59ff08fb7b717ef503a9916152aa6f849 diff --git a/dev-python/jsonpickle/jsonpickle-1.5.0.ebuild b/dev-python/jsonpickle/jsonpickle-1.5.0.ebuild new file mode 100644 index 00000000000..1b45fa6a4c5 --- /dev/null +++ b/dev-python/jsonpickle/jsonpickle-1.5.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +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 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" +RESTRICT="!test? ( test )" + +# There are optional json backends serializer/deserializers in addition to those selected here +# jsonlib, yajl. +RDEPEND=" + dev-python/simplejson[${PYTHON_USEDEP}] + dev-python/feedparser[${PYTHON_USEDEP}] + dev-python/ujson[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' python3_{6,7}) +" +# toml via setuptools_scm[toml] +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}]" + +distutils_enable_sphinx "docs/source" +distutils_enable_tests pytest + +python_prepare_all() { + # too many dependencies + rm tests/pandas_test.py || die + sed -e '/pandas/ d' -i tests/runtests.py || die + # broken with gmpy + rm tests/ecdsa_test.py || die + + sed -i -e 's:--flake8 --black --cov --cov-append::' pytest.ini || die + + distutils-r1_python_prepare_all +} + +python_test() { + pytest -vv tests || die "Tests failed with ${EPYTHON}" +}