From 9b25345421628354f6d4a08dbb4ca20441e6c7a1cfcdf4e3e117d7973641dd92 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 10 Feb 2014 10:19:49 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + docopt-0.6.1.tar.gz | 3 +++ python-docopt.changes | 22 ++++++++++++++++ python-docopt.spec | 60 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 docopt-0.6.1.tar.gz create mode 100644 python-docopt.changes create mode 100644 python-docopt.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/docopt-0.6.1.tar.gz b/docopt-0.6.1.tar.gz new file mode 100644 index 0000000..04b25e5 --- /dev/null +++ b/docopt-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5e9fc58fc25acd8837f608296007e309a4d54d4402529a12d7b450c14d40317 +size 26261 diff --git a/python-docopt.changes b/python-docopt.changes new file mode 100644 index 0000000..80d9b30 --- /dev/null +++ b/python-docopt.changes @@ -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). diff --git a/python-docopt.spec b/python-docopt.spec new file mode 100644 index 0000000..6e4925c --- /dev/null +++ b/python-docopt.spec @@ -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