Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tqdm/
Date: Tue, 13 Aug 2019 23:20:25
Message-Id: 1565738349.4e2007648719ca3398f3c0699593b27a3323ff33.sbraz@gentoo
1 commit: 4e2007648719ca3398f3c0699593b27a3323ff33
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 13 23:10:24 2019 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 13 23:19:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e200764
7
8 dev-python/tqdm: bump to 4.33.0, PyPy{,3} support, add tests
9
10 Also avoid compressing examples, fix manpage installation.
11
12 Package-Manager: Portage-2.3.71, Repoman-2.3.16
13 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
14
15 dev-python/tqdm/Manifest | 1 +
16 dev-python/tqdm/tqdm-4.33.0.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
17 2 files changed, 53 insertions(+)
18
19 diff --git a/dev-python/tqdm/Manifest b/dev-python/tqdm/Manifest
20 index 9c7f02bad2b..a211058c5f4 100644
21 --- a/dev-python/tqdm/Manifest
22 +++ b/dev-python/tqdm/Manifest
23 @@ -1,2 +1,3 @@
24 DIST tqdm-4.23.3.tar.gz 75941 BLAKE2B 9e5810765e8f7ea4f54b0f93f453d278d5ad4b1710f1476a6f00ff2e513789585e97dcd5a8331fe69d3593b18affd50bf9bf51cbaed29ecd68d4efad9318aa31 SHA512 40c853b7cf7611ba2ef7652417c0d42ea4392f5ea9cbe319dbb9e3dd063594e5c637fb5d13f77935fb9a034d395b28fa9480fec1c6cca1852644add4ac18cce8
25 DIST tqdm-4.32.2.tar.gz 118690 BLAKE2B 21ae94fb1ba3db06f79dba021c5c68b089a64cf3cef94a7eabd30f93403fc99a69b0069d7e730e3cde965219a1762fc1d4a5db4dcf351fbf39c6176fec3caae6 SHA512 60811944f755115fe41e9c6971ee959ceeb9a7f61a4ed7ed5f16b3f2c0bc631448cc05a5f13109eb94b7f01f7bffba6267ab10e56a0f3fcd10f091f186164794
26 +DIST tqdm-4.33.0.tar.gz 121571 BLAKE2B f4ee73cfa710462e148f6034ac69144d845d216bd97e16a78bc1f1ed5d658b6cd695d07aa1ea6ec93e2e747ab8fc52263a580c01516d1f111dcb5766b019925d SHA512 de86a2dc2c5f887b9671ee01e7c05820375b0ef83dec92f17da4d944dd02cbf96a133fd9d349ba5f9c75af70e7b87110a9a7ad3293c7eb81e49ed6ea288ba73c
27
28 diff --git a/dev-python/tqdm/tqdm-4.33.0.ebuild b/dev-python/tqdm/tqdm-4.33.0.ebuild
29 new file mode 100644
30 index 00000000000..9a0b9b8ea05
31 --- /dev/null
32 +++ b/dev-python/tqdm/tqdm-4.33.0.ebuild
33 @@ -0,0 +1,52 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} )
40 +
41 +inherit distutils-r1
42 +
43 +if [[ ${PV} == 9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/tqdm/tqdm"
46 +else
47 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 + KEYWORDS="~amd64 ~x86"
49 +fi
50 +
51 +DESCRIPTION="Add a progress meter to your loops in a second"
52 +HOMEPAGE="https://github.com/tqdm/tqdm"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +IUSE="examples test"
57 +
58 +# Uses pkg_resources
59 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
60 +BDEPEND="
61 + dev-python/setuptools[${PYTHON_USEDEP}]
62 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
63 +"
64 +
65 +python_test() {
66 + # tests_main.py requires the package to be installed
67 + distutils_install_for_testing
68 + # Skip unpredictable performance tests
69 + nosetests tqdm -v -I 'tests_perf.py' \
70 + || die "tests failed with ${EPYTHON}"
71 +}
72 +
73 +python_install() {
74 + doman "${BUILD_DIR}"/lib/tqdm/tqdm.1
75 + rm "${BUILD_DIR}"/lib/tqdm/tqdm.1 || die
76 + distutils-r1_python_install --skip-build
77 +}
78 +
79 +python_install_all() {
80 + if use examples; then
81 + dodoc -r examples
82 + docompress -x /usr/share/doc/${PF}/examples
83 + fi
84 + distutils-r1_python_install_all
85 +}