rpms/python-argparse/devel import.log, NONE, 1.1 python-argparse.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Terje Røsten terjeros at fedoraproject.org
Wed Feb 11 18:09:24 UTC 2009


Author: terjeros

Update of /cvs/extras/rpms/python-argparse/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14374/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log python-argparse.spec 
Log Message:
Importing python-argparse.




--- NEW FILE import.log ---
python-argparse-0_8_0-2_fc10:HEAD:python-argparse-0.8.0-2.fc10.src.rpm:1234375696


--- NEW FILE python-argparse.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
%define oname  argparse

Summary:       Optparse inspired command line parser for Python
Name:          python-argparse
Version:       0.8.0
Release:       2%{?dist}
License:       BSD
Group:         Development/Languages
URL:           http://argparse.python-hosting.com/
Source0:       http://pypi.python.org/packages/source/a/%{oname}/%{oname}-%{version}.zip
BuildRequires: python-setuptools-devel dos2unix
BuildArch:     noarch
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description

The argparse module is an optparse-inspired command line parser that
improves on optparse by:
 * handling both optional and positional arguments
 * supporting parsers that dispatch to sub-parsers
 * producing more informative usage messages
 * supporting actions that consume any number of command-line args
 * allowing types and actions to be specified with simple callables 
    instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS 

as well as including a number of other more minor improvements on the
optparse API.

%prep
%setup -q -n %{oname}-%{version}
dos2unix -k README.txt

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%check
%{__python} test_%{oname}.py

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, -)
%doc README.txt
%{python_sitelib}/%{oname}.py*
%{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info/

%changelog
* Wed Feb 11 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.8.0-2
- fixes from review, thanks Jussi!

* Sat Jan 17 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.8.0-1
- initial build



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-argparse/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Feb 2009 22:15:40 -0000	1.1
+++ .cvsignore	11 Feb 2009 18:08:53 -0000	1.2
@@ -0,0 +1 @@
+argparse-0.8.0.zip


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-argparse/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Feb 2009 22:15:40 -0000	1.1
+++ sources	11 Feb 2009 18:08:53 -0000	1.2
@@ -0,0 +1 @@
+fc3ac46fecf541e8ca25caeae75b1b8d  argparse-0.8.0.zip




More information about the scm-commits mailing list