Mercurial > hg > redirector
annotate setup.py @ 2:ff524f0a62de default tip
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 09:58:14 -0800 |
parents | 55578cf505dd |
children |
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') |
2 | 7 description = open(filename).read() |
1
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=[ | |
2 | 26 'WebOb', |
0 | 27 'Paste', |
28 'PasteScript', | |
29 'genshi', | |
30 'python-dateutil', | |
31 ], | |
32 entry_points=""" | |
33 # -*- Entry points: -*- | |
34 [paste.app_factory] | |
35 main = redirector.factory:factory | |
36 | |
37 [redirector.redirectors] | |
38 test-redirector = redirector.redirectors:TestRedirector | |
39 ini-redirector = redirector.redirectors:IniRedirector | |
40 """, | |
41 ) | |
2 | 42 |