--- a/README Mon Jul 13 18:42:46 2009 +0300
+++ b/README Mon Jul 13 18:54:38 2009 +0300
@@ -4,7 +4,7 @@
Finaloption
=============
-Finaloption is a command line parser, indented to make writing command line
+Finaloption is a command line parser, intended to make writing command line
applications easy and painless. It uses built-in Python types (lists,
dictionaries, etc) to define options, which makes configuration clear and
concise. Additionally it contains possibility to handle subcommands (i.e.
--- a/docs/conf.py Mon Jul 13 18:42:46 2009 +0300
+++ b/docs/conf.py Mon Jul 13 18:54:38 2009 +0300
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
import sys, os
-
sys.path.append('..')
+import finaloption
# -- General configuration -----------------------------------------------------
@@ -12,8 +12,7 @@
master_doc = 'index'
project = u'Finaloption'
copyright = u'2009, Alexander Solovyov'
-version = '0.9'
-release = '0.9'
+version = release = finaloption.__version__
exclude_trees = ['_build']
pygments_style = 'sphinx'
--- a/docs/index.rst Mon Jul 13 18:42:46 2009 +0300
+++ b/docs/index.rst Mon Jul 13 18:54:38 2009 +0300
@@ -14,7 +14,7 @@
overview
api
-Finaloption is a command line parser, indented to make writing command line
+Finaloption is a command line parser, intended to make writing command line
applications easy and painless. It uses built-in Python types (lists,
dictionaries, etc) to define options, which makes configuration clear and
concise. Additionally it contains possibility to handle subcommands (i.e.
--- a/finaloption.py Mon Jul 13 18:42:46 2009 +0300
+++ b/finaloption.py Mon Jul 13 18:54:38 2009 +0300
@@ -6,6 +6,8 @@
from itertools import imap
__all__ = ['command', 'dispatch']
+__version__ = '0.9'
+__author__ = 'Alexander Solovyov'
write = sys.stdout.write
err = sys.stderr.write
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py Mon Jul 13 18:54:38 2009 +0300
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+import os
+from distutils.core import setup
+import finaloption
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+setup(
+ name = 'finaloption',
+ description = 'command line arguments parser',
+ long_description = read('README'),
+ version = finaloption.__version__,
+ author = finaloption.__author__,
+ url = 'http://hg.piranha.org.ua/finaloption/',
+ classifiers = [
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Console',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Languge :: Python',
+ 'Topic :: Software Development',
+ ],
+ py_modules = ['finaloption'],
+ )