diff options
Diffstat (limited to 'dev-python/tqdm')
-rw-r--r-- | dev-python/tqdm/Manifest | 5 | ||||
-rw-r--r-- | dev-python/tqdm/files/tqdm-4.66.4-py313.patch | 43 | ||||
-rw-r--r-- | dev-python/tqdm/tqdm-4.66.4.ebuild | 7 | ||||
-rw-r--r-- | dev-python/tqdm/tqdm-4.66.5.ebuild | 45 |
4 files changed, 98 insertions, 2 deletions
diff --git a/dev-python/tqdm/Manifest b/dev-python/tqdm/Manifest index 27b22e79f801..3c45af4fa059 100644 --- a/dev-python/tqdm/Manifest +++ b/dev-python/tqdm/Manifest @@ -1,3 +1,6 @@ +AUX tqdm-4.66.4-py313.patch 1406 BLAKE2B a5dd8f73d1aa56f82870ee189814a268a81cc1698f853721069ce99910a499cbf49ab3bcfb39d3ecb7f68cfd5c9e47fd45d4f9e507a5e4fa612df2563309599e SHA512 f1aadbd8ef1f5a50004a02cc6d70eda9386cee793bac2f1933a0e8f89206e8901005f83c98502987348ef0a838a706a598e3c0bd9c4962df0f215f8a2c4fdb29 DIST tqdm-4.66.4.tar.gz 169392 BLAKE2B 6d8e3e9775d93d9c064289b8a830b4f541a753a48044ec65fcee9c8d158d423e362d06c3404efce67de28fab2c3f1fb3d8aaa0fdec33b4d040ad1f2aec97fde2 SHA512 fdafa64784564f7f400f29ffa75ba564a3c9bc6d935a1ccd82260d4a1f4431792a9dae2d5c6ed69cc265f078f674081589a040d47b8745a500870d27670feadc -EBUILD tqdm-4.66.4.ebuild 1001 BLAKE2B 6092212048388f6e1059bef1f1076effc9f4d90c46da533f72d5e34795af5c72493a7a9375f878b9cd305e00cc659432fd75045a401bc8fe4eee0ba884384449 SHA512 ce7cc2da4c0bf1231f2f8a38a87ee4072b1c490040facabf32f3131bc4d1c7854d7549aa1f7ee453ce76e8c6f666adcd0723a32d3a94b8e75cc6d00178606b85 +DIST tqdm-4.66.5.tar.gz 169504 BLAKE2B 9868bcfb4f3fc22aedfbb848d383055ef6ef9795982cd7877e620dba5391ffee369c375b27555c302d1fc6fb27ddacf8d3874daeffa62e5e8699e1124fbf96af SHA512 8e2c35f02fe365063a325d8a1d3e525870d522fab465e1a86764b8716ff32c039db463fe5e74a5f080ced40851d49b1e4273126074d62f14ed1935a96e0afb8a +EBUILD tqdm-4.66.4.ebuild 1088 BLAKE2B 93923e39c2ecdab082ce71f404135ad82b654420f3b5da2f19c7f2bf5cd9b1096867604f9fa26f4f82f7cd77fbb8df8aae992bdb175c7294d269c3e99bf30cc5 SHA512 55c1a82c8e8c982fd37f1483b2e8a6bc4c62c3beb6df77c8380c84747b313e0f487b8d7dff2515d243795cada202b17e955a6b766c849dc0c098d496e9131238 +EBUILD tqdm-4.66.5.ebuild 1009 BLAKE2B 02d92de0a9b5bb85204d88555339515b7450d67dfdf2ec66736388c5a245dcc6f23b543b668060f7279df57b69efd39459b66982fbfcd021f12dc572eabea079 SHA512 8a9cb745342a1ae64a23e521b5fce3cd80a6cc721ceef5e4dbe52d2d98406a6490610d735858c0bb6fd056fb0aba6e22030020718e820f036241f47295b45316 MISC metadata.xml 605 BLAKE2B ed20e6f11f20cdc6525b98d9fd37c0b8f0781dd1c4be85e8aa4a3f5644a20fde3179bd44bb99ef4c14913168113a58963b36281ccf4807a694624a1e2df578f8 SHA512 b5f096a0256312e6ab5098bb6d9965b567bd735813d9c97fa49f08de640f2c5ebb292ba747eb284ff043dc29d4bb1cab1ac947ecaab6b4e94aa51e96a0cac636 diff --git a/dev-python/tqdm/files/tqdm-4.66.4-py313.patch b/dev-python/tqdm/files/tqdm-4.66.4-py313.patch new file mode 100644 index 000000000000..9417ce91a55a --- /dev/null +++ b/dev-python/tqdm/files/tqdm-4.66.4-py313.patch @@ -0,0 +1,43 @@ +From eafdd306861f531c443885048f0abdaa6bc45f8e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Thu, 27 Jun 2024 18:30:55 +0200 +Subject: [PATCH] cli: Fix docstring processing with Python 3.13+ + +Fix docstring processing code to reindent the docstrings if using Python +3.13 or newer. Starting with this version, all docstrings are +automatically dedented by Python, which causes the regular expression to +fail to match. + +Fixes #1585 +--- + tqdm/cli.py | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tqdm/cli.py b/tqdm/cli.py +index 7284f28..1bbce6d 100644 +--- a/tqdm/cli.py ++++ b/tqdm/cli.py +@@ -4,6 +4,7 @@ Module version for monitoring CLI pipes (`... | python -m tqdm | ...`). + import logging + import re + import sys ++import textwrap + from ast import literal_eval as numeric + + from .std import TqdmKeyError, TqdmTypeError, tqdm +@@ -177,7 +178,11 @@ def main(fp=sys.stderr, argv=None): + logging.basicConfig(level=getattr(logging, logLevel), + format="%(levelname)s:%(module)s:%(lineno)d:%(message)s") + +- d = tqdm.__doc__ + CLI_EXTRA_DOC ++ d = tqdm.__doc__ ++ if sys.version_info >= (3, 13): ++ # Python 3.13+ automatically dedents docstrings ++ d = textwrap.indent(d, " ") ++ d += CLI_EXTRA_DOC + + opt_types = dict(RE_OPTS.findall(d)) + # opt_types['delim'] = 'chr' +-- +2.45.2 + diff --git a/dev-python/tqdm/tqdm-4.66.4.ebuild b/dev-python/tqdm/tqdm-4.66.4.ebuild index 17fcf05d9ae5..2dca9f1051c0 100644 --- a/dev-python/tqdm/tqdm-4.66.4.ebuild +++ b/dev-python/tqdm/tqdm-4.66.4.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..13} ) inherit bash-completion-r1 distutils-r1 pypi @@ -29,6 +29,11 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + # https://github.com/tqdm/tqdm/pull/1594 + "${FILESDIR}/${P}-py313.patch" +) + EPYTEST_IGNORE=( # Skip unpredictable performance tests tests/tests_perf.py diff --git a/dev-python/tqdm/tqdm-4.66.5.ebuild b/dev-python/tqdm/tqdm-4.66.5.ebuild new file mode 100644 index 000000000000..8928bc3c752e --- /dev/null +++ b/dev-python/tqdm/tqdm-4.66.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit bash-completion-r1 distutils-r1 pypi + +DESCRIPTION="Add a progress meter to your loops in a second" +HOMEPAGE=" + https://github.com/tqdm/tqdm/ + https://pypi.org/project/tqdm/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="examples" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # Skip unpredictable performance tests + tests/tests_perf.py +) + +python_install_all() { + doman tqdm/tqdm.1 + newbashcomp tqdm/completion.sh tqdm + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |