From c40038aa6bbd457ba662a9f1b2e21a0d8ff435bf Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Tue, 28 Apr 2020 23:28:58 -0700 Subject: [PATCH] dev-python/jsonpickle-1.4.1-r1: revbump, remove pandas test dep, py38 Since the dependency on pandas is only a test dep, and is only needs for 3 out of more than 320 tests, let's just patch it out so we don't have to drop keywords and we can add python3_8. Closes: https://bugs.gentoo.org/719980 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrick McLean --- ...-1.4.1.ebuild => jsonpickle-1.4.1-r1.ebuild} | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) rename dev-python/jsonpickle/{jsonpickle-1.4.1.ebuild => jsonpickle-1.4.1-r1.ebuild} (79%) diff --git a/dev-python/jsonpickle/jsonpickle-1.4.1.ebuild b/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild similarity index 79% rename from dev-python/jsonpickle/jsonpickle-1.4.1.ebuild rename to dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild index d097093c8648..f9b5040f1568 100644 --- a/dev-python/jsonpickle/jsonpickle-1.4.1.ebuild +++ b/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" IUSE="doc test" RESTRICT="!test? ( test )" @@ -24,14 +24,17 @@ RDEPEND=" dev-python/feedparser[${PYTHON_USEDEP}] dev-python/ujson[${PYTHON_USEDEP}] " -DEPEND=" - test? ( ${RDEPEND} - dev-python/pandas[${PYTHON_USEDEP}] - ) -" distutils_enable_sphinx "docs/source" +python_prepare_all() { + # too many dependencies + rm tests/pandas_test.py || die + sed -e '/pandas/ d' -i tests/runtests.py || die + + distutils-r1_python_prepare_all +} + python_test() { # An apparent regression in tests # https://github.com/jsonpickle/jsonpickle/issues/124 -- 2.26.2