Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tqdm/
Date: Sat, 02 Jan 2021 16:56:00
Message-Id: 1609606273.02aee21492f38603c579df8e00e1c88eb60fa806.mgorny@gentoo
1 commit: 02aee21492f38603c579df8e00e1c88eb60fa806
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 2 16:45:15 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 2 16:51:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02aee214
7
8 dev-python/tqdm: Bump to 4.55.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tqdm/Manifest | 1 +
13 dev-python/tqdm/tqdm-4.55.1.ebuild | 53 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-python/tqdm/Manifest b/dev-python/tqdm/Manifest
17 index ad178c210d0..72190e51156 100644
18 --- a/dev-python/tqdm/Manifest
19 +++ b/dev-python/tqdm/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tqdm-4.54.0.tar.gz 178664 BLAKE2B 68d0f054b2c95079e13ad9df3e9467f48925311151e5eed94795d3fab232301da99c2704daafd80f748037a467d25416913f0921d6b7c44d725c5ed6861fe347 SHA512 dbb2a61df848ebd84ab805134b7e7297e1cf7626abaa830a08159ce7b1852eba40a6a7f2cc7c8445294a184bbfbd69bf08430371f3e2d71f6a622a271ba49e95
22 DIST tqdm-4.55.0.tar.gz 161594 BLAKE2B 890bbb47db356678be2c3edd893d70b085f5bc8fefbf87f12ba8c69fe14ac523a1eed6e335fb84f2ff43b2b0fea901411f8a72b24212cb2ad5ef4955ec8f2df5 SHA512 84062f7d2a109e4067e0868990b6e53578c7c2ec2b81a0cbdc980c91d2d82a8bda37e0c9688777fcf14cc80b7ddf7b28b7a5acfe37608e37903fe45908103913
23 +DIST tqdm-4.55.1.tar.gz 161638 BLAKE2B 0149269f1ea854589647deb4ddd7415748924942ecc03d5fd6231470e5df959c1b8034d4d8416d83aa0a43ad1fafed15789f7ebaac12e5d525a7fe0bee88752a SHA512 82a6d3d8e10d4c46e40e03e557febe9f7cac3cc01c01c9e29b20cf8f2adcc7370829fe5d4497ff0edb506bf38b9ec14de86377d1bbd9b8b9e57687d951ae683f
24
25 diff --git a/dev-python/tqdm/tqdm-4.55.1.ebuild b/dev-python/tqdm/tqdm-4.55.1.ebuild
26 new file mode 100644
27 index 00000000000..81b4fb49848
28 --- /dev/null
29 +++ b/dev-python/tqdm/tqdm-4.55.1.ebuild
30 @@ -0,0 +1,53 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +PYTHON_COMPAT=( pypy3 python3_{7..9} )
38 +
39 +inherit distutils-r1
40 +
41 +if [[ ${PV} == 9999 ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/tqdm/tqdm"
44 +else
45 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
47 +fi
48 +
49 +DESCRIPTION="Add a progress meter to your loops in a second"
50 +HOMEPAGE="https://github.com/tqdm/tqdm"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +IUSE="examples"
55 +
56 +BDEPEND="
57 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
58 + dev-python/toml[${PYTHON_USEDEP}]
59 + test? (
60 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
61 + )"
62 +
63 +distutils_enable_tests pytest
64 +
65 +python_test() {
66 + # Skip unpredictable performance tests
67 + pytest -vv --ignore 'tests/tests_perf.py' ||
68 + die "Tests failed with ${EPYTHON}"
69 +}
70 +
71 +python_install() {
72 + doman "${BUILD_DIR}"/lib/tqdm/tqdm.1
73 + rm "${BUILD_DIR}"/lib/tqdm/tqdm.1 || die
74 + distutils-r1_python_install
75 +}
76 +
77 +python_install_all() {
78 + if use examples; then
79 + dodoc -r examples
80 + docompress -x /usr/share/doc/${PF}/examples
81 + fi
82 + distutils-r1_python_install_all
83 +}