Adding debian version 4.64.1-4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 19:14:11 +01:00
parent 2da88b2fbc
commit ec03e12832
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 800 additions and 0 deletions

View file

@ -0,0 +1,32 @@
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,12 @@ from os import path
from setuptools import setup
+
+# https://packaging.python.org/guides/single-sourcing-package-version/
+version = {}
+with open('tqdm/_dist_ver.py') as fp:
+ exec(fp.read(), version)
+
src_dir = path.abspath(path.dirname(__file__))
if sys.argv[1].lower().strip() == 'make': # exec Makefile commands
import pymake
@@ -13,4 +19,4 @@ if sys.argv[1].lower().strip() == 'make'
# Stop to avoid setup.py raising non-standard command error
sys.exit(0)
-setup(use_scm_version=True)
+setup(version=version['__version__'])
--- a/setup.cfg
+++ b/setup.cfg
@@ -74,7 +74,7 @@ classifiers =
Topic :: Utilities
[options]
-setup_requires = setuptools>=42; setuptools_scm[toml]>=3.4
+setup_requires = setuptools>=42
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
install_requires =
colorama; platform_system == 'Windows'

View file

@ -0,0 +1,26 @@
Description: Ignore warnings added in pandas 2.1
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1053946
Forwarded: no
--- tqdm-4.64.1.orig/tests/tests_pandas.py
+++ tqdm-4.64.1/tests/tests_pandas.py
@@ -66,6 +66,8 @@ def test_pandas_series():
exres + " at least twice.", our_file.read()))
+import pytest
+@pytest.mark.filterwarnings('ignore:.*applymap has been deprecated.*:FutureWarning')
def test_pandas_data_frame():
"""Test pandas.DataFrame.progress_apply and .progress_applymap"""
with closing(StringIO()) as our_file:
@@ -107,6 +109,8 @@ def test_pandas_data_frame():
exres + " at least once.", our_file.read()))
+@pytest.mark.filterwarnings('ignore:.*the provided callable will be used directly.*:FutureWarning')
+@pytest.mark.filterwarnings('ignore:.*groupby with axis=1 is deprecated.*:FutureWarning')
def test_pandas_groupby_apply():
"""Test pandas.DataFrame.groupby(...).progress_apply"""
with closing(StringIO()) as our_file:

17
debian/patches/python3p12_compat.patch vendored Normal file
View file

@ -0,0 +1,17 @@
Description: Avoid warning in Python 3.12
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1058160
Forwarded: no
--- tqdm-4.64.1.orig/tqdm/std.py
+++ tqdm-4.64.1/tqdm/std.py
@@ -465,7 +465,7 @@ class tqdm(Comparable):
remaining_str = tqdm.format_interval(remaining) if rate else '?'
try:
eta_dt = (datetime.now() + timedelta(seconds=remaining)
- if rate and total else datetime.utcfromtimestamp(0))
+ if rate and total else datetime(1970,1,1,0,0))
except OverflowError:
eta_dt = datetime.max

3
debian/patches/series vendored Normal file
View file

@ -0,0 +1,3 @@
dont-use-setuptools-scm.patch
pandas2p1_ignore_warnings.patch
python3p12_compat.patch