forked from pool/python-humanfriendly
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
1.44.7.tar.gz
Normal file
3
1.44.7.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:902f1c3d764c3650f96994b9fac1a8c8b4c436e3716537c6f608294bbd947650
|
||||
size 208307
|
||||
48
python-humanfriendly.changes
Normal file
48
python-humanfriendly.changes
Normal file
@@ -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
|
||||
|
||||
44
python-humanfriendly.spec
Normal file
44
python-humanfriendly.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user