Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tqdm for openSUSE:Factory checked in at 2021-02-16 22:34:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old) and /work/SRC/openSUSE:Factory/.python-tqdm.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tqdm" Tue Feb 16 22:34:36 2021 rev:41 rq:872771 version:4.56.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes 2021-02-02 14:24:41.639300581 +0100 +++ /work/SRC/openSUSE:Factory/.python-tqdm.new.28504/python-tqdm.changes 2021-02-16 22:34:47.265521638 +0100 @@ -1,0 +2,23 @@ +Mon Feb 15 22:55:14 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Don't test pandas at all in Ring1 staging + +------------------------------------------------------------------- +Sun Feb 14 14:25:37 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Update to 4.56.2 + * fix attribute errors when disabled (#1126) + * add tests +- Changes in 4.56.1 + * fix repr() & format_dict when disabled (#1113 <- #624) + * rename __repr__() => __str__() + * minor documentation updates (#1113) + * add & update tests +- Test numpy only for non python36 flavor (Numpy 1.20 in TW dropped + Python 3.6, NEP 29), tests are automatically skipped if not + installed. +- Remove unused and untested python3 flavor BuildRequirements in + test build: ipython, ipykernel +- Enhance IPython + +------------------------------------------------------------------- Old: ---- tqdm-4.56.0.tar.gz New: ---- tqdm-4.56.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tqdm.spec ++++++ --- /var/tmp/diff_new_pack.5btJ6E/_old 2021-02-16 22:34:48.553523404 +0100 +++ /var/tmp/diff_new_pack.5btJ6E/_new 2021-02-16 22:34:48.557523409 +0100 @@ -28,7 +28,7 @@ %bcond_with test %endif Name: python-tqdm%{pkg_suffix} -Version: 4.56.0 +Version: 4.56.2 Release: 0 Summary: An extensible progress meter License: MPL-2.0 AND MIT @@ -43,16 +43,17 @@ Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +Enhances: python-ipython %if %{with test} # SECTION test requirements -BuildRequires: %{python_module numpy} -BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tqdm} -BuildRequires: python3-ipython -BuildRequires: python3-ipywidgets +BuildRequires: %{python_module numpy if (%python-base without python36-base)} +%if ! 0%{?_with_ringdisabled} +BuildRequires: %{python_module pandas if (%python-base without python36-base)} +%endif # /SECTION %endif %python_subpackages ++++++ tqdm-4.56.0.tar.gz -> tqdm-4.56.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/.pre-commit-config.yaml new/tqdm-4.56.2/.pre-commit-config.yaml --- old/tqdm-4.56.0/.pre-commit-config.yaml 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/.pre-commit-config.yaml 2021-02-10 18:41:54.000000000 +0100 @@ -23,21 +23,16 @@ name: Check TODO language: pygrep entry: WIP + args: [-i] types: [text] exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$ - args: [-i] - - id: metadata - name: Check metadata - language: system - entry: make testsetup - pass_filenames: false - id: pytest name: pytest quick + language: python entry: pytest args: ['-qq', '--durations=1', '-k=not slow'] - pass_filenames: false types: [python] - language: python + pass_filenames: false additional_dependencies: - numpy - pandas @@ -47,6 +42,7 @@ rev: 3.8.4 hooks: - id: flake8 + args: ['-j8'] additional_dependencies: - flake8-bugbear - flake8-comprehensions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/DEMO.ipynb new/tqdm-4.56.2/DEMO.ipynb --- old/tqdm-4.56.0/DEMO.ipynb 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/DEMO.ipynb 2021-02-10 18:41:54.000000000 +0100 @@ -74,7 +74,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "|[](https://tqdm.github.io/video) [](https://tqdm.github.io/PyData2019/slides.html)\n", + "|[](https://tqdm.github.io/video) [](https://tqdm.github.io/PyData2019/slides.html)\n", "-|-\n", "\n", "It can also be executed as a module with pipes:" @@ -1553,7 +1553,7 @@ "bars and colour hints (blue: normal, green: completed, red:\n", "error/interrupt, light blue: no ETA); as demonstrated below.\n", "\n", - "\n", + "\n", "\n", "The `notebook` version supports percentage or pixels for overall width\n", "(e.g.: `ncols='100%'` or `ncols='480px'`).\n", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/Dockerfile new/tqdm-4.56.2/Dockerfile --- old/tqdm-4.56.0/Dockerfile 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/Dockerfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -FROM python:3.7-alpine -COPY dist/*.whl . -RUN pip install -U $(ls ./*.whl) && rm ./*.whl -ENTRYPOINT ["tqdm"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/LICENCE new/tqdm-4.56.2/LICENCE --- old/tqdm-4.56.0/LICENCE 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/LICENCE 2021-02-10 18:41:54.000000000 +0100 @@ -7,7 +7,7 @@ in reverse chronological order: * files: * - MPLv2.0 2015-2020 (c) Casper da Costa-Luis + MPLv2.0 2015-2021 (c) Casper da Costa-Luis [casperdcl](https://github.com/casperdcl). * files: tqdm/_tqdm.py MIT 2016 (c) [PR #96] on behalf of Google Inc. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/Makefile new/tqdm-4.56.2/Makefile --- old/tqdm-4.56.0/Makefile 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/Makefile 2021-02-10 18:41:54.000000000 +0100 @@ -61,7 +61,7 @@ testcoverage: @make coverclean - pytest -k "not perf" --cov=tqdm --cov-fail-under=80 + pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-fail-under=80 testperf: # do not use coverage (which is extremely slow) @@ -107,6 +107,9 @@ .dockerignore: @+python -c "fd=open('.dockerignore', 'w'); fd.write('*\n!dist/*.whl\n')" +Dockerfile: + @+python -c 'fd=open("Dockerfile", "w"); fd.write("FROM python:3.8-alpine\nCOPY dist/*.whl .\nRUN pip install -U $$(ls ./*.whl) && rm ./*.whl\nENTRYPOINT [\"tqdm\"]\n")' + distclean: @+make coverclean @+make prebuildclean @@ -167,6 +170,7 @@ docker: @make build @make .dockerignore + @make Dockerfile docker build . -t tqdm/tqdm docker tag tqdm/tqdm:latest tqdm/tqdm:$(shell docker run -i --rm tqdm/tqdm -v) none: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/PKG-INFO new/tqdm-4.56.2/PKG-INFO --- old/tqdm-4.56.0/PKG-INFO 2021-01-11 01:58:50.044544000 +0100 +++ new/tqdm-4.56.2/PKG-INFO 2021-02-10 18:42:24.195856800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.56.0 +Version: 4.56.2 Summary: Fast, Extensible Progress Meter Home-page: https://github.com/tqdm/tqdm Maintainer: tqdm developers @@ -1360,16 +1360,17 @@ ==================== ======================================================== ==== ================================ Name ID SLoC Notes ==================== ======================================================== ==== ================================ - Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~82% primary maintainer |Gift-Casper| - Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~11% team member + Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~81% primary maintainer |Gift-Casper| + Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~10% team member Martin Zugnoni `martinzugnoni <https://github.com/martinzugnoni>`__ ~3% + Richard Sheridan `richardsheridan <https://github.com/richardsheridan>`__ ~1% Guangshuo Chen `chengs <https://github.com/chengs>`__ ~1% Kyle Altendorf `altendky <https://github.com/altendky>`__ <1% - Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Matthew Stevens `mjstevens777 <https://github.com/mjstevens777>`__ <1% + Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Ivan Ivanov `obiwanus <https://github.com/obiwanus>`__ <1% Daniel Panteleit `danielpanteleit <https://github.com/danielpanteleit>`__ <1% - Jona Haag `jonashaag <https://github.com/jonashaag>`__ <1% + Jonas Haag `jonashaag <https://github.com/jonashaag>`__ <1% James E. King III `jeking3 <https://github.com/jeking3>`__ <1% Noam Yorav-Raphael `noamraph <https://github.com/noamraph>`__ <1% original author Mikhail Korobov `kmike <https://github.com/kmike>`__ <1% team member @@ -1392,10 +1393,10 @@ |README-Hits| (Since 19 May 2016) .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif - .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif - .. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg + .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/img/master/tqdm.gif + .. |Video| image:: https://raw.githubusercontent.com/tqdm/img/master/video.jpg :target: https://tqdm.github.io/video - .. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg + .. |Slides| image:: https://raw.githubusercontent.com/tqdm/img/master/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest @@ -1451,9 +1452,9 @@ :target: https://doi.org/10.5281/zenodo.595120 .. |binder-demo| image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/tqdm/tqdm/master?filepath=DEMO.ipynb - .. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-1.gif - .. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-2.gif - .. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-3.gif + .. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-1.gif + .. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-2.gif + .. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-3.gif .. |README-Hits| image:: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&style=social&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif :target: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&a=plot&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif&style=social diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/README.rst new/tqdm-4.56.2/README.rst --- old/tqdm-4.56.0/README.rst 2021-01-11 01:58:46.000000000 +0100 +++ new/tqdm-4.56.2/README.rst 2021-02-10 18:42:20.000000000 +0100 @@ -1348,16 +1348,17 @@ ==================== ======================================================== ==== ================================ Name ID SLoC Notes ==================== ======================================================== ==== ================================ -Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~82% primary maintainer |Gift-Casper| -Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~11% team member +Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~81% primary maintainer |Gift-Casper| +Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~10% team member Martin Zugnoni `martinzugnoni <https://github.com/martinzugnoni>`__ ~3% +Richard Sheridan `richardsheridan <https://github.com/richardsheridan>`__ ~1% Guangshuo Chen `chengs <https://github.com/chengs>`__ ~1% Kyle Altendorf `altendky <https://github.com/altendky>`__ <1% -Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Matthew Stevens `mjstevens777 <https://github.com/mjstevens777>`__ <1% +Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Ivan Ivanov `obiwanus <https://github.com/obiwanus>`__ <1% Daniel Panteleit `danielpanteleit <https://github.com/danielpanteleit>`__ <1% -Jona Haag `jonashaag <https://github.com/jonashaag>`__ <1% +Jonas Haag `jonashaag <https://github.com/jonashaag>`__ <1% James E. King III `jeking3 <https://github.com/jeking3>`__ <1% Noam Yorav-Raphael `noamraph <https://github.com/noamraph>`__ <1% original author Mikhail Korobov `kmike <https://github.com/kmike>`__ <1% team member @@ -1380,10 +1381,10 @@ |README-Hits| (Since 19 May 2016) .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif -.. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif -.. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg +.. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/img/master/tqdm.gif +.. |Video| image:: https://raw.githubusercontent.com/tqdm/img/master/video.jpg :target: https://tqdm.github.io/video -.. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg +.. |Slides| image:: https://raw.githubusercontent.com/tqdm/img/master/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest @@ -1439,8 +1440,8 @@ :target: https://doi.org/10.5281/zenodo.595120 .. |binder-demo| image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/tqdm/tqdm/master?filepath=DEMO.ipynb -.. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-1.gif -.. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-2.gif -.. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-3.gif +.. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-1.gif +.. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-2.gif +.. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-3.gif .. |README-Hits| image:: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&style=social&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif :target: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&a=plot&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif&style=social diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/setup.cfg new/tqdm-4.56.2/setup.cfg --- old/tqdm-4.56.0/setup.cfg 2021-01-11 01:58:50.044544000 +0100 +++ new/tqdm-4.56.2/setup.cfg 2021-02-10 18:42:24.195856800 +0100 @@ -76,7 +76,7 @@ [options] setup_requires = setuptools>=42; setuptools_scm[toml]>=3.4 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* -tests_require = pytest; flake8; coverage +tests_require = tox include_package_data = True packages = find: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tests/tests_tqdm.py new/tqdm-4.56.2/tests/tests_tqdm.py --- old/tqdm-4.56.0/tests/tests_tqdm.py 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tests/tests_tqdm.py 2021-02-10 18:41:54.000000000 +0100 @@ -1172,6 +1172,18 @@ assert r_before == r_after +def test_disabled_unpause(capsys): + """Test disabled unpause""" + with tqdm(total=10, disable=True) as t: + t.update() + t.unpause() + t.update() + print(t) + out, err = capsys.readouterr() + assert not err + assert out == ' 0%| | 0/10 [00:00<?, ?it/s]\n' + + def test_reset(): """Test resetting a bar for re-use""" with closing(StringIO()) as our_file: @@ -1186,6 +1198,20 @@ assert '| 10/12' in our_file.getvalue() +def test_disabled_reset(capsys): + """Test disabled reset""" + with tqdm(total=10, disable=True) as t: + t.update(9) + t.reset() + t.update() + t.reset(total=12) + t.update(10) + print(t) + out, err = capsys.readouterr() + assert not err + assert out == ' 0%| | 0/12 [00:00<?, ?it/s]\n' + + @mark.skipif(nt_and_no_colorama, reason="Windows without colorama") def test_position(): """Test positioned progress bars""" @@ -1425,7 +1451,7 @@ def test_clear_disabled(): - """Test clearing bar display""" + """Test disabled clear""" with closing(StringIO()) as our_file: with tqdm(total=10, file=our_file, desc='pos0 bar', disable=True, bar_format='{l_bar}') as t: @@ -1454,8 +1480,19 @@ assert after == [u'pos0 bar: 10%|', u'pos1 bar: 10%|'] +def test_disabled_repr(capsys): + """Test disabled repr""" + with tqdm(total=10, disable=True) as t: + str(t) + t.update() + print(t) + out, err = capsys.readouterr() + assert not err + assert out == ' 0%| | 0/10 [00:00<?, ?it/s]\n' + + def test_disabled_refresh(): - """Test refresh bar display""" + """Test disabled refresh""" with closing(StringIO()) as our_file: with tqdm(total=10, file=our_file, desc='pos0 bar', disable=True, bar_format='{l_bar}', mininterval=999, miniters=999) as t: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tox.ini new/tqdm-4.56.2/tox.ini --- old/tqdm-4.56.0/tox.ini 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tox.ini 2021-02-10 18:41:54.000000000 +0100 @@ -57,15 +57,6 @@ pytest-timeout commands=pytest -k perf -[testenv:flake8] -deps= - flake8 - flake8-bugbear - flake8-comprehensions - flake8-debugger - flake8-string-format -commands=flake8 -j 8 --count --statistics . - [testenv:setup.py] deps= docutils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/_dist_ver.py new/tqdm-4.56.2/tqdm/_dist_ver.py --- old/tqdm-4.56.0/tqdm/_dist_ver.py 2021-01-11 01:58:49.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/_dist_ver.py 2021-02-10 18:42:23.000000000 +0100 @@ -1 +1 @@ -__version__ = '4.56.0' +__version__ = '4.56.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/contrib/discord.py new/tqdm-4.56.2/tqdm/contrib/discord.py --- old/tqdm-4.56.0/tqdm/contrib/discord.py 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/contrib/discord.py 2021-02-10 18:41:54.000000000 +0100 @@ -85,13 +85,13 @@ See `tqdm.auto.tqdm.__init__` for other parameters. """ - kwargs = kwargs.copy() - logging.getLogger("HTTPClient").setLevel(logging.WARNING) - self.dio = DiscordIO( - kwargs.pop('token', getenv("TQDM_DISCORD_TOKEN")), - kwargs.pop('channel_id', getenv("TQDM_DISCORD_CHANNEL_ID"))) - - kwargs['mininterval'] = max(1.5, kwargs.get('mininterval', 1.5)) + if not kwargs.get('disable'): + kwargs = kwargs.copy() + logging.getLogger("HTTPClient").setLevel(logging.WARNING) + self.dio = DiscordIO( + kwargs.pop('token', getenv("TQDM_DISCORD_TOKEN")), + kwargs.pop('channel_id', getenv("TQDM_DISCORD_CHANNEL_ID"))) + kwargs['mininterval'] = max(1.5, kwargs.get('mininterval', 1.5)) super(tqdm_discord, self).__init__(*args, **kwargs) def display(self, **kwargs): @@ -106,7 +106,8 @@ def clear(self, *args, **kwargs): super(tqdm_discord, self).clear(*args, **kwargs) - self.dio.write("") + if not self.disable: + self.dio.write("") def tdrange(*args, **kwargs): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/contrib/telegram.py new/tqdm-4.56.2/tqdm/contrib/telegram.py --- old/tqdm-4.56.0/tqdm/contrib/telegram.py 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/contrib/telegram.py 2021-02-10 18:41:54.000000000 +0100 @@ -91,9 +91,11 @@ See `tqdm.auto.tqdm.__init__` for other parameters. """ - kwargs = kwargs.copy() - self.tgio = TelegramIO(kwargs.pop('token', getenv('TQDM_TELEGRAM_TOKEN')), - kwargs.pop('chat_id', getenv('TQDM_TELEGRAM_CHAT_ID'))) + if not kwargs.get('disable'): + kwargs = kwargs.copy() + self.tgio = TelegramIO( + kwargs.pop('token', getenv('TQDM_TELEGRAM_TOKEN')), + kwargs.pop('chat_id', getenv('TQDM_TELEGRAM_CHAT_ID'))) super(tqdm_telegram, self).__init__(*args, **kwargs) def display(self, **kwargs): @@ -108,7 +110,8 @@ def clear(self, *args, **kwargs): super(tqdm_telegram, self).clear(*args, **kwargs) - self.tgio.write("") + if not self.disable: + self.tgio.write("") def ttgrange(*args, **kwargs): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/notebook.py new/tqdm-4.56.2/tqdm/notebook.py --- old/tqdm-4.56.0/tqdm/notebook.py 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/notebook.py 2021-02-10 18:41:54.000000000 +0100 @@ -297,6 +297,8 @@ ---------- total : int or float, optional. Total to use for the new bar. """ + if self.disable: + return super(tqdm_notebook, self).reset(total=total) _, pbar, _ = self.container.children pbar.bar_style = '' if total is not None: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/std.py new/tqdm-4.56.2/tqdm/std.py --- old/tqdm-4.56.0/tqdm/std.py 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/std.py 2021-02-10 18:41:54.000000000 +0100 @@ -10,7 +10,7 @@ from __future__ import absolute_import, division import sys -from collections import OrderedDict +from collections import OrderedDict, defaultdict from contextlib import contextmanager from datetime import datetime, timedelta from numbers import Number @@ -1133,7 +1133,7 @@ def __del__(self): self.close() - def __repr__(self): + def __str__(self): return self.format_meter(**self.format_dict) @property @@ -1330,6 +1330,8 @@ def unpause(self): """Restart tqdm timer from last print time.""" + if self.disable: + return cur_t = self._time() self.start_t += cur_t - self.last_print_t self.last_print_t = cur_t @@ -1344,13 +1346,16 @@ ---------- total : int or float, optional. Total to use for the new bar. """ - self.last_print_n = self.n = 0 + self.n = 0 + if total is not None: + self.total = total + if self.disable: + return + self.last_print_n = 0 self.last_print_t = self.start_t = self._time() self._ema_dn = EMA(self.smoothing) self._ema_dt = EMA(self.smoothing) self._ema_miniters = EMA(self.smoothing) - if total is not None: - self.total = total self.refresh() def set_description(self, desc=None, refresh=True): @@ -1420,14 +1425,16 @@ @property def format_dict(self): """Public API for read-only member access.""" + if self.disable and not hasattr(self, 'unit'): + return defaultdict(lambda: None, { + 'n': self.n, 'total': self.total, 'elapsed': 0, 'unit': 'it'}) if self.dynamic_ncols: self.ncols, self.nrows = self.dynamic_ncols(self.fp) - ncols, nrows = self.ncols, self.nrows return { 'n': self.n, 'total': self.total, 'elapsed': self._time() - self.start_t if hasattr(self, 'start_t') else 0, - 'ncols': ncols, 'nrows': nrows, 'prefix': self.desc, 'ascii': self.ascii, - 'unit': self.unit, 'unit_scale': self.unit_scale, + 'ncols': self.ncols, 'nrows': self.nrows, 'prefix': self.desc, + 'ascii': self.ascii, 'unit': self.unit, 'unit_scale': self.unit_scale, 'rate': self._ema_dn() / self._ema_dt() if self._ema_dt() else None, 'bar_format': self.bar_format, 'postfix': self.postfix, 'unit_divisor': self.unit_divisor, 'initial': self.initial, @@ -1464,7 +1471,7 @@ if pos: self.moveto(pos) - self.sp(self.__repr__() if msg is None else msg) + self.sp(self.__str__() if msg is None else msg) if pos: self.moveto(-pos) return True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm/tqdm.1 new/tqdm-4.56.2/tqdm/tqdm.1 --- old/tqdm-4.56.0/tqdm/tqdm.1 2021-01-11 01:58:20.000000000 +0100 +++ new/tqdm-4.56.2/tqdm/tqdm.1 2021-02-10 18:41:54.000000000 +0100 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 1.19.2 .\" -.TH "TQDM" "1" "2015\-2020" "tqdm User Manuals" "" +.TH "TQDM" "1" "2015\-2021" "tqdm User Manuals" "" .hy .SH NAME .PP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm.egg-info/PKG-INFO new/tqdm-4.56.2/tqdm.egg-info/PKG-INFO --- old/tqdm-4.56.0/tqdm.egg-info/PKG-INFO 2021-01-11 01:58:49.000000000 +0100 +++ new/tqdm-4.56.2/tqdm.egg-info/PKG-INFO 2021-02-10 18:42:24.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.56.0 +Version: 4.56.2 Summary: Fast, Extensible Progress Meter Home-page: https://github.com/tqdm/tqdm Maintainer: tqdm developers @@ -1360,16 +1360,17 @@ ==================== ======================================================== ==== ================================ Name ID SLoC Notes ==================== ======================================================== ==== ================================ - Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~82% primary maintainer |Gift-Casper| - Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~11% team member + Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ ~81% primary maintainer |Gift-Casper| + Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ ~10% team member Martin Zugnoni `martinzugnoni <https://github.com/martinzugnoni>`__ ~3% + Richard Sheridan `richardsheridan <https://github.com/richardsheridan>`__ ~1% Guangshuo Chen `chengs <https://github.com/chengs>`__ ~1% Kyle Altendorf `altendky <https://github.com/altendky>`__ <1% - Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Matthew Stevens `mjstevens777 <https://github.com/mjstevens777>`__ <1% + Hadrien Mary `hadim <https://github.com/hadim>`__ <1% team member Ivan Ivanov `obiwanus <https://github.com/obiwanus>`__ <1% Daniel Panteleit `danielpanteleit <https://github.com/danielpanteleit>`__ <1% - Jona Haag `jonashaag <https://github.com/jonashaag>`__ <1% + Jonas Haag `jonashaag <https://github.com/jonashaag>`__ <1% James E. King III `jeking3 <https://github.com/jeking3>`__ <1% Noam Yorav-Raphael `noamraph <https://github.com/noamraph>`__ <1% original author Mikhail Korobov `kmike <https://github.com/kmike>`__ <1% team member @@ -1392,10 +1393,10 @@ |README-Hits| (Since 19 May 2016) .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif - .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif - .. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg + .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/img/master/tqdm.gif + .. |Video| image:: https://raw.githubusercontent.com/tqdm/img/master/video.jpg :target: https://tqdm.github.io/video - .. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg + .. |Slides| image:: https://raw.githubusercontent.com/tqdm/img/master/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest @@ -1451,9 +1452,9 @@ :target: https://doi.org/10.5281/zenodo.595120 .. |binder-demo| image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/tqdm/tqdm/master?filepath=DEMO.ipynb - .. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-1.gif - .. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-2.gif - .. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-3.gif + .. |Screenshot-Jupyter1| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-1.gif + .. |Screenshot-Jupyter2| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-2.gif + .. |Screenshot-Jupyter3| image:: https://raw.githubusercontent.com/tqdm/img/master/jupyter-3.gif .. |README-Hits| image:: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&style=social&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif :target: https://caspersci.uk.to/cgi-bin/hits.cgi?q=tqdm&a=plot&r=https://github.com/tqdm/tqdm&l=https://caspersci.uk.to/images/tqdm.png&f=https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif&style=social diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.56.0/tqdm.egg-info/SOURCES.txt new/tqdm-4.56.2/tqdm.egg-info/SOURCES.txt --- old/tqdm-4.56.0/tqdm.egg-info/SOURCES.txt 2021-01-11 01:58:49.000000000 +0100 +++ new/tqdm-4.56.2/tqdm.egg-info/SOURCES.txt 2021-02-10 18:42:24.000000000 +0100 @@ -4,7 +4,6 @@ CODE_OF_CONDUCT.md CONTRIBUTING.md DEMO.ipynb -Dockerfile LICENCE Makefile README.rst