diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/tqdm/tqdm-9999.ebuild | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/tqdm/tqdm-9999.ebuild')
-rw-r--r-- | dev-python/tqdm/tqdm-9999.ebuild | 26 |
1 files changed, 17 insertions, 9 deletions
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}" } |