Hello community,

here is the log from the commit of package python-tqdm for openSUSE:Factory 
checked in at 2019-06-30 10:14:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old)
 and      /work/SRC/openSUSE:Factory/.python-tqdm.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tqdm"

Sun Jun 30 10:14:01 2019 rev:20 rq:711668 version:4.32.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes  2019-06-04 
12:12:55.327810345 +0200
+++ /work/SRC/openSUSE:Factory/.python-tqdm.new.4615/python-tqdm.changes        
2019-06-30 10:14:02.738924993 +0200
@@ -1,0 +2,20 @@
+Mon Jun 24 00:28:04 UTC 2019 - Arun Persaud <[email protected]>
+
+- update to version 4.32.2:
+  * fix 'Set changed size during iteration' (#481 -> #700, #754)
+  * add tqdm.autonotebook check for $VSCODE_PID (#747 -> #751)
+  * fix missing multiprocessing in Jython (#698)
+  * make bool(tqdm(iter)) consistent with bool(iter) (#353 -> #694)
+  * add and update unit tests
+  * add and update documentation & framework
+    + update notable contributors list
+    + update usage docstrings (#714, #715)
+    + add funding
+    + add awesome-python badge
+    + trove classifier update
+    + update demo notebook badges
+    + add JOSS DOI
+    + add Zenodo metadata
+    + move unnecessary root clutter
+
+-------------------------------------------------------------------

Old:
----
  tqdm-4.32.1.tar.gz

New:
----
  tqdm-4.32.2.tar.gz

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

Other differences:
------------------
++++++ python-tqdm.spec ++++++
--- /var/tmp/diff_new_pack.HIl0fn/_old  2019-06-30 10:14:04.598927896 +0200
+++ /var/tmp/diff_new_pack.HIl0fn/_new  2019-06-30 10:14:04.626927940 +0200
@@ -28,7 +28,7 @@
 %bcond_with test
 %endif
 Name:           python-tqdm%{suffix}
-Version:        4.32.1
+Version:        4.32.2
 Release:        0
 Summary:        An extensible progress meter
 License:        MPL-2.0 AND MIT

++++++ tqdm-4.32.1.tar.gz -> tqdm-4.32.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/DEMO.ipynb new/tqdm-4.32.2/DEMO.ipynb
--- old/tqdm-4.32.1/DEMO.ipynb  2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/DEMO.ipynb  2019-06-18 21:00:13.000000000 +0200
@@ -7,15 +7,15 @@
     "<h1 align=\"center\">tqdm</h1>\n",
     "<img 
src=\"https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif\"; 
align=\"left\" />\n",
     "\n",
-    
"[![PyPI-Versions](https://img.shields.io/pypi/pyversions/tqdm.svg?logo=python&logoColor=white)](https://pypi.org/project/tqdm)|[![PyPI-Status](https://img.shields.io/pypi/v/tqdm.svg)](https://pypi.org/project/tqdm)|[![Conda-Forge-Status](https://img.shields.io/conda/v/conda-forge/tqdm.svg?label=conda-forge&logo=conda-forge)](https://anaconda.org/conda-forge/tqdm)|[![Snapcraft](https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft)](https://snapcraft.io/tqdm)\n",
-    "-|-|-|-\n",
+    
"[![PyPI-Versions](https://img.shields.io/pypi/pyversions/tqdm.svg?logo=python&logoColor=white)](https://pypi.org/project/tqdm)|[![PyPI-Status](https://img.shields.io/pypi/v/tqdm.svg)](https://pypi.org/project/tqdm)|[![Conda-Forge-Status](https://img.shields.io/conda/v/conda-forge/tqdm.svg?label=conda-forge&logo=conda-forge)](https://anaconda.org/conda-forge/tqdm)|[![Docker](https://img.shields.io/badge/docker-pull-blue.svg?logo=docker)](https://hub.docker.com/r/tqdm/tqdm)|[![Snapcraft](https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft)](https://snapcraft.io/tqdm)\n",
+    "-|-|-|-|-\n",
     "\n",
     
"[![Build-Status](https://img.shields.io/travis/tqdm/tqdm/master.svg?logo=travis)](https://travis-ci.org/tqdm/tqdm)|[![Coverage-Status](https://coveralls.io/repos/tqdm/tqdm/badge.svg?branch=master)](https://coveralls.io/github/tqdm/tqdm)|[![Branch-Coverage-Status](https://codecov.io/gh/tqdm/tqdm/branch/master/graph/badge.svg)](https://codecov.io/gh/tqdm/tqdm)|[![Codacy-Grade](https://api.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177)](https://www.codacy.com/app/tqdm/tqdm?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tqdm/tqdm&amp;utm_campaign=Badge_Grade)|[![Libraries-Rank](https://img.shields.io/librariesio/sourcerank/pypi/tqdm.svg?logo=koding&logoColor=white)](https://libraries.io/pypi/tqdm)|[![PyPI-Downloads](https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=python&logoColor=white)](https://pypi.org/project/tqdm)\n",
     "-|-|-|-|-|-\n",
     "\n",
     "\n",
-    
"[![DOI-URI](https://zenodo.org/badge/21637/tqdm/tqdm.svg)](https://zenodo.org/badge/latestdoi/21637/tqdm/tqdm)|[![LICENCE](https://img.shields.io/pypi/l/tqdm.svg)](https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE)|[![OpenHub-Status](https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif)](https://www.openhub.net/p/tqdm?ref=Thin+badge)|[![README-Hits](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)](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)\n",
-    "-|-|-|-\n",
+    
"[![DOI](https://img.shields.io/badge/DOI-10.21105/joss.01277-green.svg)](https://doi.org/10.21105/joss.01277)|[![DOI-code](https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg)](https://doi.org/10.5281/zenodo.595120)|[![LICENCE](https://img.shields.io/pypi/l/tqdm.svg)](https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE)|[![OpenHub-Status](https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif)](https://www.openhub.net/p/tqdm?ref=Thin+badge)|[![README-Hits](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)](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)\n",
+    "-|-|-|-|-\n",
     "\n",
     "`tqdm` means \"progress\" in Arabic (taqadum, تقدّم) and is an\n",
     "abbreviation for \"I love you so much\" in Spanish (te quiero 
demasiado).\n",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/Makefile new/tqdm-4.32.2/Makefile
--- old/tqdm-4.32.1/Makefile    2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/Makefile    2019-06-18 21:00:13.000000000 +0200
@@ -84,7 +84,7 @@
        asv publish
        asv preview
 
-tqdm/tqdm.1: .tqdm.1.md tqdm/_main.py tqdm/_tqdm.py
+tqdm/tqdm.1: .meta/.tqdm.1.md tqdm/_main.py tqdm/_tqdm.py
        # TODO: add to mkdocs.py
        python -m tqdm --help | tail -n+5 |\
     sed -r -e 's/\\/\\\\/g' \
@@ -93,10 +93,10 @@
     cat "$<" - |\
     pandoc -o "$@" -s -t man
 
-README.rst: .readme.rst tqdm/_tqdm.py tqdm/_main.py
-       @python mkdocs.py
+README.rst: .meta/.readme.rst tqdm/_tqdm.py tqdm/_main.py
+       @python .meta/mkdocs.py
 
-snapcraft.yaml: .snapcraft.yml
+snapcraft.yaml: .meta/.snapcraft.yml
        cat "$<" | sed -e 's/{version}/'"`python -m tqdm --version`"'/g' \
     -e 's/{commit}/'"`git describe --always`"'/g' \
     -e 's/{source}/./g' -e 's/{icon}/logo.png/g' \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/PKG-INFO new/tqdm-4.32.2/PKG-INFO
--- old/tqdm-4.32.1/PKG-INFO    2019-05-14 00:43:35.000000000 +0200
+++ new/tqdm-4.32.2/PKG-INFO    2019-06-18 21:01:40.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tqdm
-Version: 4.32.1
+Version: 4.32.2
 Summary: Fast, Extensible Progress Meter
 Home-page: https://github.com/tqdm/tqdm
 Maintainer: tqdm developers
@@ -15,8 +15,7 @@
         
         |Build-Status| |Coverage-Status| |Branch-Coverage-Status| 
|Codacy-Grade| |Libraries-Rank| |PyPI-Downloads|
         
-        |DOI-URI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo|
-        
+        |DOI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo| 
|awesome-python|
         
         ``tqdm`` means "progress" in Arabic (*taqadum*, تقدّم)
         and is an abbreviation for "I love you so much" in Spanish (*te quiero 
demasiado*).
@@ -291,7 +290,7 @@
         
         .. code:: python
         
-            class tqdm(object):
+            class tqdm():
               """
               Decorate an iterable object, returning an iterator which acts 
exactly
               like the original iterable, but prints a dynamically updating
@@ -424,6 +423,7 @@
         
         .. code:: python
         
+            class tqdm():
               def update(self, n=1):
                   """
                   Manually update the progress bar, useful for streams
@@ -977,13 +977,13 @@
         Name                 ID                                                
 LoC  Notes
         ==================== 
================================================== ==== 
================================
         Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__      
 ~3/4 primary maintainer |Gift-Casper|
-        Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__          
 ~1/6 team member
-        Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__        
 ~1%  original author
-        Matthew Stevens      `mjstevens777 
<https://github.com/mjstevens777>`__ ~1%
+        Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__          
 ~10% team member
+        Kyle Altendorf       `altendky <https://github.com/altendky>`__        
 ~2%
         Guangshuo Chen       `chengs <https://github.com/chengs>`__            
 ~1%
+        Matthew Stevens      `mjstevens777 
<https://github.com/mjstevens777>`__ ~1%
+        Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__        
 ~1%  original author
         Hadrien Mary         `hadim <https://github.com/hadim>`__              
 ~1%  team member
         Mikhail Korobov      `kmike <https://github.com/kmike>`__              
 ~1%  team member
-        Kyle Altendorf       `altendky <https://github.com/altendky>`__        
 ~1%
         ==================== 
================================================== ==== 
================================
         
         Ports to Other Languages
@@ -998,7 +998,7 @@
         
         Open Source (OSI approved): |LICENCE|
         
-        Citation information: |DOI-URI|
+        Citation information: |DOI| (publication), |DOI-code| (code)
         
         |README-Hits| (Since 19 May 2016)
         
@@ -1048,9 +1048,13 @@
             :target: https://github.com/tqdm/tqdm/network/dependents
         .. |OpenHub-Status| image:: 
https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif
            :target: https://www.openhub.net/p/tqdm?ref=Thin+badge
+        .. |awesome-python| image:: https://awesome.re/mentioned-badge.svg
+           :target: https://github.com/vinta/awesome-python)
         .. |LICENCE| image:: https://img.shields.io/pypi/l/tqdm.svg
            :target: https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE
-        .. |DOI-URI| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
+        .. |DOI| image:: 
https://img.shields.io/badge/DOI-10.21105/joss.01277-green.svg
+           :target: https://doi.org/10.21105/joss.01277
+        .. |DOI-code| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
            :target: https://doi.org/10.5281/zenodo.595120
         .. |notebook-demo| image:: 
https://img.shields.io/badge/launch-notebook-orange.svg?logo=jupyter
            :target: https://notebooks.ai/demo/gh/tqdm/tqdm
@@ -1071,6 +1075,7 @@
 Classifier: Environment :: Win32 (MS Windows)
 Classifier: Environment :: X11 Applications
 Classifier: Framework :: IPython
+Classifier: Framework :: Jupyter
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: Education
 Classifier: Intended Audience :: End Users/Desktop
@@ -1078,13 +1083,17 @@
 Classifier: Intended Audience :: System Administrators
 Classifier: License :: OSI Approved :: MIT License
 Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
+Classifier: Operating System :: MacOS
 Classifier: Operating System :: MacOS :: MacOS X
+Classifier: Operating System :: Microsoft
+Classifier: Operating System :: Microsoft :: MS-DOS
 Classifier: Operating System :: Microsoft :: Windows
 Classifier: Operating System :: POSIX
 Classifier: Operating System :: POSIX :: BSD
 Classifier: Operating System :: POSIX :: BSD :: FreeBSD
 Classifier: Operating System :: POSIX :: Linux
 Classifier: Operating System :: POSIX :: SunOS/Solaris
+Classifier: Operating System :: Unix
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.6
@@ -1099,6 +1108,7 @@
 Classifier: Programming Language :: Python :: Implementation
 Classifier: Programming Language :: Python :: Implementation :: IronPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Programming Language :: Unix Shell
 Classifier: Topic :: Desktop Environment
 Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
 Classifier: Topic :: Education :: Testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/README.rst new/tqdm-4.32.2/README.rst
--- old/tqdm-4.32.1/README.rst  2019-05-14 00:43:33.000000000 +0200
+++ new/tqdm-4.32.2/README.rst  2019-06-18 21:01:38.000000000 +0200
@@ -7,8 +7,7 @@
 
 |Build-Status| |Coverage-Status| |Branch-Coverage-Status| |Codacy-Grade| 
|Libraries-Rank| |PyPI-Downloads|
 
-|DOI-URI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo|
-
+|DOI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo| |awesome-python|
 
 ``tqdm`` means "progress" in Arabic (*taqadum*, تقدّم)
 and is an abbreviation for "I love you so much" in Spanish (*te quiero 
demasiado*).
@@ -283,7 +282,7 @@
 
 .. code:: python
 
-    class tqdm(object):
+    class tqdm():
       """
       Decorate an iterable object, returning an iterator which acts exactly
       like the original iterable, but prints a dynamically updating
@@ -416,6 +415,7 @@
 
 .. code:: python
 
+    class tqdm():
       def update(self, n=1):
           """
           Manually update the progress bar, useful for streams
@@ -969,13 +969,13 @@
 Name                 ID                                                 LoC  
Notes
 ==================== ================================================== ==== 
================================
 Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__       ~3/4 
primary maintainer |Gift-Casper|
-Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__           ~1/6 
team member
-Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__         ~1%  
original author
-Matthew Stevens      `mjstevens777 <https://github.com/mjstevens777>`__ ~1%
+Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__           ~10% 
team member
+Kyle Altendorf       `altendky <https://github.com/altendky>`__         ~2%
 Guangshuo Chen       `chengs <https://github.com/chengs>`__             ~1%
+Matthew Stevens      `mjstevens777 <https://github.com/mjstevens777>`__ ~1%
+Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__         ~1%  
original author
 Hadrien Mary         `hadim <https://github.com/hadim>`__               ~1%  
team member
 Mikhail Korobov      `kmike <https://github.com/kmike>`__               ~1%  
team member
-Kyle Altendorf       `altendky <https://github.com/altendky>`__         ~1%
 ==================== ================================================== ==== 
================================
 
 Ports to Other Languages
@@ -990,7 +990,7 @@
 
 Open Source (OSI approved): |LICENCE|
 
-Citation information: |DOI-URI|
+Citation information: |DOI| (publication), |DOI-code| (code)
 
 |README-Hits| (Since 19 May 2016)
 
@@ -1040,9 +1040,13 @@
     :target: https://github.com/tqdm/tqdm/network/dependents
 .. |OpenHub-Status| image:: 
https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif
    :target: https://www.openhub.net/p/tqdm?ref=Thin+badge
+.. |awesome-python| image:: https://awesome.re/mentioned-badge.svg
+   :target: https://github.com/vinta/awesome-python)
 .. |LICENCE| image:: https://img.shields.io/pypi/l/tqdm.svg
    :target: https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE
-.. |DOI-URI| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
+.. |DOI| image:: https://img.shields.io/badge/DOI-10.21105/joss.01277-green.svg
+   :target: https://doi.org/10.21105/joss.01277
+.. |DOI-code| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
    :target: https://doi.org/10.5281/zenodo.595120
 .. |notebook-demo| image:: 
https://img.shields.io/badge/launch-notebook-orange.svg?logo=jupyter
    :target: https://notebooks.ai/demo/gh/tqdm/tqdm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/setup.py new/tqdm-4.32.2/setup.py
--- old/tqdm-4.32.1/setup.py    2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/setup.py    2019-06-18 21:00:13.000000000 +0200
@@ -67,6 +67,7 @@
         'Environment :: Win32 (MS Windows)',
         'Environment :: X11 Applications',
         'Framework :: IPython',
+        'Framework :: Jupyter',
         'Intended Audience :: Developers',
         'Intended Audience :: Education',
         'Intended Audience :: End Users/Desktop',
@@ -74,13 +75,17 @@
         'Intended Audience :: System Administrators',
         'License :: OSI Approved :: MIT License',
         'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
+        'Operating System :: MacOS',
         'Operating System :: MacOS :: MacOS X',
+        'Operating System :: Microsoft',
+        'Operating System :: Microsoft :: MS-DOS',
         'Operating System :: Microsoft :: Windows',
         'Operating System :: POSIX',
         'Operating System :: POSIX :: BSD',
         'Operating System :: POSIX :: BSD :: FreeBSD',
         'Operating System :: POSIX :: Linux',
         'Operating System :: POSIX :: SunOS/Solaris',
+        'Operating System :: Unix',
         'Programming Language :: Python',
         'Programming Language :: Python :: 2',
         'Programming Language :: Python :: 2.6',
@@ -95,6 +100,7 @@
         'Programming Language :: Python :: Implementation',
         'Programming Language :: Python :: Implementation :: IronPython',
         'Programming Language :: Python :: Implementation :: PyPy',
+        'Programming Language :: Unix Shell',
         'Topic :: Desktop Environment',
         'Topic :: Education :: Computer Aided Instruction (CAI)',
         'Topic :: Education :: Testing',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/_tqdm.py 
new/tqdm-4.32.2/tqdm/_tqdm.py
--- old/tqdm-4.32.1/tqdm/_tqdm.py       2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/tqdm/_tqdm.py       2019-06-18 21:00:13.000000000 +0200
@@ -21,7 +21,6 @@
 from time import time
 from contextlib import contextmanager
 # For parallelism safety
-import multiprocessing as mp
 import threading as th
 from warnings import warn
 
@@ -104,7 +103,8 @@
     def create_mp_lock(cls):
         if not hasattr(cls, 'mp_lock'):
             try:
-                cls.mp_lock = mp.RLock()  # multiprocessing lock
+                from multiprocessing import RLock
+                cls.mp_lock = RLock()  # multiprocessing lock
             except ImportError:  # pragma: no cover
                 cls.mp_lock = None
             except OSError:  # pragma: no cover
@@ -459,22 +459,22 @@
     def __new__(cls, *args, **kwargs):
         # Create a new instance
         instance = object.__new__(cls)
-        # Add to the list of instances
-        if not hasattr(cls, '_instances'):
-            cls._instances = WeakSet()
         # Construct the lock if it does not exist
         with cls.get_lock():
+            # Add to the list of instances
+            if not hasattr(cls, '_instances'):
+                cls._instances = WeakSet()
             cls._instances.add(instance)
-        # Create the monitoring thread
-        if cls.monitor_interval and (cls.monitor is None or not
-                                     cls.monitor.report()):
-            try:
-                cls.monitor = TMonitor(cls, cls.monitor_interval)
-            except Exception as e:  # pragma: nocover
-                warn("tqdm:disabling monitor support"
-                     " (monitor_interval = 0) due to:\n" + str(e),
-                     TqdmMonitorWarning)
-                cls.monitor_interval = 0
+            # Create the monitoring thread
+            if cls.monitor_interval and (cls.monitor is None or not
+                                         cls.monitor.report()):
+                try:
+                    cls.monitor = TMonitor(cls, cls.monitor_interval)
+                except Exception as e:  # pragma: nocover
+                    warn("tqdm:disabling monitor support"
+                         " (monitor_interval = 0) due to:\n" + str(e),
+                         TqdmMonitorWarning)
+                    cls.monitor_interval = 0
         # Return the instance
         return instance
 
@@ -505,15 +505,15 @@
                     if hasattr(inst, "pos") and inst.pos > abs(instance.pos):
                         inst.pos -= 1
                         # TODO: check this doesn't overwrite another fixed bar
-        # Kill monitor if no instances are left
-        if not cls._instances and cls.monitor:
-            try:
-                cls.monitor.exit()
-                del cls.monitor
-            except AttributeError:  # pragma: nocover
-                pass
-            else:
-                cls.monitor = None
+            # Kill monitor if no instances are left
+            if not cls._instances and cls.monitor:
+                try:
+                    cls.monitor.exit()
+                    del cls.monitor
+                except AttributeError:  # pragma: nocover
+                    pass
+                else:
+                    cls.monitor = None
 
     @classmethod
     def write(cls, s, file=None, end="\n", nolock=False):
@@ -839,16 +839,18 @@
         if disable:
             self.iterable = iterable
             self.disable = disable
-            self.pos = self._get_free_pos(self)
-            self._instances.remove(self)
+            with self._lock:
+                self.pos = self._get_free_pos(self)
+                self._instances.remove(self)
             self.n = initial
             self.total = total
             return
 
         if kwargs:
             self.disable = True
-            self.pos = self._get_free_pos(self)
-            self._instances.remove(self)
+            with self._lock:
+                self.pos = self._get_free_pos(self)
+                self._instances.remove(self)
             from textwrap import dedent
             raise (TqdmDeprecationWarning(dedent("""\
                        `nested` is deprecated and automated.
@@ -947,6 +949,16 @@
         # NB: Avoid race conditions by setting start_t at the very end of init
         self.start_t = self.last_print_t
 
+    def __bool__(self):
+        if self.total is not None:
+            return self.total > 0
+        if self.iterable is None:
+            raise TypeError('bool() undefined when iterable == total == None')
+        return bool(self.iterable)
+
+    def __nonzero__(self):
+        return self.__bool__()
+
     def __len__(self):
         return self.total if self.iterable is None else \
             (self.iterable.shape[0] if hasattr(self.iterable, "shape")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/_tqdm_gui.py 
new/tqdm-4.32.2/tqdm/_tqdm_gui.py
--- old/tqdm-4.32.1/tqdm/_tqdm_gui.py   2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/tqdm/_tqdm_gui.py   2019-06-18 21:00:13.000000000 +0200
@@ -3,7 +3,7 @@
 Includes a default (x)range iterator printing to stderr.
 
 Usage:
-  >>> from tqdm_gui import tgrange[, tqdm_gui]
+  >>> from tqdm import tgrange[, tqdm_gui]
   >>> for i in tgrange(10): #same as: for i in tqdm_gui(xrange(10))
   ...     ...
 """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/_tqdm_notebook.py 
new/tqdm-4.32.2/tqdm/_tqdm_notebook.py
--- old/tqdm-4.32.1/tqdm/_tqdm_notebook.py      2019-05-14 00:41:59.000000000 
+0200
+++ new/tqdm-4.32.2/tqdm/_tqdm_notebook.py      2019-06-18 21:00:13.000000000 
+0200
@@ -3,7 +3,7 @@
 Includes a default (x)range iterator printing to stderr.
 
 Usage:
-  >>> from tqdm_notebook import tnrange[, tqdm_notebook]
+  >>> from tqdm import tnrange[, tqdm_notebook]
   >>> for i in tnrange(10): #same as: for i in tqdm_notebook(xrange(10))
   ...     ...
 """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/_version.py 
new/tqdm-4.32.2/tqdm/_version.py
--- old/tqdm-4.32.1/tqdm/_version.py    2019-05-14 00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/tqdm/_version.py    2019-06-18 21:00:13.000000000 +0200
@@ -5,7 +5,7 @@
 __all__ = ["__version__"]
 
 # major, minor, patch, -extra
-version_info = 4, 32, 1
+version_info = 4, 32, 2
 
 # Nice string for the version
 __version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/autonotebook/__init__.py 
new/tqdm-4.32.2/tqdm/autonotebook/__init__.py
--- old/tqdm-4.32.1/tqdm/autonotebook/__init__.py       2019-05-14 
00:41:59.000000000 +0200
+++ new/tqdm-4.32.2/tqdm/autonotebook/__init__.py       2019-06-18 
21:00:13.000000000 +0200
@@ -1,7 +1,11 @@
+import os
+
 try:
     from IPython import get_ipython
     if 'IPKernelApp' not in get_ipython().config:  # pragma: no cover
         raise ImportError("console")
+    if 'VSCODE_PID' in os.environ:  # pragma: no cover
+        raise ImportError("vscode")
 except:
     from .._tqdm import tqdm, trange
 else:  # pragma: no cover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm/tests/tests_tqdm.py 
new/tqdm-4.32.2/tqdm/tests/tests_tqdm.py
--- old/tqdm-4.32.1/tqdm/tests/tests_tqdm.py    2019-05-14 00:41:59.000000000 
+0200
+++ new/tqdm-4.32.2/tqdm/tests/tests_tqdm.py    2019-06-18 21:00:13.000000000 
+0200
@@ -1688,10 +1688,11 @@
 def test_unit_scale():
     """Test numeric `unit_scale`"""
     with closing(StringIO()) as our_file:
-        for _ in tqdm(_range(100), unit_scale=9, file=our_file):
+        for _ in tqdm(_range(9), unit_scale=9, file=our_file,
+                      miniters=1,  mininterval=0):
             pass
         out = our_file.getvalue()
-        assert '900/900' in out
+        assert '81/81' in out
 
 
 @with_setup(pretest, posttest)
@@ -1711,26 +1712,30 @@
 def test_bool():
     """Test boolean cast"""
     def internal(our_file, disable):
-        with tqdm(total=10, file=our_file, disable=disable) as t:
+        kwargs = dict(file=our_file, disable=disable)
+        with trange(10, **kwargs) as t:
             assert t
-        with tqdm(total=0, file=our_file, disable=disable) as t:
+        with trange(0, **kwargs) as t:
             assert not t
-        with trange(10, file=our_file, disable=disable) as t:
-            assert t
-        with trange(0, file=our_file, disable=disable) as t:
-            assert not t
-        with tqdm([], file=our_file, disable=disable) as t:
+        with tqdm(total=10, **kwargs) as t:
+            assert bool(t)
+        with tqdm(total=0, **kwargs) as t:
+            assert not bool(t)
+        with tqdm([], **kwargs) as t:
             assert not t
-        with tqdm([0], file=our_file, disable=disable) as t:
+        with tqdm([0], **kwargs) as t:
+            assert t
+        with tqdm((x for x in []), **kwargs) as t:
+            assert t
+        with tqdm((x for x in [1,2,3]), **kwargs) as t:
             assert t
-        with tqdm(file=our_file, disable=disable) as t:
+        with tqdm(**kwargs) as t:
             try:
                 print(bool(t))
             except TypeError:
                 pass
             else:
-                raise TypeError(
-                    "Expected tqdm() with neither total nor iterable to fail")
+                raise TypeError("Expected bool(tqdm()) to fail")
 
     # test with and without disable
     with closing(StringIO()) as our_file:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tqdm-4.32.1/tqdm.egg-info/PKG-INFO 
new/tqdm-4.32.2/tqdm.egg-info/PKG-INFO
--- old/tqdm-4.32.1/tqdm.egg-info/PKG-INFO      2019-05-14 00:43:35.000000000 
+0200
+++ new/tqdm-4.32.2/tqdm.egg-info/PKG-INFO      2019-06-18 21:01:39.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tqdm
-Version: 4.32.1
+Version: 4.32.2
 Summary: Fast, Extensible Progress Meter
 Home-page: https://github.com/tqdm/tqdm
 Maintainer: tqdm developers
@@ -15,8 +15,7 @@
         
         |Build-Status| |Coverage-Status| |Branch-Coverage-Status| 
|Codacy-Grade| |Libraries-Rank| |PyPI-Downloads|
         
-        |DOI-URI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo|
-        
+        |DOI| |LICENCE| |OpenHub-Status| |binder-demo| |notebook-demo| 
|awesome-python|
         
         ``tqdm`` means "progress" in Arabic (*taqadum*, تقدّم)
         and is an abbreviation for "I love you so much" in Spanish (*te quiero 
demasiado*).
@@ -291,7 +290,7 @@
         
         .. code:: python
         
-            class tqdm(object):
+            class tqdm():
               """
               Decorate an iterable object, returning an iterator which acts 
exactly
               like the original iterable, but prints a dynamically updating
@@ -424,6 +423,7 @@
         
         .. code:: python
         
+            class tqdm():
               def update(self, n=1):
                   """
                   Manually update the progress bar, useful for streams
@@ -977,13 +977,13 @@
         Name                 ID                                                
 LoC  Notes
         ==================== 
================================================== ==== 
================================
         Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__      
 ~3/4 primary maintainer |Gift-Casper|
-        Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__          
 ~1/6 team member
-        Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__        
 ~1%  original author
-        Matthew Stevens      `mjstevens777 
<https://github.com/mjstevens777>`__ ~1%
+        Stephen Larroque     `lrq3000 <https://github.com/lrq3000>`__          
 ~10% team member
+        Kyle Altendorf       `altendky <https://github.com/altendky>`__        
 ~2%
         Guangshuo Chen       `chengs <https://github.com/chengs>`__            
 ~1%
+        Matthew Stevens      `mjstevens777 
<https://github.com/mjstevens777>`__ ~1%
+        Noam Yorav-Raphael   `noamraph <https://github.com/noamraph>`__        
 ~1%  original author
         Hadrien Mary         `hadim <https://github.com/hadim>`__              
 ~1%  team member
         Mikhail Korobov      `kmike <https://github.com/kmike>`__              
 ~1%  team member
-        Kyle Altendorf       `altendky <https://github.com/altendky>`__        
 ~1%
         ==================== 
================================================== ==== 
================================
         
         Ports to Other Languages
@@ -998,7 +998,7 @@
         
         Open Source (OSI approved): |LICENCE|
         
-        Citation information: |DOI-URI|
+        Citation information: |DOI| (publication), |DOI-code| (code)
         
         |README-Hits| (Since 19 May 2016)
         
@@ -1048,9 +1048,13 @@
             :target: https://github.com/tqdm/tqdm/network/dependents
         .. |OpenHub-Status| image:: 
https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif
            :target: https://www.openhub.net/p/tqdm?ref=Thin+badge
+        .. |awesome-python| image:: https://awesome.re/mentioned-badge.svg
+           :target: https://github.com/vinta/awesome-python)
         .. |LICENCE| image:: https://img.shields.io/pypi/l/tqdm.svg
            :target: https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE
-        .. |DOI-URI| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
+        .. |DOI| image:: 
https://img.shields.io/badge/DOI-10.21105/joss.01277-green.svg
+           :target: https://doi.org/10.21105/joss.01277
+        .. |DOI-code| image:: 
https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
            :target: https://doi.org/10.5281/zenodo.595120
         .. |notebook-demo| image:: 
https://img.shields.io/badge/launch-notebook-orange.svg?logo=jupyter
            :target: https://notebooks.ai/demo/gh/tqdm/tqdm
@@ -1071,6 +1075,7 @@
 Classifier: Environment :: Win32 (MS Windows)
 Classifier: Environment :: X11 Applications
 Classifier: Framework :: IPython
+Classifier: Framework :: Jupyter
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: Education
 Classifier: Intended Audience :: End Users/Desktop
@@ -1078,13 +1083,17 @@
 Classifier: Intended Audience :: System Administrators
 Classifier: License :: OSI Approved :: MIT License
 Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
+Classifier: Operating System :: MacOS
 Classifier: Operating System :: MacOS :: MacOS X
+Classifier: Operating System :: Microsoft
+Classifier: Operating System :: Microsoft :: MS-DOS
 Classifier: Operating System :: Microsoft :: Windows
 Classifier: Operating System :: POSIX
 Classifier: Operating System :: POSIX :: BSD
 Classifier: Operating System :: POSIX :: BSD :: FreeBSD
 Classifier: Operating System :: POSIX :: Linux
 Classifier: Operating System :: POSIX :: SunOS/Solaris
+Classifier: Operating System :: Unix
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.6
@@ -1099,6 +1108,7 @@
 Classifier: Programming Language :: Python :: Implementation
 Classifier: Programming Language :: Python :: Implementation :: IronPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Programming Language :: Unix Shell
 Classifier: Topic :: Desktop Environment
 Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
 Classifier: Topic :: Education :: Testing


Reply via email to