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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
1 from setuptools import setup, find_packages
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
2 import sys, os
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
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
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
12
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
13 setup(name='redirector',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
14 version=version,
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
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
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
17 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
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
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
22 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
23 include_package_data=True,
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
24 zip_safe=False,
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
25 install_requires=[
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
26 # -*- Extra requirements: -*-
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
27 'WebOb',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
28 'Paste',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
29 'PasteScript',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
30 'genshi',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
31 'python-dateutil',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
32
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
33 ],
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
34 entry_points="""
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
35 # -*- Entry points: -*-
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
36 [paste.app_factory]
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
37 main = redirector.factory:factory
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
38
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
39 [redirector.redirectors]
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
40 test-redirector = redirector.redirectors:TestRedirector
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
41 ini-redirector = redirector.redirectors:IniRedirector
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
42 """,
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
43 )
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
44