From 5369bc05dd53a5049538af2f40b4f6118f025eea29898228935c132269f12f7b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 15 Feb 2020 07:55:33 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=206.1:=20=20=20-=20Added=20a=20?= =?UTF-8?q?:pypy:`=C3=A2=E2=82=AC=C2=A6`=20role=20for=20easy=20linking=20t?= =?UTF-8?q?o=20packages=20on=20the=20=20=20=20=20Python=20Package=20Index,?= =?UTF-8?q?=20for=20details=20refer=20to=20=20=20=20=20:func:`humanfriendl?= =?UTF-8?q?y.sphinx.pypi=5Frole()`.=20=20=20-=20Wasted=20quite=20a=20bit?= =?UTF-8?q?=20of=20time=20debugging=20a=20MacOS=20failure=20on=20=20=20=20?= =?UTF-8?q?=20Travis=20CI=20caused=20by=20a=20broken=20man`pip`=20installa?= =?UTF-8?q?tion,=20fixed=20by=20=20=20=20=20using=20get-pip.py=20to=20boot?= =?UTF-8?q?strap=20an=20installation=20that=20actually=20=20=20=20=20works?= =?UTF-8?q?=20wink.=20=20=20-=20Enable=20:class:`~humanfriendly.testing.Mo?= =?UTF-8?q?ckedProgram`=20to=20=20=20=20=20customize=20the=20shell=20scrip?= =?UTF-8?q?t=20code=20of=20mocked=20programs.=20This=20was=20=20=20=20=20a?= =?UTF-8?q?dded=20to=20make=20it=20easy=20to=20mock=20a=20program=20that?= =?UTF-8?q?=20is=20expected=20to=20=20=20=20=20generate=20specific=20outpu?= =?UTF-8?q?t=20(I'm=20planning=20to=20use=20this=20in=20the=20=20=20=20=20?= =?UTF-8?q?:pypi:`linux-utils`=20test=20suite).=20=20=20-=20Defined=20=5F?= =?UTF-8?q?=5Fall=5F=5F=20for=20all=20public=20modules=20that=20previously?= =?UTF-8?q?=20lacked=20=20=20=20=20"export=20control"=20and=20decided=20to?= =?UTF-8?q?=20bump=20the=20major=20version=20number=20=20=20=20=20as=20a?= =?UTF-8?q?=20precaution:=20=20=20=20=20-=20These=20changes=20should=20not?= =?UTF-8?q?=20have=20any=20impact=20on=20backwards=20=20=20=20=20=20=20com?= =?UTF-8?q?patibility,=20unless=20I=20forgot=20entries,=20in=20which=20cas?= =?UTF-8?q?e=20=20=20=20=20=20=20callers=20can=20get=20:exc:`~exceptions.I?= =?UTF-8?q?mportError`=20=20=20=20=20=20=20exceptions...=20=20=20=20=20-?= =?UTF-8?q?=20Imports=20of=20public=20modules=20were=20previously=20export?= =?UTF-8?q?ed=20=20=20=20=20=20=20(implicitly)=20and=20this=20pollutes=20c?= =?UTF-8?q?ode=20completion=20suggestions=20=20=20=20=20=20=20which=20in?= =?UTF-8?q?=20turn=20can=20encourage=20bad=20practices=20(not=20importing?= =?UTF-8?q?=20=20=20=20=20=20=20things=20using=20their=20"canonical"=20nam?= =?UTF-8?q?e).=20=20=20=20=20-=20I=20started=20developing=20the=20humanfri?= =?UTF-8?q?endly=20package=20years=20before=20=20=20=20=20=20=20I=20learne?= =?UTF-8?q?d=20about=20the=20value=20of=20defining=20=5F=5Fall=5F=5F=20and?= =?UTF-8?q?=20so=20some=20=20=20=20=20=20=20modules=20lacked=20a=20definit?= =?UTF-8?q?ion=20until=20now.=20I=20decided=20that=20now=20=20=20=20=20=20?= =?UTF-8?q?=20was=20as=20good=20a=20time=20as=20any=20to=20add=20those=20d?= =?UTF-8?q?efinitions=20=20=20=20=20=20=20innocent.=20=20=20-=20Simplified?= =?UTF-8?q?=20the=20headings=20in=20docs/api.rst=20so=20that=20only=20the?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=25 --- humanfriendly-4.18.tar.gz | 3 -- humanfriendly-6.1.tar.gz | 3 ++ python-humanfriendly.changes | 62 ++++++++++++++++++++++++++++++++++++ python-humanfriendly.spec | 5 +-- 4 files changed, 68 insertions(+), 5 deletions(-) delete mode 100644 humanfriendly-4.18.tar.gz create mode 100644 humanfriendly-6.1.tar.gz diff --git a/humanfriendly-4.18.tar.gz b/humanfriendly-4.18.tar.gz deleted file mode 100644 index b1e048e..0000000 --- a/humanfriendly-4.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33ee8ceb63f1db61cce8b5c800c531e1a61023ac5488ccde2ba574a85be00a85 -size 345853 diff --git a/humanfriendly-6.1.tar.gz b/humanfriendly-6.1.tar.gz new file mode 100644 index 0000000..0d9e8b9 --- /dev/null +++ b/humanfriendly-6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b77d1aa8d73b6fe7e8860fa516fbc0e2aa85bff159d7525b0213353817cf1cfc +size 348257 diff --git a/python-humanfriendly.changes b/python-humanfriendly.changes index b4b5771..198e3da 100644 --- a/python-humanfriendly.changes +++ b/python-humanfriendly.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +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. + ------------------------------------------------------------------- Wed Dec 11 08:57:19 UTC 2019 - Tomáš Chvátal diff --git a/python-humanfriendly.spec b/python-humanfriendly.spec index b4b2a54..cf365fa 100644 --- a/python-humanfriendly.spec +++ b/python-humanfriendly.spec @@ -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: 6.1 Release: 0 Summary: Human friendly input/output for text interfaces using Python License: MIT @@ -42,6 +42,7 @@ BuildArch: noarch %if %{with test} BuildRequires: %{python_module capturer >= 2.1} BuildRequires: %{python_module coloredlogs >= 2} +BuildRequires: %{python_module docutils} BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module pytest-cov >= 2.4.0} BuildRequires: %{pythons}