Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-proglog for openSUSE:Factory checked in at 2023-05-10 16:19:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-proglog (Old) and /work/SRC/openSUSE:Factory/.python-proglog.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-proglog" Wed May 10 16:19:02 2023 rev:2 rq:1085849 version:0.1.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-proglog/python-proglog.changes 2019-04-19 18:40:08.539318779 +0200 +++ /work/SRC/openSUSE:Factory/.python-proglog.new.1533/python-proglog.changes 2023-05-10 16:19:03.603164792 +0200 @@ -1,0 +2,6 @@ +Tue May 9 21:38:51 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.1.10: + * Test and build on Python 3.9 + +------------------------------------------------------------------- Old: ---- proglog-0.1.9.tar.gz New: ---- proglog-0.1.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-proglog.spec ++++++ --- /var/tmp/diff_new_pack.GU1iNT/_old 2023-05-10 16:19:04.059167489 +0200 +++ /var/tmp/diff_new_pack.GU1iNT/_new 2023-05-10 16:19:04.063167512 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-proglog # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-proglog -Version: 0.1.9 +Version: 0.1.10 Release: 0 Summary: Log and progress bar manager for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/Edinburgh-Genome-Foundry/Proglog +URL: https://github.com/Edinburgh-Genome-Foundry/Proglog Source: https://files.pythonhosted.org/packages/source/p/proglog/proglog-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros @@ -43,8 +43,7 @@ %prep %setup -q -n proglog-%{version} -mv LICENCE.txt LICENSE.txt -chmod a-x LICENSE.txt README.rst +chmod a-x LICENSE README.rst %build %python_build @@ -55,7 +54,8 @@ %files %{python_files} %doc README.rst -%license LICENSE.txt -%{python_sitelib}/* +%license LICENSE +%{python_sitelib}/proglog +%{python_sitelib}/proglog-%{version}-py3*.egg-info %changelog ++++++ proglog-0.1.9.tar.gz -> proglog-0.1.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/LICENCE.txt new/proglog-0.1.10/LICENCE.txt --- old/proglog-0.1.9/LICENCE.txt 2017-08-13 00:20:50.000000000 +0200 +++ new/proglog-0.1.10/LICENCE.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,25 +0,0 @@ - -The MIT License (MIT) -[OSI Approved License] - -The MIT License (MIT) - -Copyright (c) 2017 Edinburgh Genome Foundry - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/LICENSE new/proglog-0.1.10/LICENSE --- old/proglog-0.1.9/LICENSE 1970-01-01 01:00:00.000000000 +0100 +++ new/proglog-0.1.10/LICENSE 2022-05-05 17:31:21.000000000 +0200 @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Edinburgh Genome Foundry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/PKG-INFO new/proglog-0.1.10/PKG-INFO --- old/proglog-0.1.9/PKG-INFO 2018-05-29 20:26:18.000000000 +0200 +++ new/proglog-0.1.10/PKG-INFO 2022-05-05 17:31:32.186267400 +0200 @@ -1,31 +1,33 @@ -Metadata-Version: 1.0 +Metadata-Version: 2.1 Name: proglog -Version: 0.1.9 +Version: 0.1.10 Summary: Log and progress bar manager for console, notebooks, web... -Home-page: UNKNOWN Author: Zulko -Author-email: UNKNOWN -License: MIT - copyright Edinburgh Genome Foundry -Description: Proglog - =================== - Proglog is a progress logging system for Python. It allows to build complex - libraries while giving the user control on the management of logs, callbacks and progress bars. - - - Infos - ----- - - **PIP installation:** - - .. code:: bash - - pip install proglog - - **Github Page** - - `<https://github.com/Edinburgh-Genome-Foundry/Proglog>`_ - - **License:** MIT, Copyright Edinburgh Genome Foundry - +License: MIT Keywords: logger log progress bar Platform: UNKNOWN +License-File: LICENSE + +Proglog +======= + +Proglog is a progress logging system for Python. It allows to build complex +libraries while giving the user control on the management of logs, callbacks and progress bars. + + +Infos +----- + +**PIP installation:** + +.. code:: bash + + pip install proglog + +**Github Page** + +`<https://github.com/Edinburgh-Genome-Foundry/Proglog>`_ + +**License:** MIT, Copyright Edinburgh Genome Foundry + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/README.rst new/proglog-0.1.10/README.rst --- old/proglog-0.1.9/README.rst 2018-05-09 12:52:33.000000000 +0200 +++ new/proglog-0.1.10/README.rst 2022-05-05 17:31:21.000000000 +0200 @@ -5,14 +5,25 @@ <br /><br /> </p> +.. image:: https://github.com/Edinburgh-Genome-Foundry/Proglog/actions/workflows/build.yml/badge.svg + :target: https://github.com/Edinburgh-Genome-Foundry/Proglog/actions/workflows/build.yml + :alt: GitHub CI build status + +.. image:: https://coveralls.io/repos/github/Edinburgh-Genome-Foundry/Proglog/badge.svg?branch=master + :target: https://coveralls.io/github/Edinburgh-Genome-Foundry/Proglog?branch=master + Proglog is a progress logging system for Python. It allows to build complex -libraries while giving the user control on the management of logs, callbacks and progress bars. +libraries while giving your users control over logs, callbacks and progress bars. + +**What problems does it solve ?** + +Libraries like `tqdm <https://github.com/noamraph/tqdm>`_ or `progress <https://github.com/verigak/progress/>`_ are great for quickly adding progress bars to your scripts, but become difficult to manage when building larger projects. -**What problems does it solve ?** Libraries like `tqdm <https://github.com/noamraph/tqdm>`_ or `progress <https://github.com/verigak/progress/>`_ are great for quickly adding progress bars to your scripts, but become difficult to manage when building larger projects. +For instance, you will need to write different code depending on whether you are displaying the progress in a console, a Jupyter notebook, or a webpage. -For instance, you will need to write different code depending on whether you are displaying the progress in a console, a Jupyter notebook, or a website. +Sometimes a single program may have to handle many logs and progress bars coming from different subprograms and libraries, at which case you may want to let the final user decide which progress bars they want to display or to mute, even when these progress bars are handled deep down in your program. -Sometimes you need to channel the progress logs of different components into a same logger, at which case you may also let the final user choose which progress bars they want to display or to mute, even when these are handled deep down in your programs. +For instance if your program 1 calls a program 2 and program 3 (possibly from other libraries), you may want to be able to silence the progress bars of routine 2, or to only show the progress bars of routine 1. As long as all routines use Proglog, this will be easy to do. .. raw:: html @@ -25,22 +36,21 @@ Usage -------- +----- Assume that you are writing a library called ``my_library`` in which you define a routine as follows: .. code:: python - import time # for simulating computing time - from proglog import TqdmProgressBarLogger + import time # for simulating computing time + from proglog import default_bar_logger - def my_routine(iterations=10, logger='bars'): + def my_routine(iterations=10, logger='bar'): """Run several loops to showcase Proglog.""" - if logger == 'bars': - logger = TqdmProgressBarLogger() + logger = default_bar_logger(logger) # shorthand to generate a bar logger for i in logger.iter_bar(iteration=range(iterations)): for j in logger.iter_bar(animal=['dog', 'cat', 'rat', 'duck']): - time.sleep(0.1) # Simulate some computing time + time.sleep(0.1) # simulate some computing time Now when the library users run a program in the console, they will get a console progress bar: @@ -77,8 +87,7 @@ .. code:: python from my_library import my_routine - from proglog import MuteProgressBarLogger - my_routine(logger=MuteProgressBarLogger()) + my_routine(logger=None) If the user is running the routine on a web server and would want to attach the data to an asynchronous Python-RQ job, all they need is yet a different logger: @@ -138,7 +147,7 @@ logger = MyBarLogger() my_routine(logger=logger) -When writing libraries which all log progress and may depend on each other, simply pass the Proglog logger from one program to its dependencies, to obtain one logger keeping track of all progress across libraries at once: (this implies that not two librairies use the same variables or loop names, which can be avoided by attributing prefixes to these names): +When writing libraries which all log progress and may depend on each other, simply pass the Proglog logger from one program to its dependencies, to obtain one logger keeping track of all progress across libraries at once: .. raw:: html @@ -146,37 +155,49 @@ <img src="https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Proglog/master/docs/loggers_schema.png" width="650"> </p> +Note that this implies that not two libraries use the same variables or loop names, which can be avoided by attributing prefixes to these names: + +.. code:: python + + for i in logger.iter_bar(iteration=range(iterations), bar_prefix='libraryname_'): + ... + Installation -------------- +------------ + +You can install Proglog through PIP: + +.. code:: shell + + pip install proglog -You can install Proglog through PIP +Alternatively, you can unzip the sources in a folder and type: .. code:: shell - sudo pip install proglog + python setup.py install -Alternatively, you can unzip the sources in a folder and type +To use the ``tqdm`` notebook-style progress bars you need to install iwidgets: .. code:: shell - sudo python setup.py install + pip install ipywidgets -To use the ``tqdm`` notebook-style progress bars you need to install and enable -iwidgets: +This `should automatically enable it <https://ipywidgets.readthedocs.io/en/latest/user_install.html>`_; for older versions try: .. code:: shell - sudo pip install ipywidgets - sudo jupyter nbextension enable --py --sys-prefix widgetsnbextension + jupyter nbextension enable --py --sys-prefix widgetsnbextension -Contribute ! +License = MIT ------------- Proglog is an open-source software originally written at the `Edinburgh Genome Foundry -<http://www.genomefoundry.io>`_ by `Zulko <https://github.com/Zulko>`_ +<https://www.ed.ac.uk/biology/research/facilities/edinburgh-genome-foundry>`_ by `Zulko <https://github.com/Zulko>`_ and `released on Github <https://github.com/Edinburgh-Genome-Foundry/DnaCauldron>`_ under -the MIT licence (copyright Edinburgh Genome Foundry). +the MIT license (Copyright 2017 Edinburgh Genome Foundry). -Proglog was not written by loggology experts, it *just works* with our projects and we use it a lot. Everyone is welcome to contribute if you find bugs or limitations ! +Proglog was not written by loggology experts, it *just works* with our projects and we use it a lot. +Everyone is welcome to contribute if you find bugs or limitations ! diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/proglog/version.py new/proglog-0.1.10/proglog/version.py --- old/proglog-0.1.9/proglog/version.py 2018-05-29 20:22:57.000000000 +0200 +++ new/proglog-0.1.10/proglog/version.py 2022-05-05 17:31:21.000000000 +0200 @@ -1 +1 @@ -__version__ = "0.1.9" +__version__ = "0.1.10" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/proglog.egg-info/PKG-INFO new/proglog-0.1.10/proglog.egg-info/PKG-INFO --- old/proglog-0.1.9/proglog.egg-info/PKG-INFO 2018-05-29 20:26:18.000000000 +0200 +++ new/proglog-0.1.10/proglog.egg-info/PKG-INFO 2022-05-05 17:31:31.000000000 +0200 @@ -1,31 +1,33 @@ -Metadata-Version: 1.0 +Metadata-Version: 2.1 Name: proglog -Version: 0.1.9 +Version: 0.1.10 Summary: Log and progress bar manager for console, notebooks, web... -Home-page: UNKNOWN Author: Zulko -Author-email: UNKNOWN -License: MIT - copyright Edinburgh Genome Foundry -Description: Proglog - =================== - Proglog is a progress logging system for Python. It allows to build complex - libraries while giving the user control on the management of logs, callbacks and progress bars. - - - Infos - ----- - - **PIP installation:** - - .. code:: bash - - pip install proglog - - **Github Page** - - `<https://github.com/Edinburgh-Genome-Foundry/Proglog>`_ - - **License:** MIT, Copyright Edinburgh Genome Foundry - +License: MIT Keywords: logger log progress bar Platform: UNKNOWN +License-File: LICENSE + +Proglog +======= + +Proglog is a progress logging system for Python. It allows to build complex +libraries while giving the user control on the management of logs, callbacks and progress bars. + + +Infos +----- + +**PIP installation:** + +.. code:: bash + + pip install proglog + +**Github Page** + +`<https://github.com/Edinburgh-Genome-Foundry/Proglog>`_ + +**License:** MIT, Copyright Edinburgh Genome Foundry + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/proglog.egg-info/SOURCES.txt new/proglog-0.1.10/proglog.egg-info/SOURCES.txt --- old/proglog-0.1.9/proglog.egg-info/SOURCES.txt 2018-05-29 20:26:18.000000000 +0200 +++ new/proglog-0.1.10/proglog.egg-info/SOURCES.txt 2022-05-05 17:31:32.000000000 +0200 @@ -1,4 +1,4 @@ -LICENCE.txt +LICENSE MANIFEST.in README.rst ez_setup.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/pypi-readme.rst new/proglog-0.1.10/pypi-readme.rst --- old/proglog-0.1.9/pypi-readme.rst 2018-05-29 20:25:41.000000000 +0200 +++ new/proglog-0.1.10/pypi-readme.rst 2022-05-05 17:31:21.000000000 +0200 @@ -1,5 +1,6 @@ Proglog -=================== +======= + Proglog is a progress logging system for Python. It allows to build complex libraries while giving the user control on the management of logs, callbacks and progress bars. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/proglog-0.1.9/setup.py new/proglog-0.1.10/setup.py --- old/proglog-0.1.9/setup.py 2018-05-29 20:25:27.000000000 +0200 +++ new/proglog-0.1.10/setup.py 2022-05-05 17:31:21.000000000 +0200 @@ -1,16 +1,19 @@ import ez_setup + ez_setup.use_setuptools() from setuptools import setup, find_packages -exec(open('proglog/version.py').read()) # loads __version__ +exec(open("proglog/version.py").read()) # loads __version__ -setup(name='proglog', - version=__version__, - author='Zulko', - description='Log and progress bar manager for console, notebooks, web...', - long_description=open('pypi-readme.rst').read(), - license='MIT - copyright Edinburgh Genome Foundry', +setup( + name="proglog", + version=__version__, + author="Zulko", + description="Log and progress bar manager for console, notebooks, web...", + long_description=open("pypi-readme.rst").read(), + license="MIT", keywords="logger log progress bar", - install_requires=['tqdm'], - packages= find_packages(exclude='docs')) + install_requires=["tqdm"], + packages=find_packages(exclude="docs"), +)