From e4f8cf45b6d340095c10096ee5f45c2a8ecbcc044358f7c4516eab2cabd04751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 30 Mar 2020 10:01:36 +0000 Subject: [PATCH] Accepting request 789694 from home:mcalabkova:branches:devel:languages:python - Update to 8.1 * Make it possible to opt out of the output capturing that :func:`humanfriendly.testing.run_cli()` sets up by default. * Improve feature parity between :class:`humanfriendly.testing.CaptureOutput` and my :pypi:`capturer` package to the point where most of the :pypi:`humanfriendly` test suite can now run without :pypi:`capturer`. * Refactored the test suite to import all names separately instead of referring to identifiers via their modules (my preferences have changed since this code was written a long time ago). * Adopt :func:`functools.wraps()` to make decorator functions more robust. * Make the :class:`~humanfriendly.terminal.spinners.Spinner` class more customizable. The interval at which spinners are updated and the characters used to draw the animation of spinners can now be customized by callers. This was triggered by `executor issue #2`_. * Improve test skipping based on exception types. * The "deprecated imports" feature provided by :mod:`humanfriendly.deprecation` has been adopted to clean up the maze of (almost but not quite) cyclic import dependencies between modules. * HTML to ANSI functionality has been extracted to a new :mod:`humanfriendly.terminal.html` module. * Support for spinners has been extracted to a new :mod:`humanfriendly.terminal.spinners` module. * The use of positional arguments to initialize :class:`~humanfriendly.terminal.spinners.Spinner` objects has been deprecated using the new :func:`humanfriendly.deprecation.deprecated_args()` decorator function. * Added the :func:`humanfriendly.deprecation.deprecated_args()` decorator function which makes it easy to switch from positional arguments to keyword arguments without dropping backwards compatibility. * Accept pluralized disk size units (`#26`_). I'm not claiming this is a full OBS-URL: https://build.opensuse.org/request/show/789694 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=28 --- humanfriendly-6.1.tar.gz | 3 --- humanfriendly-8.1.tar.gz | 3 +++ python-humanfriendly.changes | 51 ++++++++++++++++++++++++++++++++++++ python-humanfriendly.spec | 3 ++- 4 files changed, 56 insertions(+), 4 deletions(-) delete mode 100644 humanfriendly-6.1.tar.gz create mode 100644 humanfriendly-8.1.tar.gz diff --git a/humanfriendly-6.1.tar.gz b/humanfriendly-6.1.tar.gz deleted file mode 100644 index 0d9e8b9..0000000 --- a/humanfriendly-6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b77d1aa8d73b6fe7e8860fa516fbc0e2aa85bff159d7525b0213353817cf1cfc -size 348257 diff --git a/humanfriendly-8.1.tar.gz b/humanfriendly-8.1.tar.gz new file mode 100644 index 0000000..4e35681 --- /dev/null +++ b/humanfriendly-8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25c2108a45cfd1e8fbe9cdb30b825d34ef5d5675c8e11e4775c9aedbfb0bdee2 +size 356388 diff --git a/python-humanfriendly.changes b/python-humanfriendly.changes index 5ce01e5..74b3563 100644 --- a/python-humanfriendly.changes +++ b/python-humanfriendly.changes @@ -1,3 +1,54 @@ +------------------------------------------------------------------- +Mon Mar 30 09:38:31 UTC 2020 - Marketa Calabkova + +- Update to 8.1 + * Make it possible to opt out of the output capturing that + :func:`humanfriendly.testing.run_cli()` sets up by default. + * Improve feature parity between :class:`humanfriendly.testing.CaptureOutput` + and my :pypi:`capturer` package to the point where most of the + :pypi:`humanfriendly` test suite can now run without :pypi:`capturer`. + * Refactored the test suite to import all names separately instead of referring + to identifiers via their modules (my preferences have changed since this code + was written a long time ago). + * Adopt :func:`functools.wraps()` to make decorator functions more robust. + * Make the :class:`~humanfriendly.terminal.spinners.Spinner` class more + customizable. The interval at which spinners are updated and the characters + used to draw the animation of spinners can now be customized by callers. + This was triggered by `executor issue #2`_. + * Improve test skipping based on exception types. + * The "deprecated imports" feature provided by :mod:`humanfriendly.deprecation` + has been adopted to clean up the maze of (almost but not quite) cyclic import + dependencies between modules. + * HTML to ANSI functionality has been extracted to a new + :mod:`humanfriendly.terminal.html` module. + * Support for spinners has been extracted to a new + :mod:`humanfriendly.terminal.spinners` module. + * The use of positional arguments to initialize + :class:`~humanfriendly.terminal.spinners.Spinner` objects has been deprecated + using the new :func:`humanfriendly.deprecation.deprecated_args()` decorator + function. + * Added the :func:`humanfriendly.deprecation.deprecated_args()` decorator function + which makes it easy to switch from positional arguments to keyword arguments + without dropping backwards compatibility. + * Accept pluralized disk size units (`#26`_). I'm not claiming this is a full + solution to the problem, far from it. It does lessen the pain a bit (IMHO). + * Make sure the selected pager is available before trying to run it. While + testing :pypi:`humanfriendly` on Windows 10 I noticed that ``humanfriendly + *-help`` resulted in nothing but a traceback, because :man:`less` wasn't + available. That's not human friendly at all 😕 (even if it is Windows 😈). + * Merge pull request `#24`_: Fix bug in :func:`~humanfriendly.parse_length()` that rounded floats. + * Merge pull request `#32`_: Update hyperlinks in readme. + * Merge pull request `#33`_: Drop support for Python 2.6 and 3.0-3.4 + * Merge pull request `#35`_: SVG badge in readme. + * Merge pull request `#36`_: Add support for nanoseconds and microseconds time units + * Fixed :func:`~humanfriendly.tables.format_rst_table()` omission from + ``humanfriendly.tables.__all__``. + * Start testing on Python 3.8 and 3.9-dev. + * Emit an ANSI reset code when :func:`humanfriendly.terminal.html.HTMLConverter.close()` + * Added the :func:`humanfriendly.terminal.html_to_ansi()` function which is a + * Added ``humanfriendly.testing.TestCase.assertRaises()`` enhancements. + * Define ``humanfriendly.text.__all__``. + ------------------------------------------------------------------- Sat Feb 15 08:48:24 CET 2020 - Matej Cepl diff --git a/python-humanfriendly.spec b/python-humanfriendly.spec index cf365fa..80b105e 100644 --- a/python-humanfriendly.spec +++ b/python-humanfriendly.spec @@ -26,7 +26,7 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-humanfriendly%{psuffix} -Version: 6.1 +Version: 8.1 Release: 0 Summary: Human friendly input/output for text interfaces using Python License: MIT @@ -43,6 +43,7 @@ BuildArch: noarch BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module coloredlogs >= 2} BuildRequires: %{python_module docutils} +BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module pytest-cov >= 2.4.0} BuildRequires: %{pythons}