summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Waldmann <tw AT waldmann-edv DOT de>2011-03-26 23:17:38 +0100
committerThomas Waldmann <tw AT waldmann-edv DOT de>2011-03-26 23:17:38 +0100
commit5a9e54d559b16b86ead3207e910cb80e25b0290c (patch)
tree0bb8b710e4b9ed3ff2979aa0f898086536167edf
parent8794f41beb717cad1ec9ee0992eb231124832d6b (diff)
downloadargparse-5a9e54d559b16b86ead3207e910cb80e25b0290c.tar.gz
add support files for setuptools/distribute
-rw-r--r--MANIFEST.in12
-rw-r--r--setup.cfg18
-rw-r--r--setup.py35
3 files changed, 65 insertions, 0 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..1a6aa11
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,12 @@
+include README.txt LICENSE.txt
+
+recursive-include doc *
+
+global-exclude *.pyc
+global-exclude *.pyo
+global-exclude *.orig
+global-exclude *.rej
+
+prune docs/_build
+prune env
+
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..6e7053f
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,18 @@
+[bdist_rpm]
+release=1
+doc_files=
+ README.txt
+ LICENSE.txt
+ PKG-INFO
+ doc/
+requires=python
+build_requires=python
+
+[build_sphinx]
+source-dir = doc/
+build-dir = doc/_build
+all_files = 1
+
+[upload_sphinx]
+upload-dir = doc/_build/html
+
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..f0477d3
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,35 @@
+import sys, os
+
+from setuptools import setup, find_packages
+
+import argparse
+
+long_description = open('README.txt').read()
+
+
+setup_args = dict(
+ name="argparse",
+ version=argparse.__version__,
+ description='Python command-line parsing library',
+ long_description=long_description,
+ author="Steven Bethard",
+ author_email="steven.bethard@gmail.com",
+ download_url="http://argparse.googlecode.com/files/argparse-%s.tar.gz" % (argparse.__version__, ),
+ url="http://code.google.com/p/argparse/",
+ license="Python Software Foundation License",
+ keywords="argparse command line parser parsing",
+ platforms="any",
+ classifiers="""\
+Development Status :: 6 - Production/Stable
+Environment :: Console
+Intended Audience :: Developers
+License :: OSI Approved :: Python Software Foundation License
+Operating System :: OS Independent
+Programming Language :: Python
+Topic :: Software Development""".splitlines(),
+ py_modules=['argparse'],
+)
+
+if __name__ == '__main__':
+ setup(**setup_args)
+