commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2020-04-23 18:37:11 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.2738 (New) Package is "python-humanfriendly" Thu Apr 23 18:37:11 2020 rev:14 rq:796500 version:8.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2020-03-30 23:04:29.828213901 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.2738/python-humanfriendly.changes 2020-04-23 18:37:20.900880987 +0200 @@ -1,0 +2,5 @@ +Thu Apr 23 11:01:33 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +--- Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.R7Hr0r/_old 2020-04-23 18:37:21.872882847 +0200 +++ /var/tmp/diff_new_pack.R7Hr0r/_new 2020-04-23 18:37:21.876882855 +0200 @@ -24,6 +24,7 @@ %define psuffix %{nil} %bcond_with test %endif +%bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-humanfriendly%{psuffix} Version:8.1 @@ -47,8 +48,10 @@ BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module pytest-cov >= 2.4.0} BuildRequires: %{pythons} +%if %{with python2} BuildRequires: python2-monotonic %endif +%endif %ifpython2 Requires: python-monotonic %endif
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2020-03-30 23:04:14 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.3160 (New) Package is "python-humanfriendly" Mon Mar 30 23:04:14 2020 rev:13 rq:789697 version:8.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2020-02-15 22:25:48.951322557 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.3160/python-humanfriendly.changes 2020-03-30 23:04:29.828213901 +0200 @@ -1,0 +2,51 @@ +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__``. + +--- Old: humanfriendly-6.1.tar.gz New: humanfriendly-8.1.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.hC4Zgv/_old 2020-03-30 23:04:31.276214726 +0200 +++ /var/tmp/diff_new_pack.hC4Zgv/_new 2020-03-30 23:04:31.280214729 +0200 @@ -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 @@ BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module coloredlogs >= 2} BuildRequires: %{python_module docutils} +BuildRequires: %{python_module mock} BuildRequires: %{pyth
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2020-02-15 22:25:23 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.26092 (New) Package is "python-humanfriendly" Sat Feb 15 22:25:23 2020 rev:12 rq:774497 version:6.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2019-12-11 12:15:25.852506370 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.26092/python-humanfriendly.changes 2020-02-15 22:25:48.951322557 +0100 @@ -1,0 +2,62 @@ +Sat Feb 15 08:48:24 CET 2020 - Matej Cepl + +- Update to 6.1: + - Added a :pypy:`...` role for easy linking to packages on the +Python Package Index, for details refer to +:func:`humanfriendly.sphinx.pypi_role()`. + - Wasted quite a bit of time debugging a MacOS failure on +Travis CI caused by a broken man`pip` installation, fixed by +using get-pip.py to bootstrap an installation that actually +works wink. + - Enable :class:`~humanfriendly.testing.MockedProgram` to +customize the shell script code of mocked programs. This was +added to make it easy to mock a program that is expected to +generate specific output (I'm planning to use this in the +:pypi:`linux-utils` test suite). + - Defined __all__ for all public modules that previously lacked +"export control" and decided to bump the major version number +as a precaution: +- These changes should not have any impact on backwards + compatibility, unless I forgot entries, in which case + callers can get :exc:`~exceptions.ImportError` + exceptions... +- Imports of public modules were previously exported + (implicitly) and this pollutes code completion suggestions + which in turn can encourage bad practices (not importing + things using their "canonical" name). +- I started developing the humanfriendly package years before + I learned about the value of defining __all__ and so some + modules lacked a definition until now. I decided that now + was as good a time as any to add those definitions + innocent. + - Simplified the headings in docs/api.rst so that only the +module names remain. This was done because Sphinx doesn't +support nested links in HTML output and thus generated really +weird "Table of Contents" listings. + - Fixed the reStructuredText references in the documentation of +:func:`~humanfriendly.prompts.prompt_for_choice()`. This +function is imported from :mod:`humanfriendly.prompts` to +:mod:`humanfriendly` (for backwards compatibility) where it +can't use relative references to refer to the other functions +in the :mod:`humanfriendly.prompts` module. + - Embedded quite a few Python API references into recent +changelog entries, just because I could (I heart what +hyperlinks can do for the usability of technical +documentation, it gives a lot more context). + - Added custom :man:`...` role for easy linking to Linux manual +pages to the :mod:`humanfriendly.sphinx` module. + - Changed rendering of pretty tables to expand tab characters +to spaces: Until now pretty tables did not take the variable +width of tab characters into account which resulted in tables +whose "line drawing characters" were visually misaligned. +Tabs are now expanded to spaces using str.expandtabs(). + - Stop testing on Python 2.6 and drop official support. The +world (including Travis CI) has moved on and preserving +Python 2.6 compatibility was clearly starting to drag the +project down... + - I decided to bump the major version number because each of +these changes can be considered backwards incompatible in one +way or another and version numbers are cheap anyway so there +stuck_out_tongue. + +--- Old: humanfriendly-4.18.tar.gz New: humanfriendly-6.1.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.YMwhWM/_old 2020-02-15 22:25:49.531322871 +0100 +++ /var/tmp/diff_new_pack.YMwhWM/_new 2020-02-15 22:25:49.531322871 +0100 @@ -1,7 +1,7 @@ # # spec file for package python # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-humanfriendly%{psuffix} -Version:4.18 +Version:
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2019-12-11 12:15:05 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.4691 (New) Package is "python-humanfriendly" Wed Dec 11 12:15:05 2019 rev:11 rq:755758 version:4.18 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2019-03-29 20:43:38.358680591 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.4691/python-humanfriendly.changes 2019-12-11 12:15:25.852506370 +0100 @@ -1,0 +2,5 @@ +Wed Dec 11 08:57:19 UTC 2019 - Tomáš Chvátal + +- Require full python stack for sqlite module + +--- Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.w07kGw/_old 2019-12-11 12:15:29.156505440 +0100 +++ /var/tmp/diff_new_pack.w07kGw/_new 2019-12-11 12:15:29.168505437 +0100 @@ -1,7 +1,7 @@ # # spec file for package python # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,12 +30,12 @@ Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT -Group: Development/Languages/Python URL:https://github.com/xolox/python-humanfriendly Source: https://files.pythonhosted.org/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -44,6 +44,7 @@ BuildRequires: %{python_module coloredlogs >= 2} BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module pytest-cov >= 2.4.0} +BuildRequires: %{pythons} BuildRequires: python2-monotonic %endif %ifpython2
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2019-03-29 20:43:35 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.25356 (New) Package is "python-humanfriendly" Fri Mar 29 20:43:35 2019 rev:10 rq:689802 version:4.18 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2019-03-13 09:14:44.575389751 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.25356/python-humanfriendly.changes 2019-03-29 20:43:38.358680591 +0100 @@ -1,0 +2,5 @@ +Fri Mar 29 10:46:17 UTC 2019 - Tomáš Chvátal + +- Simplify the multibuild conditioning and name creation + +--- Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.k68gCU/_old 2019-03-29 20:43:39.234680769 +0100 +++ /var/tmp/diff_new_pack.k68gCU/_new 2019-03-29 20:43:39.242680770 +0100 @@ -1,5 +1,5 @@ # -# spec file for package python-humanfriendly +# spec file for package python # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -18,16 +18,14 @@ %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" +%define psuffix test %bcond_without test %else +%define psuffix %{nil} %bcond_with test %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%if %{with test} -Name: python-humanfriendly-%{flavor} -%else -Name: python-humanfriendly -%endif +Name: python-humanfriendly%{psuffix} Version:4.18 Release:0 Summary:Human friendly input/output for text interfaces using Python @@ -85,23 +83,21 @@ } %endif +%if %{with test} +%check +%pytest humanfriendly/tests.py +%endif + %if !%{with test} %post %python_install_alternative humanfriendly %postun %python_uninstall_alternative humanfriendly -%endif - -%if %{with test} -%check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} humanfriendly/tests.py -v -%endif %files %{python_files} %license LICENSE.txt %doc README.rst -%if !%{with test} %python_alternative %{_bindir}/humanfriendly %{python_sitelib}/humanfriendly %{python_sitelib}/humanfriendly-%{version}-py*.egg-info
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2019-03-13 09:14:40 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.28833 (New) Package is "python-humanfriendly" Wed Mar 13 09:14:40 2019 rev:9 rq:684406 version:4.18 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2019-02-25 17:48:55.602819548 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.28833/python-humanfriendly.changes 2019-03-13 09:14:44.575389751 +0100 @@ -1,0 +2,7 @@ +Tue Mar 12 16:03:38 UTC 2019 - Tomáš Chvátal + +- Update to 4.18: + * Added humanfriendly.text.generate_slug() function. + * Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6). + +--- Old: humanfriendly-4.17.tar.gz New: humanfriendly-4.18.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.JrLaQ5/_old 2019-03-13 09:14:46.967389504 +0100 +++ /var/tmp/diff_new_pack.JrLaQ5/_new 2019-03-13 09:14:47.003389501 +0100 @@ -28,7 +28,7 @@ %else Name: python-humanfriendly %endif -Version:4.17 +Version:4.18 Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT ++ humanfriendly-4.17.tar.gz -> humanfriendly-4.18.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-4.17/CHANGELOG.rst new/humanfriendly-4.18/CHANGELOG.rst --- old/humanfriendly-4.17/CHANGELOG.rst2018-10-20 07:21:01.0 +0200 +++ new/humanfriendly-4.18/CHANGELOG.rst2019-02-21 21:22:00.0 +0100 @@ -11,6 +11,19 @@ .. _Keep a Changelog: http://keepachangelog.com/ .. _semantic versioning: http://semver.org/ +`Release 4.18`_ (2019-02-21) + + +- Added ``humanfriendly.text.generate_slug()`` function. + +- Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6). + +- Fought Travis CI (for way too long) in order to restore Python 2.6, 2.7, 3.4, + 3.5, 3.6 and 3.7 compatibility in the Travis CI configuration (unrelated to + the ``humanfriendly`` package itself). + +.. _Release 4.18: https://github.com/xolox/python-humanfriendly/compare/4.17...4.18 + `Release 4.17`_ (2018-10-20) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-4.17/PKG-INFO new/humanfriendly-4.18/PKG-INFO --- old/humanfriendly-4.17/PKG-INFO 2018-10-20 07:21:14.0 +0200 +++ new/humanfriendly-4.18/PKG-INFO 2019-02-21 21:22:20.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: humanfriendly -Version: 4.17 +Version: 4.18 Summary: Human friendly output for text interfaces using Python Home-page: https://humanfriendly.readthedocs.io Author: Peter Odding diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-4.17/constraints.txt new/humanfriendly-4.18/constraints.txt --- old/humanfriendly-4.17/constraints.txt 2018-10-20 07:21:01.0 +0200 +++ new/humanfriendly-4.18/constraints.txt 2019-02-21 21:22:00.0 +0100 @@ -20,6 +20,10 @@ # https://docs.pytest.org/en/latest/changelog.html#pytest-3-3-0-2017-11-23 pytest < 3.3 ; python_version < '2.7' +# pytest-cov 2.6.0 drops Python 3.4 compatibility: +# https://pytest-cov.readthedocs.io/en/latest/changelog.html +pytest-cov < 2.6.0 ; python_version < '3.5' + # attrs 16.0.0 (used by pytest) drops Python 2.6 compatibility: # http://www.attrs.org/en/stable/changelog.html attrs < 16.0.0 ; python_version < '2.7' @@ -27,3 +31,6 @@ # pycparser < 2.19 drops Python 2.6 compatibility: # https://github.com/eliben/pycparser/blob/master/CHANGES pycparser < 2.19 ; python_version < '2.7' + +# idna 2.8 drops Python 2.6 compatibility (not documented). +idna < 2.8 ; python_version < '2.7' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-4.17/humanfriendly/__init__.py new/humanfriendly-4.18/humanfriendly/__init__.py --- old/humanfriendly-4.17/humanfriendly/__init__.py2018-10-20 07:21:01.0 +0200 +++ new/humanfriendly-4.18/humanfriendly/__init__.py2019-02-21 21:22:00.0 +0100 @@ -1,7 +1,7 @@ # Human friendly input/output in Python. # # Author: Peter Odding -# Last Change: October 20, 2018 +# Last Change: February 21, 2019 # URL: https://humanfriendly.readthedocs.io """The main module of the `humanf
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2019-02-25 17:48:50 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.28833 (New) Package is "python-humanfriendly" Mon Feb 25 17:48:50 2019 rev:8 rq:670326 version:4.17 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2018-08-31 10:45:05.563249223 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.28833/python-humanfriendly.changes 2019-02-25 17:48:55.602819548 +0100 @@ -1,0 +2,6 @@ +Thu Jan 31 11:32:14 UTC 2019 - Tomáš Chvátal + +- Update to 4.17: + * compatibility with python 3.7 + +--- Old: humanfriendly-4.16.1.tar.gz New: humanfriendly-4.17.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.iDq5H6/_old 2019-02-25 17:48:56.202819301 +0100 +++ /var/tmp/diff_new_pack.iDq5H6/_new 2019-02-25 17:48:56.206819300 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-humanfriendly # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,7 +28,7 @@ %else Name: python-humanfriendly %endif -Version:4.16.1 +Version:4.17 Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT ++ humanfriendly-4.16.1.tar.gz -> humanfriendly-4.17.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/humanfriendly-4.16.1/CHANGELOG.rst new/humanfriendly-4.17/CHANGELOG.rst --- old/humanfriendly-4.16.1/CHANGELOG.rst 2018-07-21 22:28:58.0 +0200 +++ new/humanfriendly-4.17/CHANGELOG.rst2018-10-20 07:21:01.0 +0200 @@ -11,6 +11,24 @@ .. _Keep a Changelog: http://keepachangelog.com/ .. _semantic versioning: http://semver.org/ +`Release 4.17`_ (2018-10-20) + + +- Add Python 3.7 to versions tested on Travis CI and using ``tox`` and document + compatibility with Python 3.7. + +- Add rudimentary caching decorator for functions: + + Over the years I've used several variations on this function in multiple + projects and I'd like to consolidate all of those implementations into a + single one that's properly tested and documented. + + Due to the simplicity and lack of external dependencies it seemed kind of + fitting to include this in the ``humanfriendly`` package, which has become + a form of extended standard library for my Python projects 😇. + +.. _Release 4.17: https://github.com/xolox/python-humanfriendly/compare/4.16.1...4.17 + `Release 4.16.1`_ (2018-07-21) -- @@ -61,9 +79,9 @@ for bold, for italic, for underline, for colors, etc. to text with ANSI escape sequences. -I'm still working on that awesome new project, this functionality was born -there but seemed like a useful addition to the ``humanfriendly`` package, given -the flexibility that this provides 😇. +I'm still working on that awesome new project (update: see chat-archive_), this +functionality was born there but seemed like a useful addition to the +``humanfriendly`` package, given the flexibility that this provides 😇. .. _Release 4.15: https://github.com/xolox/python-humanfriendly/compare/4.14...4.15 @@ -80,12 +98,13 @@ Support for *italic* text rendering on the terminal. -I'm working on an awesome new project that's almost ready to publish, but then -I noticed that I couldn't render italic text on the terminal using the -humanfriendly package. I checked and sure enough my terminal supported it just -fine, so I didn't see any reason not to fix this now 😇. +I'm working on an awesome new project (update: see chat-archive_) that's almost +ready to publish, but then I noticed that I couldn't render italic text on the +terminal using the humanfriendly package. I checked and sure enough my terminal +supported it just fine, so I didn't see any reason not to fix this now 😇. .. _Release 4.13: https://github.com/xolox/python-humanfriendly/compare/4.12.1...4.13 +.. _chat-archive: htt
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2018-08-31 10:45:00 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Fri Aug 31 10:45:00 2018 rev:7 rq:632099 version:4.16.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2018-08-22 14:20:47.154413192 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2018-08-31 10:45:05.563249223 +0200 @@ -1,0 +2,5 @@ +Wed Aug 29 08:22:29 UTC 2018 - tchva...@suse.com + +- Move the Name declaration above lua code to work on Leap 42.3 + +--- Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.xL9o8x/_old 2018-08-31 10:45:06.415250249 +0200 +++ /var/tmp/diff_new_pack.xL9o8x/_new 2018-08-31 10:45:06.415250249 +0200 @@ -23,6 +23,11 @@ %bcond_with test %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if %{with test} +Name: python-humanfriendly-%{flavor} +%else +Name: python-humanfriendly +%endif Version:4.16.1 Release:0 Summary:Human friendly input/output for text interfaces using Python @@ -37,11 +42,6 @@ Requires(postun): update-alternatives BuildArch: noarch %if %{with test} -Name: python-humanfriendly-%{flavor} -%else -Name: python-humanfriendly -%endif -%if %{with test} BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module coloredlogs >= 2} BuildRequires: %{python_module pytest >= 3.0.7}
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2018-08-22 14:19:59 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Wed Aug 22 14:19:59 2018 rev:6 rq:630720 version:4.16.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2018-08-18 00:06:48.227560487 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2018-08-22 14:20:47.154413192 +0200 @@ -1,0 +2,19 @@ +Fri Aug 17 13:50:03 UTC 2018 - tchva...@suse.com + +- Update to 4.16.1: + * Added humanfriendly.text.compact_empty_lines() function. + * Enable optional html_to_ansi(data[, callback]) argument. + * Added a code sample and screenshot to the HTMLConverter documentation. + * Emit vertical whitespace for block tags like , and and post-process the generated output in __call__() to compact empty lines. + * Don’t pre-process preformatted text using the user defined text callback. + * Improve robustness against malformed HTML (previously an IndexError would be raised when a closing tag was encountered without a corresponding opening tag). + * Emit an ANSI reset code when HTMLConverter.close() is called and a style is still active (improves robustness against malformed HTML). + * Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color. + * Support for italic text rendering on the terminal. + * Make format_timespan() accept datetime.timedelta objects (fixes #27). + * Add license key to setup.py script (pointed out to me in coloredlogs pull request #53). + * Added the Timer.sleep() method to sleep “no more than” the given number of seconds. + * Added the format_rst_table() function to render RST (reStructuredText) tables. +- Enable and make sure tests are run + +--- Old: humanfriendly-4.8.tar.gz New: _multibuild humanfriendly-4.16.1.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.PvPQtc/_old 2018-08-22 14:20:47.650414367 +0200 +++ /var/tmp/diff_new_pack.PvPQtc/_new 2018-08-22 14:20:47.654414376 +0200 @@ -16,32 +16,41 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Dependency loop with colorlogs +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%else %bcond_with test -Name: python-humanfriendly -Version:4.8 +%endif +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Version:4.16.1 Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT Group: Development/Languages/Python -Url:https://github.com/xolox/humanfriendly +URL:https://github.com/xolox/python-humanfriendly Source: https://files.pythonhosted.org/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-monotonic BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch %if %{with test} +Name: python-humanfriendly-%{flavor} +%else +Name: python-humanfriendly +%endif +%if %{with test} +BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module coloredlogs >= 2} +BuildRequires: %{python_module pytest >= 3.0.7} +BuildRequires: %{python_module pytest-cov >= 2.4.0} +BuildRequires: python2-monotonic %endif %ifpython2 Requires: python-monotonic %endif -BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives - %python_subpackages %description @@ -65,32 +74,37 @@ %python_build %install +%if !%{with test} %python_install %python_clone -a %{buildroot}%{_bindir}/humanfriendly %{python_expand chmod a+x %{buildroot}%{$python_sitelib}/humanfriendly/tests.py -sed -i "s|#!/usr/bin/env python|#!%__$python|" %{buildroot}%{$python_sitelib}/humanfriendly/tests.py +sed -i "s|#!%{_bindir}/env python|#!%__$python|" %{buildroot}%{$python_sitelib}/humanfriendly/tests.py $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/humanfriendly/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/humanfriendly/ %fdupes %{buildroot}%{$python_sitelib} } +%endif +%if !%{with test} %post
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2018-08-18 00:06:47 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Sat Aug 18 00:06:47 2018 rev:5 rq:629947 version:4.8 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2018-02-09 15:52:02.221713860 +0100 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2018-08-18 00:06:48.227560487 +0200 @@ -1,0 +2,8 @@ +Tue Aug 14 09:04:56 UTC 2018 - m...@suse.com + +- Submission to SUSE:SLE-12-SP3:Update:PubClouds + + This commit tracks the submission for fate#326575 + and bsc#1103542 + +--- Other differences: --
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2018-02-09 15:51:56 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Fri Feb 9 15:51:56 2018 rev:4 rq:574413 version:4.8 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2017-09-11 16:18:02.428731047 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2018-02-09 15:52:02.221713860 +0100 @@ -1,0 +2,103 @@ +Thu Feb 8 21:59:46 UTC 2018 - adrian.glaub...@suse.com + +- Update to version 4.8 + * Add coerce_pattern() function + * Improve code consistency +- From version 4.7 + * Support background colors and 256 color mode + * Tests for output(), message() and warning() +- From version 4.6 + * Support for bright terminal colors +- From version 4.5 + * Extend byte ranges, add RAM output to command line +- From version 4.4.2 + * Reduce clock source sensitivity* (MacOS on Travis CI) + * Fix `Double requirement given' error + * Try to fix Python 2.6 tests on Travis CI + * Change Sphinx documentation theme + * Bump copyright + * Try to enable MacOS builds on Travis CI + * Fix ImportError exception on Windows +- From version 4.4.1 + * Include docs to sdist + * PEP-8 fail + * Change cli test from 1.05 mm to 1.05 km + * Another correction to test_cli + * Corrected CLI format_length test + * Aim for more CLI coverage + * Add CLI tests for format-byte + * Added size test cases + * Size 1z is now valid +- From version 4.4 + * Add touch() to __all__ + * Make touch() create intermediate directories + * Add humanfriendly.testing.touch() function +- From version 4.3 + * Don't log duplicate output in run_cli() +- From version 4.2 + * Reconfigure logging in run_cli() +- From version 4.1 + * Always log stderr as well in run_cli() +- From version 4.0 + * Improve humanfriendly.testing.run_cli() (backwards incompatible) +- From version 3.8 + * Make it easy to mock the $HOME directory +- From version 3.7 + * Customizable skipping of tests + * Added .pyc to .gitignore + * Added Exa, Zetta & Yotta prefixes and tests + * Added -S --format-bytes option to use powers of 1024 rather than 1000 from command line. +- From version 3.6.1 + * Improve robustness of Patched{Attribute,Item} +- From version 3.6 + * Make retry limit configurable + * Refactor makefile and Travis CI configuration +- From version 3.5 + * Bug fix for TestCase.assertRaises() + * Enhance TestCase.assertRaises() +- From version 3.4.1 + * Bug fix for Python 3 syntax incompatibility +- From version 3.4 + * Promote command line test function to public API +- From version 3.3 + * Add humanfriendly.testing module (unittest helpers) + * Add humanfriendly.text.random_string() function + * Define humanfriendly.text.__all__ + * Reorder functions in humanfriendly.text alphabetically +- From version 3.2 + * Auto-encode terminal output to avoid encoding errors + * Remove unused import +- From version 3.1 + * Improve usage message parsing and rendering +- From version 3.0 + * Add Python 3.6 to tested versions + * Silence flake8 complaints + * Add min, mins tests + * Support min, mins abbreviations for minutes +- From version 2.4 + * Restore Python 3 compatibility + * Make usage() and show_pager() more user friendly + * Remove redundant :py: prefixes in docstrings + * Improve docstrings in setup.py +- From version 2.3.2 + * Bug fix: Don't hard code conditional dependencies in wheels +- From version 2.3.1 + * Fix parse_usage() tripping up on commas in option labels + * Break test suite to reproduce parse_usage() bug +- From version 2.3 + * Switch to monotonic clock for timers + * Bump copyright + * Minor improvements to setup script + * Improve intersphinx references + * s/readthedocs.org/readthedocs.io/g +- From version 2.2.1 + * Fix timers being awkward as context managers + * Reproduce timers being awkward as context managers + * Minor improvements to reStructuredText in docstrings +- From version 2.2 + * Fix parse_date() choking on Unicode strings + * Reproduce parse_date() bug in test suite + * Fix flake8 warning + * Only use readline hints in prompts when stdin is tty + +--- Old: humanfriendly-4.4.1.tar.gz New: humanfriendly-4.8.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.WvfYGp/_old 2018-02-09 15:52:03.501667888 +0100 +++ /var/tmp/diff_new_pack.WvfYGp/_new 2018-02-09 15:52:03.505667744 +0100 @@ -1,7 +1,7 @@ #
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2017-09-11 16:17:49 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Mon Sep 11 16:17:49 2017 rev:3 rq:521725 version:4.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2016-10-13 11:31:01.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2017-09-11 16:18:02.428731047 +0200 @@ -1,0 +2,7 @@ +Wed Sep 6 16:36:13 UTC 2017 - toddrme2...@gmail.com + +- Implement single-spec version. +- Update to version 4.4.1 + * No changelog + +--- Old: humanfriendly-2.1.tar.gz New: humanfriendly-4.4.1.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.5j0j1p/_old 2017-09-11 16:18:03.412592878 +0200 +++ /var/tmp/diff_new_pack.5j0j1p/_new 2017-09-11 16:18:03.412592878 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-humanfriendly # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,33 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Dependency loop with colorlogs +%bcond_with test Name: python-humanfriendly -Version:2.1 +Version:4.4.1 Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT Group: Development/Languages/Python -Url:https://github.com/xolox/%{name} -Source: https://pypi.io/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url:https://github.com/xolox/humanfriendly +Source: https://files.pythonhosted.org/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-monotonic +%if %{with test} +BuildRequires: %{python_module coloredlogs >= 2} +%endif +%ifpython2 +Requires: python-monotonic +%endif BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%python_subpackages %description The functions and classes in the humanfriendly package can be used to make @@ -46,17 +62,35 @@ %setup -q -n humanfriendly-%{version} %build -python setup.py build +%python_build %install -# TODO properly build docs -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/humanfriendly +%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/humanfriendly/tests.py +sed -i "s|#!/usr/bin/env python|#!%__$python|" %{buildroot}%{$python_sitelib}/humanfriendly/tests.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/humanfriendly/ +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/humanfriendly/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%post +%python_install_alternative humanfriendly + +%postun +%python_uninstall_alternative humanfriendly + +%if %{with test} +%check +%python_exec setup.py test +popd +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt README.rst -%{_bindir}/humanfriendly +%python_alternative %{_bindir}/humanfriendly %{python_sitelib}/humanfriendly -%{python_sitelib}/humanfriendly-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/humanfriendly-%{version}-py*.egg-info %changelog ++ humanfriendly-2.1.tar.gz -> humanfriendly-4.4.1.tar.gz ++ 3049 lines of diff (skipped)
commit python-humanfriendly for openSUSE:Factory
Hello community, here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2016-10-13 11:31:00 Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old) and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New) Package is "python-humanfriendly" Changes: --- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2016-09-21 18:47:11.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes 2016-10-13 11:31:01.0 +0200 @@ -1,0 +2,29 @@ +Mon Oct 10 19:21:56 UTC 2016 - mar...@gmx.de + +- Update to version 2.1 + * Release 2.1: Support for sanitizing terminal output + * Support for sanitizing terminal output + * Merge #12: Update README.rst for new unit behaviour + * Update README.rst for new unit behaviour + * Release 2.0: Proper support for IEEE 1541 definitions of units? (fixes #4, merges #8 and #9) + * Proper support for IEEE 1541 definitions of units? + * Merge #9: Add note about IEEE 1541 definitions of units + * Merge #8: Allow correct behavior of 'parse_size' and 'format_size' + * Stop clearing coverage data on Travis CI :-) + * Release 1.44.9 (fixes #10 and #11) + * Restore Python 2.6 compatibility (#10 and #11) + * Resolve timespan formatting issues (#10 and #11) + * Reproduce timespan formatting issues reported in #10 and #11 + * Refactor makefile, switch to py.test, wheel support, etc. + * Release 1.44.8 (fixes #7) + * Don't test tags on Travis CI + * Fix issue #7 + * Reproduce issue #7 in test suite + * Minor improvements to setup script + * Add note about IEEE 1541 definitions of units + * Added unit tests + * Implemented correct handling of prefixes based on IEEE 1540 +- Fix source url +- Minor specfile cleanup + +--- Old: 1.44.7.tar.gz New: humanfriendly-2.1.tar.gz Other differences: -- ++ python-humanfriendly.spec ++ --- /var/tmp/diff_new_pack.Patw2Q/_old 2016-10-13 11:31:02.0 +0200 +++ /var/tmp/diff_new_pack.Patw2Q/_new 2016-10-13 11:31:02.0 +0200 @@ -1,3 +1,6 @@ +# +# spec file for package python-humanfriendly +# # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties @@ -9,24 +12,38 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + Name: python-humanfriendly -Version:1.44.7 +Version:2.1 Release:0 Summary:Human friendly input/output for text interfaces using Python License:MIT Group: Development/Languages/Python -Source: https://github.com/xolox/%{name}/archive/%{version}.tar.gz Url:https://github.com/xolox/%{name} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: https://pypi.io/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description -Human friendly input/output for text interfaces using Python https://humanfriendly.readthedocs.org +The functions and classes in the humanfriendly package can be used to make +text interfaces more user friendly. + + Some example features: + * Parsing and formatting numbers, file sizes, pathnames and timespans in +simple, human friendly formats. + * Easy to use timers for long running operations, with human friendly +formatting of the resulting timespans. + * 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 +friendly rendering of usage messages and querying the terminal for its size. %prep -%setup -q +%setup -q -n humanfriendly-%{version} %build python setup.py build @@ -38,7 +55,8 @@ %files %defattr(-,root,root,-) %doc LICENSE.txt README.rst -%{python_sitelib} %{_bindir}/humanfriendly +%{python_sitelib}/humanfriendly +%{python_sitelib}/humanfriendly-%{version}-py%{py_ver}.egg-info %changelog