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
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')
2
Jeff Hammel <k0scist@gmail.com>
parents: 1
diff changeset
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
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=[
2
Jeff Hammel <k0scist@gmail.com>
parents: 1
diff changeset
26 'WebOb',
0
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
27 'Paste',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
28 'PasteScript',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
29 'genshi',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
30 'python-dateutil',
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
31 ],
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
32 entry_points="""
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
33 # -*- Entry points: -*-
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
34 [paste.app_factory]
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
35 main = redirector.factory:factory
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
36
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
37 [redirector.redirectors]
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
38 test-redirector = redirector.redirectors:TestRedirector
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
39 ini-redirector = redirector.redirectors:IniRedirector
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
40 """,
af82aaec0377 initial import of redirector
k0s <k0scist@gmail.com>
parents:
diff changeset
41 )
2
Jeff Hammel <k0scist@gmail.com>
parents: 1
diff changeset
42