From b03b87e2cc398419be0b023dce5bd51e65b5e71531e54bc7b271d6762efc2cba Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Fri, 15 Jul 2016 18:12:44 +0000 Subject: [PATCH] Accepting request 407653 from home:okurz Followup to declined request https://build.opensuse.org/request/show/355695: package without _services and based on latest release. Hope this is the right way to do. OBS-URL: https://build.opensuse.org/request/show/407653 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + 1.44.7.tar.gz | 3 +++ python-humanfriendly.changes | 48 ++++++++++++++++++++++++++++++++++++ python-humanfriendly.spec | 44 +++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.44.7.tar.gz create mode 100644 python-humanfriendly.changes create mode 100644 python-humanfriendly.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.44.7.tar.gz b/1.44.7.tar.gz new file mode 100644 index 0000000..cc4dcd4 --- /dev/null +++ b/1.44.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:902f1c3d764c3650f96994b9fac1a8c8b4c436e3716537c6f608294bbd947650 +size 208307 diff --git a/python-humanfriendly.changes b/python-humanfriendly.changes new file mode 100644 index 0000000..95d3833 --- /dev/null +++ b/python-humanfriendly.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Wed Jun 1 20:56:09 UTC 2016 - okurz@suse.com + +- Update to official release 1.44.7 + +Minor improvements to usage message reformatting + +Remove undocumented .strip() from join_lines() +Why I noticed this: It has the potential to eat significant white +space in usage messages that are marked up in reStructuredText syntax. + +Why I decided to change it: The behavior isn't documented and on +second thought I wouldn't expect a function called join_lines() +to strip any and all leading/trailing white space. + +Improve usage message parsing algorithm (also add a proper test) +Refer to test_parse_usage_tricky() for an example of a usage message that +is now parsed correctly but would previously confuse the dumb "parsing" +algorithm in parse_usage(). + +Make usage message parsing a bit more strict +Admittedly this needs a lot more love to make it more robust but +I lack the time to implement this at the moment. Some day soon! :-) + +Unbreak conditional importlib dependency* +* https://travis-ci.org/xolox/python-humanfriendly/builds/110585766 + + Kind of strange that everything worked fine locally. Then again, + I've never used wheel compatible conditional dependencies before + so of course my first attempt was bound to fail in same way :-s. + +Make conditional importlib dependency compatible with wheels* +While running tox tests of another project of mine that uses the +humanfriendly package I noticed a traceback when importing the +humanfriendly package (because importlib was missing). After some +digging I found that tox uses pip to install packages and pip converts +source distributions to wheel distributions before/during installation, +thereby dropping the conditional importlib dependency. + +Fix non-fatal log format error in prompt_for_choice() + +Add humanfriendly.sphinx module + +------------------------------------------------------------------- +Mon Jan 25 09:08:00 UTC 2016 - okurz@suse.de + +- initial package + diff --git a/python-humanfriendly.spec b/python-humanfriendly.spec new file mode 100644 index 0000000..cffa728 --- /dev/null +++ b/python-humanfriendly.spec @@ -0,0 +1,44 @@ +# Copyright (c) 2016 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + + +Name: python-humanfriendly +Version: 1.44.7 +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 +BuildRequires: python-setuptools +BuildArch: noarch + +%description +Human friendly input/output for text interfaces using Python https://humanfriendly.readthedocs.org + +%prep +%setup -q + +%build +python setup.py build + +%install +# TODO properly build docs +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt README.rst +%{python_sitelib} +%{_bindir}/humanfriendly + +%changelog