Accepting request 221040 from home:apersaud
pretty nice python package, would be great, if it could be in d-p-l. This sr is in response to sr 215451. Used a tar-ball and created and edited a spec file via py2pack. OBS-URL: https://build.opensuse.org/request/show/221040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docopt?expand=0&rev=1
This commit is contained in:
commit
9b25345421
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
docopt-0.6.1.tar.gz
Normal file
3
docopt-0.6.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e5e9fc58fc25acd8837f608296007e309a4d54d4402529a12d7b450c14d40317
|
||||||
|
size 26261
|
22
python-docopt.changes
Normal file
22
python-docopt.changes
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 5 17:52:12 UTC 2014 - arun@gmx.de
|
||||||
|
|
||||||
|
- initial commit to d-p-l. Below are the previous Changelog entries
|
||||||
|
* 0.6.1 Bugfix release.
|
||||||
|
* 0.6.0 options_first parameter.
|
||||||
|
Breaking changes: Corrected [options] meaning.
|
||||||
|
argv defaults to None.
|
||||||
|
* 0.5.0 Repeated options/commands are counted or accumulated into a
|
||||||
|
list.
|
||||||
|
* 0.4.2 Bugfix release.
|
||||||
|
* 0.4.0 Option descriptions become optional,
|
||||||
|
support for "--" and "-" commands.
|
||||||
|
* 0.3.0 Support for (sub)commands like "git remote add".
|
||||||
|
Introduce [options] shortcut for any options.
|
||||||
|
Breaking changes: docopt returns dictionary.
|
||||||
|
* 0.2.0 Usage pattern matching. Positional arguments parsing based on
|
||||||
|
usage patterns.
|
||||||
|
Breaking changes: docopt returns namespace (for arguments),
|
||||||
|
not list. Usage pattern is formalized.
|
||||||
|
* 0.1.0 Initial release. Options-parsing only (based on options
|
||||||
|
description).
|
60
python-docopt.spec
Normal file
60
python-docopt.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-docopt
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products 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.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
|
|
||||||
|
Name: python-docopt
|
||||||
|
Version: 0.6.1
|
||||||
|
Release: 0
|
||||||
|
License: MIT
|
||||||
|
Summary: Pythonic argument parser, that will make you smile
|
||||||
|
Url: http://docopt.org
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: https://pypi.python.org/packages/source/d/docopt/docopt-%{version}.tar.gz
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-distribute
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
docopt creates beautiful command-line interfaces.
|
||||||
|
|
||||||
|
Isn't it awesome how optparse and argparse generate help
|
||||||
|
messages based on your code?!
|
||||||
|
|
||||||
|
Hell no! You know what's awesome? It's when the option parser is
|
||||||
|
generated based on the beautiful help message that you write yourself!
|
||||||
|
This way you don't need to write this stupid repeatable parser-code,
|
||||||
|
and instead can write only the help message--the way you want it.
|
||||||
|
|
||||||
|
docopt helps you create most beautiful command-line interfaces
|
||||||
|
easily.
|
||||||
|
|
||||||
|
docopt is tested with Python 2.5, 2.6, 2.7, 3.2, 3.3 and PyPy.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n docopt-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user