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 2022-03-13 20:25:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old)
 and      /work/SRC/openSUSE:Factory/.python-tqdm.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tqdm"

Sun Mar 13 20:25:08 2022 rev:49 rq:961200 version:4.63.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes  2022-01-23 
16:25:47.900548880 +0100
+++ /work/SRC/openSUSE:Factory/.python-tqdm.new.25692/python-tqdm.changes       
2022-03-13 20:25:27.191675534 +0100
@@ -1,0 +2,18 @@
+Sat Mar 12 05:53:04 UTC 2022 - Arun Persaud <a...@gmx.de>
+
+- update to version 4.63.0:
+  * add __reversed__()
+  * add efficient __contains__()
+  * improve CLI startup time (replace pkg_resources => importlib)
+  * tqdm.autonotebook warning & std fallback on missing ipywidgets
+    (#1218 <- #1082, #1217)
+  * warn on positional CLI arguments
+  * misc build/test framework updates
+    + enable py3.10 tests
+    + add conda dependencies
+    + update pre-commit hooks
+    + fix pytest config (nbval, asyncio)
+    + fix dependencies & tests
+    + fix site deployment
+
+-------------------------------------------------------------------

Old:
----
  tqdm-4.62.3.tar.gz

New:
----
  tqdm-4.63.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-tqdm.spec ++++++
--- /var/tmp/diff_new_pack.oSTIRM/_old  2022-03-13 20:25:27.743676183 +0100
+++ /var/tmp/diff_new_pack.oSTIRM/_new  2022-03-13 20:25:27.747676188 +0100
@@ -28,7 +28,7 @@
 %bcond_with test
 %endif
 Name:           python-tqdm%{pkg_suffix}
-Version:        4.62.3
+Version:        4.63.0
 Release:        0
 Summary:        An extensible progress meter
 License:        MIT AND MPL-2.0

++++++ tqdm-4.62.3.tar.gz -> tqdm-4.63.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/.pre-commit-config.yaml 
new/tqdm-4.63.0/.pre-commit-config.yaml
--- old/tqdm-4.62.3/.pre-commit-config.yaml     2021-09-20 17:10:27.000000000 
+0200
+++ new/tqdm-4.63.0/.pre-commit-config.yaml     2022-02-28 04:09:04.000000000 
+0100
@@ -2,7 +2,7 @@
   python: python3
 repos:
 - repo: https://github.com/pre-commit/pre-commit-hooks
-  rev: v4.0.1
+  rev: v4.1.0
   hooks:
   - id: check-added-large-files
   - id: check-case-conflict
@@ -52,7 +52,7 @@
     - flake8-string-format
     - flake8-type-annotations
 - repo: https://github.com/PyCQA/isort
-  rev: 5.9.3
+  rev: 5.10.1
   hooks:
   - id: isort
 - repo: https://github.com/kynan/nbstripout
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/Makefile new/tqdm-4.63.0/Makefile
--- old/tqdm-4.62.3/Makefile    2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/Makefile    2022-02-28 04:09:04.000000000 +0100
@@ -62,11 +62,11 @@
        python setup.py make none
 
 testnb:
-       pytest tests_notebook.ipynb --nbval --current-env -W=ignore 
--sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term
+       pytest tests_notebook.ipynb --nbval --nbval-current-env -W=ignore 
--nbval-sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term
 
 testcoverage:
        @make coverclean
-       pytest tests_notebook.ipynb --cov=tqdm --cov-report= --nbval 
--current-env --sanitize-with=setup.cfg -W=ignore
+       pytest tests_notebook.ipynb --cov=tqdm --cov-report= --nbval 
--nbval-current-env --nbval-sanitize-with=setup.cfg -W=ignore
        pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term 
--cov-append --cov-fail-under=80
 
 testperf:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/PKG-INFO new/tqdm-4.63.0/PKG-INFO
--- old/tqdm-4.62.3/PKG-INFO    2021-09-20 17:11:11.675622200 +0200
+++ new/tqdm-4.63.0/PKG-INFO    2022-02-28 04:09:40.819270600 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tqdm
-Version: 4.62.3
+Version: 4.63.0
 Summary: Fast, Extensible Progress Meter
 Home-page: https://tqdm.github.io
 Maintainer: tqdm developers
@@ -46,6 +46,7 @@
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: Implementation
 Classifier: Programming Language :: Python :: Implementation :: IronPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/environment.yml 
new/tqdm-4.63.0/environment.yml
--- old/tqdm-4.62.3/environment.yml     2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/environment.yml     2022-02-28 04:09:04.000000000 +0100
@@ -34,6 +34,12 @@
 - argopt             # `cd wiki && pymake`
 - twine              # `pymake pypi`
 - wheel              # `setup.py bdist_wheel`
-- pydoc-markdown     # `cd docs && pymake`
+# `cd docs && pymake`
+- mkdocs-material
+- pydoc-markdown >=3.3.0
+- pygments
+- pymdown-extensions
 - pip:
   - py-make >=0.1.0  # `setup.py make/pymake`
+  - mkdocs-minify-plugin                                   # `cd docs && 
pymake`
+  - git+git://github.com/tqdm/jsmin@python3-only#egg=jsmin # `cd docs && 
pymake`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/setup.cfg new/tqdm-4.63.0/setup.cfg
--- old/tqdm-4.62.3/setup.cfg   2021-09-20 17:11:11.675622200 +0200
+++ new/tqdm-4.63.0/setup.cfg   2022-02-28 04:09:40.819270600 +0100
@@ -51,6 +51,7 @@
        Programming Language :: Python :: 3.7
        Programming Language :: Python :: 3.8
        Programming Language :: Python :: 3.9
+       Programming Language :: Python :: 3.10
        Programming Language :: Python :: Implementation
        Programming Language :: Python :: Implementation :: IronPython
        Programming Language :: Python :: Implementation :: PyPy
@@ -77,6 +78,7 @@
 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
 install_requires = 
        colorama; platform_system == 'Windows'
+       importlib_resources; python_version < "3.7"
 tests_require = tox
 include_package_data = True
 packages = find:
@@ -125,7 +127,7 @@
        slow
 python_files = tests_*.py tests_*.ipynb
 testpaths = tests
-addopts = -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1
+addopts = -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1 
--asyncio-mode=strict
 
 [regex1]
 regex = (?<= )[\s\d.]+(it/s|s/it)
@@ -144,6 +146,7 @@
        tqdm/contrib/telegram.py
        tqdm/contrib/utils_worker.py
 relative_files = True
+disable_warnings = include-ignored
 
 [coverage:report]
 show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tests/tests_main.py 
new/tqdm-4.63.0/tests/tests_main.py
--- old/tqdm-4.62.3/tests/tests_main.py 2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tests/tests_main.py 2022-02-28 04:09:04.000000000 +0100
@@ -45,6 +45,7 @@
     # actual test:
     assert norm(ls_out) == norm(out)
     assert b"it/s" in err
+    assert b"Error" not in err
 
 
 if sys.version_info[:2] >= (3, 8):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tests/tests_tqdm.py 
new/tqdm-4.63.0/tests/tests_tqdm.py
--- old/tqdm-4.62.3/tests/tests_tqdm.py 2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tests/tests_tqdm.py 2022-02-28 04:09:04.000000000 +0100
@@ -1973,3 +1973,24 @@
         for i in trange(9, file=our_file, miniters=1, mininterval=0):
             if i == 5:
                 our_file.close()
+
+
+def test_reversed(capsys):
+    """Test reversed()"""
+    for _ in reversed(tqdm(_range(9))):
+        pass
+    out, err = capsys.readouterr()
+    assert not out
+    assert '  0%' in err
+    assert '100%' in err
+
+
+def test_contains(capsys):
+    """Test __contains__ doesn't iterate"""
+    with tqdm(list(range(9))) as t:
+        assert 9 not in t
+        assert all(i in t for i in _range(9))
+    out, err = capsys.readouterr()
+    assert not out
+    assert '  0%' in err
+    assert '100%' not in err
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tox.ini new/tqdm-4.63.0/tox.ini
--- old/tqdm-4.62.3/tox.ini     2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tox.ini     2022-02-28 04:09:04.000000000 +0100
@@ -26,11 +26,12 @@
 [core]
 deps=
     pytest
+    py3{4,5,6}: pytest<7
     pytest-cov
     pytest-timeout
     py3{7,8,9,10}: pytest-asyncio
     py3{6,7,8,9,10}: ipywidgets
-    py3{6,7,8,9,10}: 
git+https://github.com/casperdcl/nbval.git@named_cells#egg=nbval
+    py3{7,8,9,10}: git+https://github.com/casperdcl/nbval.git@master#egg=nbval
     coverage
     coveralls
     codecov
@@ -48,14 +49,16 @@
     matplotlib
     numpy
     pandas
+    tf: tensorflow!=2.5.0
+    !py27-keras: keras
     py27-keras: keras<2.5
+    py35-keras: keras<2.7
     py27-tf: protobuf<3.18
-    !py27-keras: keras
     py3{6,7,8,9,10}: rich
-    tf: tensorflow!=2.5.0
 commands=
-    py3{6,7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb 
--nbval --current-env -W=ignore --sanitize-with=setup.cfg
-    pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not 
perf"
+    py3{4,5,6}: pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not 
perf" -o addopts= -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1
+    py3{7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb 
--nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg
+    py3{7,8,9,10}: pytest --cov=tqdm --cov-report=xml --cov-report=term 
--cov-append -k "not perf"
     {[core]commands}
 allowlist_externals=codacy
 
@@ -72,6 +75,7 @@
 deps=
     pytest
     pytest-timeout
+    pytest-asyncio
 commands=pytest -k perf
 
 [testenv:setup.py]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm/_dist_ver.py 
new/tqdm-4.63.0/tqdm/_dist_ver.py
--- old/tqdm-4.62.3/tqdm/_dist_ver.py   2021-09-20 17:11:11.000000000 +0200
+++ new/tqdm-4.63.0/tqdm/_dist_ver.py   2022-02-28 04:09:40.000000000 +0100
@@ -1 +1 @@
-__version__ = '4.62.3'
+__version__ = '4.63.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm/autonotebook.py 
new/tqdm-4.63.0/tqdm/autonotebook.py
--- old/tqdm-4.62.3/tqdm/autonotebook.py        2021-09-20 17:10:27.000000000 
+0200
+++ new/tqdm-4.63.0/tqdm/autonotebook.py        2022-02-28 04:09:04.000000000 
+0100
@@ -8,6 +8,7 @@
 """
 import os
 import sys
+from warnings import warn
 
 try:
     get_ipython = sys.modules['IPython'].get_ipython
@@ -15,11 +16,14 @@
         raise ImportError("console")
     if 'VSCODE_PID' in os.environ:  # pragma: no cover
         raise ImportError("vscode")
+    from .notebook import WARN_NOIPYW, IProgress
+    if IProgress is None:
+        from .std import TqdmWarning
+        warn(WARN_NOIPYW, TqdmWarning, stacklevel=2)
+        raise ImportError('ipywidgets')
 except Exception:
     from .std import tqdm, trange
 else:  # pragma: no cover
-    from warnings import warn
-
     from .notebook import tqdm, trange
     from .std import TqdmExperimentalWarning
     warn("Using `tqdm.autonotebook.tqdm` in notebook mode."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm/cli.py new/tqdm-4.63.0/tqdm/cli.py
--- old/tqdm-4.62.3/tqdm/cli.py 2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tqdm/cli.py 2022-02-28 04:09:04.000000000 +0100
@@ -185,9 +185,8 @@
                      otd[0].replace('_', '-'), otd[0], *otd[1:])
                 for otd in opt_types_desc if otd[0] not in UNSUPPORTED_OPTS)
 
-    d = """Usage:
-  tqdm [--help | options]
-
+    help_short = "Usage:\n  tqdm [--help | options]\n"
+    d = help_short + """
 Options:
   -h, --help     Print this help and exit.
   -v, --version  Print version and exit.
@@ -200,6 +199,9 @@
     elif any(v in argv for v in ('-h', '--help')):
         sys.stdout.write(d + '\n')
         sys.exit(0)
+    elif argv and argv[0][:2] != '--':
+        sys.stderr.write(
+            "Error:Unknown argument:{0}\n{1}".format(argv[0], help_short))
 
     argv = RE_SHLEX.split(' '.join(["tqdm"] + argv))
     opts = dict(zip(argv[1::3], argv[3::3]))
@@ -223,7 +225,7 @@
         if sum((delim_per_char, update, update_to)) > 1:
             raise TqdmKeyError("Can only have one of --bytes --update 
--update_to")
     except Exception:
-        fp.write('\nError:\nUsage:\n  tqdm [--help | options]\n')
+        fp.write("\nError:\n" + help_short)
         for i in sys.stdin:
             sys.stdout.write(i)
         raise
@@ -245,19 +247,23 @@
         if manpath or comppath:
             from os import path
             from shutil import copyfile
-
-            from pkg_resources import Requirement, resource_filename
-
-            def cp(src, dst):
-                """copies from src path to dst"""
-                copyfile(src, dst)
-                log.info("written:" + dst)
+            try:  # py<3.7
+                import importlib_resources as resources
+            except ImportError:
+                from importlib import resources
+
+            def cp(name, dst):
+                """copy resource `name` to `dst`"""
+                if hasattr(resources, 'files'):
+                    copyfile(str(resources.files('tqdm') / name), dst)
+                else:  # py<3.9
+                    with resources.path('tqdm', name) as src:
+                        copyfile(str(src), dst)
+                log.info("written:%s", dst)
             if manpath is not None:
-                cp(resource_filename(Requirement.parse('tqdm'), 'tqdm/tqdm.1'),
-                   path.join(manpath, 'tqdm.1'))
+                cp('tqdm.1', path.join(manpath, 'tqdm.1'))
             if comppath is not None:
-                cp(resource_filename(Requirement.parse('tqdm'), 
'tqdm/completion.sh'),
-                   path.join(comppath, 'tqdm_completion.sh'))
+                cp('completion.sh', path.join(comppath, 'tqdm_completion.sh'))
             sys.exit(0)
         if tee:
             stdout_write = stdout.write
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm/notebook.py 
new/tqdm-4.63.0/tqdm/notebook.py
--- old/tqdm-4.62.3/tqdm/notebook.py    2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tqdm/notebook.py    2022-02-28 04:09:04.000000000 +0100
@@ -71,6 +71,9 @@
 
 __author__ = {"github.com/": ["lrq3000", "casperdcl", "alexanderkuk"]}
 __all__ = ['tqdm_notebook', 'tnrange', 'tqdm', 'trange']
+WARN_NOIPYW = ("IProgress not found. Please update jupyter and ipywidgets."
+               " See https://ipywidgets.readthedocs.io/en/stable";
+               "/user_install.html")
 
 
 class TqdmHBox(HBox):
@@ -112,10 +115,7 @@
 
         # Prepare IPython progress bar
         if IProgress is None:  # #187 #451 #558 #872
-            raise ImportError(
-                "IProgress not found. Please update jupyter and ipywidgets."
-                " See https://ipywidgets.readthedocs.io/en/stable";
-                "/user_install.html")
+            raise ImportError(WARN_NOIPYW)
         if total:
             pbar = IProgress(min=0, max=total)
         else:  # No total? Show info style bar with no progress tqdm status
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm/std.py new/tqdm-4.63.0/tqdm/std.py
--- old/tqdm-4.62.3/tqdm/std.py 2021-09-20 17:10:27.000000000 +0200
+++ new/tqdm-4.63.0/tqdm/std.py 2022-02-28 04:09:04.000000000 +0100
@@ -1131,6 +1131,21 @@
             else self.iterable.__length_hint__() if hasattr(self.iterable, 
"__length_hint__")
             else getattr(self, "total", None))
 
+    def __reversed__(self):
+        try:
+            orig = self.iterable
+        except AttributeError:
+            raise TypeError("'tqdm' object is not reversible")
+        else:
+            self.iterable = reversed(self.iterable)
+            return self.__iter__()
+        finally:
+            self.iterable = orig
+
+    def __contains__(self, item):
+        contains = getattr(self.iterable, '__contains__', None)
+        return contains(item) if contains is not None else item in 
self.__iter__()
+
     def __enter__(self):
         return self
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm.egg-info/PKG-INFO 
new/tqdm-4.63.0/tqdm.egg-info/PKG-INFO
--- old/tqdm-4.62.3/tqdm.egg-info/PKG-INFO      2021-09-20 17:11:11.000000000 
+0200
+++ new/tqdm-4.63.0/tqdm.egg-info/PKG-INFO      2022-02-28 04:09:40.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tqdm
-Version: 4.62.3
+Version: 4.63.0
 Summary: Fast, Extensible Progress Meter
 Home-page: https://tqdm.github.io
 Maintainer: tqdm developers
@@ -46,6 +46,7 @@
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: Implementation
 Classifier: Programming Language :: Python :: Implementation :: IronPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.62.3/tqdm.egg-info/requires.txt 
new/tqdm-4.63.0/tqdm.egg-info/requires.txt
--- old/tqdm-4.62.3/tqdm.egg-info/requires.txt  2021-09-20 17:11:11.000000000 
+0200
+++ new/tqdm-4.63.0/tqdm.egg-info/requires.txt  2022-02-28 04:09:40.000000000 
+0100
@@ -2,6 +2,9 @@
 [:platform_system == "Windows"]
 colorama
 
+[:python_version < "3.7"]
+importlib_resources
+
 [dev]
 py-make>=0.1.0
 twine

Reply via email to