Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 896f3e328862e115f8c407b04d80553f > files > 2

python-argparse-1.2.1-2.mga3.src.rpm

%define module	argparse
%define name	python-%{module}
%define version 1.2.1
%define release %mkrel 2

Summary:	A Python command line parser inspired by optparse
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	http://argparse.googlecode.com/files/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://argparse.python-hosting.com/
Requires:	python >= 2.3
BuildRequires:	python-devel >= 2.3, python-setuptools
BuildArch:	noarch

%description
The argparse module makes writing command line tools in Python easy.
Just briefly describe your command line interface and argparse will
take care of the rest, including:

* parsing the arguments and flags from ``sys.argv``
* converting arg strings into objects for your program
* formatting and printing any help messages
* and much more ... 

For those familiar with the optparse module from the Python standard
library, argparse improves on this module in a number of ways,
including:

* handling positional arguments
* supporting sub-commands
* allowing alternative option prefixes like ``+`` and ``/``
* handling zero-or-more and one-or-more style arguments
* producing more informative usage messages
* providing a much simpler interface for custom types and actions

%files
%doc *.txt doc/*
%py_puresitedir/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
#nothing to do here.

%install
%__python setup.py install --root=%{buildroot} --record=FILE_LIST
%__chmod -R og-w *.txt doc/



%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.2.1-2.mga3
+ Revision: 378469
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Nov 04 2012 neoclust <neoclust> 1.2.1-1.mga3
+ Revision: 313603
- imported package python-argparse