Mercurial > hg > redirector
annotate setup.py @ 1:55578cf505dd
add some documentation for redirector
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 10 Mar 2010 10:45:11 -0500 |
parents | af82aaec0377 |
children | ff524f0a62de |
rev | line source |
---|---|
0 | 1 from setuptools import setup, find_packages |
2 import sys, os | |
3 | |
1
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
4 # get the description from the README |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
5 try: |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
6 filename = os.path.join(os.path.dirname(__file__), 'README.txt') |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
7 description = file(filename).read() |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
8 except: |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
9 description = '' |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
10 |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
11 version = "0.1.1" |
0 | 12 |
13 setup(name='redirector', | |
14 version=version, | |
15 description="WSGI middleware/app for managing redirects", | |
1
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
16 long_description=description, |
0 | 17 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers |
18 author='Jeff Hammel', | |
1
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
19 author_email='k0scist@gmail.com', |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
20 url='http://k0s.org/hg/redirector', |
55578cf505dd
add some documentation for redirector
Jeff Hammel <k0scist@gmail.com>
parents:
0
diff
changeset
|
21 license="GPL", |
0 | 22 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
23 include_package_data=True, | |
24 zip_safe=False, | |
25 install_requires=[ | |
26 # -*- Extra requirements: -*- | |
27 'WebOb', | |
28 'Paste', | |
29 'PasteScript', | |
30 'genshi', | |
31 'python-dateutil', | |
32 | |
33 ], | |
34 entry_points=""" | |
35 # -*- Entry points: -*- | |
36 [paste.app_factory] | |
37 main = redirector.factory:factory | |
38 | |
39 [redirector.redirectors] | |
40 test-redirector = redirector.redirectors:TestRedirector | |
41 ini-redirector = redirector.redirectors:IniRedirector | |
42 """, | |
43 ) | |
44 |