Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2021-11-21 23:52:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-humanfriendly" Sun Nov 21 23:52:12 2021 rev:16 rq:932772 version:10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2021-08-18 08:57:14.074881593 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.1895/python-humanfriendly.changes 2021-11-21 23:52:41.210155302 +0100 @@ -1,0 +2,18 @@ +Thu Nov 18 11:55:15 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 10.0 + **Noteworthy changes:** + * Merged pull request `#45`_ to resolve the issue caused by the conditional + :pypi:`pyreadline` requirement on Windows not supporting Python 3.9+. + * Updated the readme to use Python 3 in the example (reported in issue `#56`_). + Also added a mention of the ``humanfriendly --demo`` command. + * Removed the ``humanfriendly.compat.unittest`` alias that presumably no-one is + using at this point; it had been rendered useless quite a long time ago + (requested in issue `#53`_). + **Internal changes:** + * Merged pull request `#54`_ which migrates the :pypi:`humanfriendly` project + from Travis CI to GitHub Actions and from Coveralls.io to Codecov. + * Fixed a deprecation warning concerning ``setup.cfg`` and some Sphinx + documentation errors. + +------------------------------------------------------------------- Old: ---- humanfriendly-9.2.tar.gz New: ---- humanfriendly-10.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-humanfriendly.spec ++++++ --- /var/tmp/diff_new_pack.v3cP5d/_old 2021-11-21 23:52:41.774153484 +0100 +++ /var/tmp/diff_new_pack.v3cP5d/_new 2021-11-21 23:52:41.778153471 +0100 @@ -27,7 +27,7 @@ %bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-humanfriendly%{psuffix} -Version: 9.2 +Version: 10.0 Release: 0 Summary: Human friendly input/output for text interfaces using Python License: MIT ++++++ humanfriendly-9.2.tar.gz -> humanfriendly-10.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/CHANGELOG.rst new/humanfriendly-10.0/CHANGELOG.rst --- old/humanfriendly-9.2/CHANGELOG.rst 2021-06-11 12:52:37.000000000 +0200 +++ new/humanfriendly-10.0/CHANGELOG.rst 2021-09-17 23:40:19.000000000 +0200 @@ -11,6 +11,35 @@ .. _Keep a Changelog: http://keepachangelog.com/ .. _semantic versioning: http://semver.org/ +`Release 10.0`_ (2021-09-17) +---------------------------- + +**Noteworthy changes:** + +- Merged pull request `#45`_ to resolve the issue caused by the conditional + :pypi:`pyreadline` requirement on Windows not supporting Python 3.9+. + +- Updated the readme to use Python 3 in the example (reported in issue `#56`_). + Also added a mention of the ``humanfriendly --demo`` command. + +- Removed the ``humanfriendly.compat.unittest`` alias that presumably no-one is + using at this point; it had been rendered useless quite a long time ago + (requested in issue `#53`_). + +**Internal changes:** + +- Merged pull request `#54`_ which migrates the :pypi:`humanfriendly` project + from Travis CI to GitHub Actions and from Coveralls.io to Codecov. + +- Fixed a deprecation warning concerning ``setup.cfg`` and some Sphinx + documentation errors. + +.. _Release 10.0: https://github.com/xolox/python-humanfriendly/compare/9.2...10.0 +.. _#45: https://github.com/xolox/python-humanfriendly/pull/45 +.. _#53: https://github.com/xolox/python-humanfriendly/issues/53 +.. _#54: https://github.com/xolox/python-humanfriendly/pull/54 +.. _#56: https://github.com/xolox/python-humanfriendly/issues/56 + `Release 9.2`_ (2021-06-11) --------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/PKG-INFO new/humanfriendly-10.0/PKG-INFO --- old/humanfriendly-9.2/PKG-INFO 2021-06-11 12:53:09.000000000 +0200 +++ new/humanfriendly-10.0/PKG-INFO 2021-09-17 23:40:38.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: humanfriendly -Version: 9.2 +Version: 10.0 Summary: Human friendly output for text interfaces using Python Home-page: https://humanfriendly.readthedocs.io Author: Peter Odding @@ -9,11 +9,11 @@ Description: humanfriendly: Human friendly input/output in Python ==================================================== - .. image:: https://travis-ci.org/xolox/python-humanfriendly.svg?branch=master - :target: https://travis-ci.org/xolox/python-humanfriendly + .. image:: https://github.com/xolox/python-humanfriendly/actions/workflows/test.yml/badge.svg?branch=master + :target: https://github.com/xolox/python-humanfriendly/actions - .. image:: https://coveralls.io/repos/github/xolox/python-humanfriendly/badge.svg?branch=master - :target: https://coveralls.io/github/xolox/python-humanfriendly?branch=master + .. image:: https://codecov.io/gh/xolox/python-humanfriendly/branch/master/graph/badge.svg?token=jYaj4T74TU + :target: https://codecov.io/gh/xolox/python-humanfriendly The functions and classes in the `humanfriendly` package can be used to make text interfaces more user friendly. Some example features: @@ -27,7 +27,7 @@ - Prompting the user to select a choice from a list of options by typing the option's number or a unique substring of the option. - - Terminal interaction including text styling (ANSI escape sequences), user + - Terminal interaction including text styling (`ANSI escape sequences`_), user friendly rendering of usage messages and querying the terminal for its size. @@ -43,17 +43,25 @@ It's very simple to start using the `humanfriendly` package:: - >>> import humanfriendly - >>> user_input = raw_input("Enter a readable file size: ") - Enter a readable file size: 16G - >>> num_bytes = humanfriendly.parse_size(user_input) - >>> print num_bytes + >>> from humanfriendly import format_size, parse_size + >>> from humanfriendly.prompts import prompt_for_input + >>> user_input = prompt_for_input("Enter a readable file size: ") + + Enter a readable file size: 16G + + >>> num_bytes = parse_size(user_input) + >>> print(num_bytes) 16000000000 - >>> print "You entered:", humanfriendly.format_size(num_bytes) + >>> print("You entered:", format_size(num_bytes)) You entered: 16 GB - >>> print "You entered:", humanfriendly.format_size(num_bytes, binary=True) + >>> print("You entered:", format_size(num_bytes, binary=True)) You entered: 14.9 GiB + To get a demonstration of supported terminal text styles (based on + `ANSI escape sequences`_) you can run the following command:: + + $ humanfriendly --demo + Command line ------------ @@ -158,6 +166,7 @@ .. _#4: https://github.com/xolox/python-humanfriendly/issues/4 .. _#8: https://github.com/xolox/python-humanfriendly/pull/8 .. _#9: https://github.com/xolox/python-humanfriendly/pull/9 + .. _ANSI escape sequences: https://en.wikipedia.org/wiki/ANSI_escape_code .. _changelog: https://humanfriendly.readthedocs.io/en/latest/changelog.html .. _colorama: https://pypi.org/project/colorama .. _format_size(): https://humanfriendly.readthedocs.io/en/latest/#humanfriendly.format_size diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/README.rst new/humanfriendly-10.0/README.rst --- old/humanfriendly-9.2/README.rst 2021-06-11 12:43:08.000000000 +0200 +++ new/humanfriendly-10.0/README.rst 2021-09-17 23:02:43.000000000 +0200 @@ -1,11 +1,11 @@ humanfriendly: Human friendly input/output in Python ==================================================== -.. image:: https://travis-ci.org/xolox/python-humanfriendly.svg?branch=master - :target: https://travis-ci.org/xolox/python-humanfriendly +.. image:: https://github.com/xolox/python-humanfriendly/actions/workflows/test.yml/badge.svg?branch=master + :target: https://github.com/xolox/python-humanfriendly/actions -.. image:: https://coveralls.io/repos/github/xolox/python-humanfriendly/badge.svg?branch=master - :target: https://coveralls.io/github/xolox/python-humanfriendly?branch=master +.. image:: https://codecov.io/gh/xolox/python-humanfriendly/branch/master/graph/badge.svg?token=jYaj4T74TU + :target: https://codecov.io/gh/xolox/python-humanfriendly The functions and classes in the `humanfriendly` package can be used to make text interfaces more user friendly. Some example features: @@ -19,7 +19,7 @@ - Prompting the user to select a choice from a list of options by typing the option's number or a unique substring of the option. -- Terminal interaction including text styling (ANSI escape sequences), user +- Terminal interaction including text styling (`ANSI escape sequences`_), user friendly rendering of usage messages and querying the terminal for its size. @@ -35,17 +35,25 @@ It's very simple to start using the `humanfriendly` package:: - >>> import humanfriendly - >>> user_input = raw_input("Enter a readable file size: ") - Enter a readable file size: 16G - >>> num_bytes = humanfriendly.parse_size(user_input) - >>> print num_bytes + >>> from humanfriendly import format_size, parse_size + >>> from humanfriendly.prompts import prompt_for_input + >>> user_input = prompt_for_input("Enter a readable file size: ") + + Enter a readable file size: 16G + + >>> num_bytes = parse_size(user_input) + >>> print(num_bytes) 16000000000 - >>> print "You entered:", humanfriendly.format_size(num_bytes) + >>> print("You entered:", format_size(num_bytes)) You entered: 16 GB - >>> print "You entered:", humanfriendly.format_size(num_bytes, binary=True) + >>> print("You entered:", format_size(num_bytes, binary=True)) You entered: 14.9 GiB +To get a demonstration of supported terminal text styles (based on +`ANSI escape sequences`_) you can run the following command:: + + $ humanfriendly --demo + Command line ------------ @@ -150,6 +158,7 @@ .. _#4: https://github.com/xolox/python-humanfriendly/issues/4 .. _#8: https://github.com/xolox/python-humanfriendly/pull/8 .. _#9: https://github.com/xolox/python-humanfriendly/pull/9 +.. _ANSI escape sequences: https://en.wikipedia.org/wiki/ANSI_escape_code .. _changelog: https://humanfriendly.readthedocs.io/en/latest/changelog.html .. _colorama: https://pypi.org/project/colorama .. _format_size(): https://humanfriendly.readthedocs.io/en/latest/#humanfriendly.format_size diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/docs/api.rst new/humanfriendly-10.0/docs/api.rst --- old/humanfriendly-9.2/docs/api.rst 2020-04-19 02:22:19.000000000 +0200 +++ new/humanfriendly-10.0/docs/api.rst 2021-09-17 23:02:43.000000000 +0200 @@ -35,7 +35,7 @@ :members: :mod:`humanfriendly.case` ------------------------- +------------------------- .. automodule:: humanfriendly.case :members: @@ -50,7 +50,10 @@ --------------------------- .. automodule:: humanfriendly.compat - :members: coerce_string, is_string, is_unicode, on_windows + :members: coerce_string, is_string, is_unicode, on_macos, on_windows + +.. The members above are defined explicitly so that Sphinx does not +.. embed documentation for all of the standard library aliases. :mod:`humanfriendly.decorators` ------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/humanfriendly/__init__.py new/humanfriendly-10.0/humanfriendly/__init__.py --- old/humanfriendly-9.2/humanfriendly/__init__.py 2021-06-11 12:52:37.000000000 +0200 +++ new/humanfriendly-10.0/humanfriendly/__init__.py 2021-09-17 23:40:19.000000000 +0200 @@ -1,7 +1,7 @@ # Human friendly input/output in Python. # # Author: Peter Odding <pe...@peterodding.com> -# Last Change: June 11, 2021 +# Last Change: September 17, 2021 # URL: https://humanfriendly.readthedocs.io """The main module of the `humanfriendly` package.""" @@ -51,7 +51,7 @@ ) # Semi-standard module versioning. -__version__ = '9.2' +__version__ = '10.0' # Named tuples to define units of size. SizeUnit = collections.namedtuple('SizeUnit', 'divider, symbol, name') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/humanfriendly/compat.py new/humanfriendly-10.0/humanfriendly/compat.py --- old/humanfriendly-9.2/humanfriendly/compat.py 2020-12-10 01:12:05.000000000 +0100 +++ new/humanfriendly-10.0/humanfriendly/compat.py 2021-09-17 23:40:19.000000000 +0200 @@ -1,7 +1,7 @@ # Human friendly input/output in Python. # # Author: Peter Odding <pe...@peterodding.com> -# Last Change: December 10, 2020 +# Last Change: September 17, 2021 # URL: https://humanfriendly.readthedocs.io """ @@ -56,16 +56,11 @@ 'on_windows', 'unichr', 'unicode', - # This export remains here so as not to break my dozen or so other Python - # projects using 'from humanfriendly.compat import unittest' from good old - # times (when Python 2.6 was still a thing). It will eventually be removed. - 'unittest', 'which', ) # Standard library modules. import sys -import unittest # Differences between Python 2 and 3. try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/humanfriendly/prompts.py new/humanfriendly-10.0/humanfriendly/prompts.py --- old/humanfriendly-9.2/humanfriendly/prompts.py 2021-06-11 12:23:43.000000000 +0200 +++ new/humanfriendly-10.0/humanfriendly/prompts.py 2021-09-17 23:40:19.000000000 +0200 @@ -341,7 +341,11 @@ This function is called by the other functions in this module to enable user friendly prompts. """ - import readline # NOQA + try: + import readline # NOQA + except ImportError: + # might not be available on Windows if pyreadline isn't installed + pass def retry_limit(limit=MAX_ATTEMPTS): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/humanfriendly.egg-info/PKG-INFO new/humanfriendly-10.0/humanfriendly.egg-info/PKG-INFO --- old/humanfriendly-9.2/humanfriendly.egg-info/PKG-INFO 2021-06-11 12:53:09.000000000 +0200 +++ new/humanfriendly-10.0/humanfriendly.egg-info/PKG-INFO 2021-09-17 23:40:38.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: humanfriendly -Version: 9.2 +Version: 10.0 Summary: Human friendly output for text interfaces using Python Home-page: https://humanfriendly.readthedocs.io Author: Peter Odding @@ -9,11 +9,11 @@ Description: humanfriendly: Human friendly input/output in Python ==================================================== - .. image:: https://travis-ci.org/xolox/python-humanfriendly.svg?branch=master - :target: https://travis-ci.org/xolox/python-humanfriendly + .. image:: https://github.com/xolox/python-humanfriendly/actions/workflows/test.yml/badge.svg?branch=master + :target: https://github.com/xolox/python-humanfriendly/actions - .. image:: https://coveralls.io/repos/github/xolox/python-humanfriendly/badge.svg?branch=master - :target: https://coveralls.io/github/xolox/python-humanfriendly?branch=master + .. image:: https://codecov.io/gh/xolox/python-humanfriendly/branch/master/graph/badge.svg?token=jYaj4T74TU + :target: https://codecov.io/gh/xolox/python-humanfriendly The functions and classes in the `humanfriendly` package can be used to make text interfaces more user friendly. Some example features: @@ -27,7 +27,7 @@ - Prompting the user to select a choice from a list of options by typing the option's number or a unique substring of the option. - - Terminal interaction including text styling (ANSI escape sequences), user + - Terminal interaction including text styling (`ANSI escape sequences`_), user friendly rendering of usage messages and querying the terminal for its size. @@ -43,17 +43,25 @@ It's very simple to start using the `humanfriendly` package:: - >>> import humanfriendly - >>> user_input = raw_input("Enter a readable file size: ") - Enter a readable file size: 16G - >>> num_bytes = humanfriendly.parse_size(user_input) - >>> print num_bytes + >>> from humanfriendly import format_size, parse_size + >>> from humanfriendly.prompts import prompt_for_input + >>> user_input = prompt_for_input("Enter a readable file size: ") + + Enter a readable file size: 16G + + >>> num_bytes = parse_size(user_input) + >>> print(num_bytes) 16000000000 - >>> print "You entered:", humanfriendly.format_size(num_bytes) + >>> print("You entered:", format_size(num_bytes)) You entered: 16 GB - >>> print "You entered:", humanfriendly.format_size(num_bytes, binary=True) + >>> print("You entered:", format_size(num_bytes, binary=True)) You entered: 14.9 GiB + To get a demonstration of supported terminal text styles (based on + `ANSI escape sequences`_) you can run the following command:: + + $ humanfriendly --demo + Command line ------------ @@ -158,6 +166,7 @@ .. _#4: https://github.com/xolox/python-humanfriendly/issues/4 .. _#8: https://github.com/xolox/python-humanfriendly/pull/8 .. _#9: https://github.com/xolox/python-humanfriendly/pull/9 + .. _ANSI escape sequences: https://en.wikipedia.org/wiki/ANSI_escape_code .. _changelog: https://humanfriendly.readthedocs.io/en/latest/changelog.html .. _colorama: https://pypi.org/project/colorama .. _format_size(): https://humanfriendly.readthedocs.io/en/latest/#humanfriendly.format_size diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/humanfriendly.egg-info/requires.txt new/humanfriendly-10.0/humanfriendly.egg-info/requires.txt --- old/humanfriendly-9.2/humanfriendly.egg-info/requires.txt 2021-06-11 12:53:09.000000000 +0200 +++ new/humanfriendly-10.0/humanfriendly.egg-info/requires.txt 2021-09-17 23:40:38.000000000 +0200 @@ -2,5 +2,8 @@ [:python_version == "2.7"] monotonic -[:sys_platform == "win32"] +[:sys_platform == "win32" and python_version<"3.8"] pyreadline + +[:sys_platform == "win32" and python_version>="3.8"] +pyreadline3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/setup.cfg new/humanfriendly-10.0/setup.cfg --- old/humanfriendly-9.2/setup.cfg 2021-06-11 12:53:09.000000000 +0200 +++ new/humanfriendly-10.0/setup.cfg 2021-09-17 23:40:38.000000000 +0200 @@ -1,4 +1,4 @@ -[wheel] +[bdist_wheel] universal = 1 [egg_info] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-9.2/setup.py new/humanfriendly-10.0/setup.py --- old/humanfriendly-9.2/setup.py 2021-06-11 12:43:08.000000000 +0200 +++ new/humanfriendly-10.0/setup.py 2021-09-17 23:40:19.000000000 +0200 @@ -3,7 +3,7 @@ # Setup script for the `humanfriendly' package. # # Author: Peter Odding <pe...@peterodding.com> -# Last Change: February 16, 2020 +# Last Change: September 17, 2021 # URL: https://humanfriendly.readthedocs.io """ @@ -49,7 +49,10 @@ if sys.version_info.major == 2: install_requires.append('monotonic') if sys.platform == 'win32': - install_requires.append('pyreadline') + # For details about these two conditional requirements please + # see https://github.com/xolox/python-humanfriendly/pull/45. + install_requires.append('pyreadline ; python_version < "3.8"') + install_requires.append('pyreadline3 ; python_version >= "3.8"') return sorted(install_requires) @@ -57,14 +60,11 @@ """Get the conditional dependencies for wheel distributions.""" extras_require = {} if have_environment_marker_support(): - # Conditional `monotonic' dependency. - expression = ':%s' % ' or '.join([ - 'python_version == "2.7"', - ]) - extras_require[expression] = ['monotonic'] - # Conditional `pyreadline' dependency. - expression = ':sys_platform == "win32"' - extras_require[expression] = 'pyreadline' + # Conditional 'monotonic' dependency. + extras_require[':python_version == "2.7"'] = ['monotonic'] + # Conditional 'pyreadline' or 'pyreadline3' dependency. + extras_require[':sys_platform == "win32" and python_version<"3.8"'] = 'pyreadline' + extras_require[':sys_platform == "win32" and python_version>="3.8"'] = 'pyreadline3' return extras_require