diff options
Diffstat (limited to 'dev-python/tqdm')
-rw-r--r-- | dev-python/tqdm/Manifest | 3 | ||||
-rw-r--r-- | dev-python/tqdm/files/tqdm-4.61.1-py310.patch | 35 | ||||
-rw-r--r-- | dev-python/tqdm/tqdm-4.61.1.ebuild | 55 |
3 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/tqdm/Manifest b/dev-python/tqdm/Manifest index 7cc484c89e32..e34edada6722 100644 --- a/dev-python/tqdm/Manifest +++ b/dev-python/tqdm/Manifest @@ -1,5 +1,8 @@ +AUX tqdm-4.61.1-py310.patch 1030 BLAKE2B 7505087ca6b5db8523a91c831d48f2dcbe34912d6eba34f80f48044bf5ff8a3c0166c02f5b4e2a693dbe49bc8a7db2682813ed495440f3f8f9fc0e69d93d31a3 SHA512 1de7036c469c078028fe0a9044ecb0ad1dc16d3642d65d13a7c61e6fccac9bea652da0dd385a238ed68a423d481b5bbaa09b2deb9a859a07d64d2eee617c53e8 DIST tqdm-4.60.0.tar.gz 174201 BLAKE2B 78f4e2c2189621b5d276b8a9c75bae1566b05888cce81d8281de358ad2817e9751395bcf529c07620cd1ec4431c78ed7c1400dc96e9c3a99ac92daf2551b2da5 SHA512 e76dda97323353725c8e30b254bacfa328b4708d37ba2d21dadd30fd26e76605d8f077f02f2047030c6ab9761710a0e86640153fee0e3a3f972db12266fcfde2 DIST tqdm-4.61.0.tar.gz 169471 BLAKE2B 6710b057bc5cab7afc72681c469618b442d47a0aec4300f52a360af41fff082a96d3f67cb650978c924df210a1c56e2856f181d55cdcc5692713d53581932144 SHA512 7c13c98572ac2800b695cf38d6de84b348c20967187dfcd3a358fc3a9999bfda509d3b4fbb77272840e1568ed975fc038cfb4034288c72560e09a58fbdc636f1 +DIST tqdm-4.61.1.tar.gz 169637 BLAKE2B 8b89f320e13119b24a9e121747bce0b5c6625c31feb8c427a97e71da52797d9de764ce5e5c41c07d5954a1e5e4e21913335a4691837bc243db473821b2dad1ac SHA512 6092a30389380a511abc8bee7e6144556d6dc1a993ba4a2685707afa2838a12f472aa216ac5e55d144da74f9be1d398d4c6f5352986a200557e4aba67831a505 EBUILD tqdm-4.60.0.ebuild 1188 BLAKE2B 999390ed0073e8bc219b227f3b8015173ac05ecdb90eac7c68d58b4d6c3ece9a1d1dc772287f04718d0d7559d7272588204d5ad7e02daaf5e837c1640e21e397 SHA512 db532b87c1cdd6e7e89b047547070eb593ab03bdaea756a6ac97939e8b17a16010a8df68e1028002e8be56cf470ffcd869efba3d342108a6ddd2ec3bde824d06 EBUILD tqdm-4.61.0.ebuild 1162 BLAKE2B a64cea2e3f57811f642377ab1ab1ff5addc6265db5b99e7b87f2b3c00a5f667d2b405fe0f473bd1861eb60592f3dd2590185f17a2fb1440b8976dd78dbf0ec65 SHA512 f8238f80c87396942e8eda8204392afb283bc77a3be0541a887a23b12c5ffd6b243db35a745997dd1b8ed3dd567168c16af92e7ab463d1122ba3c6627e8f0b2b +EBUILD tqdm-4.61.1.ebuild 1208 BLAKE2B a6d62ea22a3f8537de5eb2905e4aca8492cf5a17f1e0d780285c4d762d214de28cbd02ca7ed6d39af1df6436385b8320066789811be59aa5e4d461071ac356c6 SHA512 3567873f7dbbe30d371e76d3dda28f30d009f04adf1e805654c84e1801d3ce84a273d97ab5a4ab1c47f5d7476eca010c8c6a9bd4dccf6d702096d888bb5b9a74 MISC metadata.xml 604 BLAKE2B 574eef287a9260a1c115d2e8751c417962cbc09fdd18c68b189898974c8396bc7fab56fcb71a067477e0701916cc9e4dd6701d19e86e62027fd8a34e630b3f17 SHA512 d12b1ccb6601676fcb18122a94d0f397ed1d411a8f8a40d32e595bf36faa08d5a9aeada278c471f063ea75605d7657f6697c2ed45ccc658b9e7f57a0114e7982 diff --git a/dev-python/tqdm/files/tqdm-4.61.1-py310.patch b/dev-python/tqdm/files/tqdm-4.61.1-py310.patch new file mode 100644 index 000000000000..10cb898d4809 --- /dev/null +++ b/dev-python/tqdm/files/tqdm-4.61.1-py310.patch @@ -0,0 +1,35 @@ +From d2a6ec2ab84aec847b1598bb2a777103cea7fc9f Mon Sep 17 00:00:00 2001 +From: Casper da Costa-Luis <tqdm@cdcl.ml> +Date: Sat, 12 Jun 2021 17:39:37 +0100 +Subject: [PATCH] fix py3.10 `asyncio` tests + +- fixes #1176 +--- + tqdm/asyncio.py | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tqdm/asyncio.py b/tqdm/asyncio.py +index 0d3ba747d..8f9b4ed6e 100644 +--- a/tqdm/asyncio.py ++++ b/tqdm/asyncio.py +@@ -8,6 +8,7 @@ + ... ... + """ + import asyncio ++from sys import version_info + + from .std import tqdm as std_tqdm + +@@ -60,7 +61,11 @@ def as_completed(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs) + """ + if total is None: + total = len(fs) +- yield from cls(asyncio.as_completed(fs, loop=loop, timeout=timeout), ++ ++ kwargs = {} ++ if version_info[:2] < (3, 10): ++ kwargs['loop'] = loop ++ yield from cls(asyncio.as_completed(fs, timeout=timeout, **kwargs), + total=total, **tqdm_kwargs) + + @classmethod diff --git a/dev-python/tqdm/tqdm-4.61.1.ebuild b/dev-python/tqdm/tqdm-4.61.1.ebuild new file mode 100644 index 000000000000..528745331573 --- /dev/null +++ b/dev-python/tqdm/tqdm-4.61.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{8..10} ) +inherit distutils-r1 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tqdm/tqdm" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" +fi + +DESCRIPTION="Add a progress meter to your loops in a second" +HOMEPAGE="https://github.com/tqdm/tqdm" + +LICENSE="MIT" +SLOT="0" +IUSE="examples" + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) + +python_test() { + # Skip unpredictable performance tests + epytest --ignore 'tests/tests_perf.py' +} + +python_install() { + doman "${BUILD_DIR}"/lib/tqdm/tqdm.1 + rm "${BUILD_DIR}"/lib/tqdm/tqdm.1 || die + distutils-r1_python_install +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |