From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- dev-python/tqdm/tqdm-9999.ebuild | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'dev-python/tqdm/tqdm-9999.ebuild') diff --git a/dev-python/tqdm/tqdm-9999.ebuild b/dev-python/tqdm/tqdm-9999.ebuild index 9a0b9b8ea059..78874a4508fc 100644 --- a/dev-python/tqdm/tqdm-9999.ebuild +++ b/dev-python/tqdm/tqdm-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} ) +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7,8}} ) inherit distutils-r1 @@ -12,7 +12,7 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://github.com/tqdm/tqdm" else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~sparc ~x86" fi DESCRIPTION="Add a progress meter to your loops in a second" @@ -20,20 +20,28 @@ HOMEPAGE="https://github.com/tqdm/tqdm" LICENSE="MIT" SLOT="0" -IUSE="examples test" +IUSE="examples" -# Uses pkg_resources RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[${PYTHON_USEDEP}] ) -" +BDEPEND="${RDEPEND}" + +distutils_enable_tests nose + +python_prepare_all() { + sed -r \ + -e "s:'nose'(,[[:space:]]*|)::" \ + -e "s:'flake8'(,[[:space:]]*|)::" \ + -e "s:'coverage'(,[[:space:]]*|)::" \ + -i setup.py + + distutils-r1_python_prepare_all +} python_test() { # tests_main.py requires the package to be installed distutils_install_for_testing # Skip unpredictable performance tests - nosetests tqdm -v -I 'tests_perf.py' \ + nosetests tqdm -v --ignore 'tests_perf.py' \ || die "tests failed with ${EPYTHON}" } -- cgit v1.2.3