Mercurial > hg > redirector
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1:55578cf505dd | 2:ff524f0a62de |
|---|---|
| 2 import sys, os | 2 import sys, os |
| 3 | 3 |
| 4 # get the description from the README | 4 # get the description from the README |
| 5 try: | 5 try: |
| 6 filename = os.path.join(os.path.dirname(__file__), 'README.txt') | 6 filename = os.path.join(os.path.dirname(__file__), 'README.txt') |
| 7 description = file(filename).read() | 7 description = open(filename).read() |
| 8 except: | 8 except: |
| 9 description = '' | 9 description = '' |
| 10 | 10 |
| 11 version = "0.1.1" | 11 version = "0.1.1" |
| 12 | 12 |
| 21 license="GPL", | 21 license="GPL", |
| 22 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | 22 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
| 23 include_package_data=True, | 23 include_package_data=True, |
| 24 zip_safe=False, | 24 zip_safe=False, |
| 25 install_requires=[ | 25 install_requires=[ |
| 26 # -*- Extra requirements: -*- | 26 'WebOb', |
| 27 'WebOb', | |
| 28 'Paste', | 27 'Paste', |
| 29 'PasteScript', | 28 'PasteScript', |
| 30 'genshi', | 29 'genshi', |
| 31 'python-dateutil', | 30 'python-dateutil', |
| 32 | |
| 33 ], | 31 ], |
| 34 entry_points=""" | 32 entry_points=""" |
| 35 # -*- Entry points: -*- | 33 # -*- Entry points: -*- |
| 36 [paste.app_factory] | 34 [paste.app_factory] |
| 37 main = redirector.factory:factory | 35 main = redirector.factory:factory |
| 39 [redirector.redirectors] | 37 [redirector.redirectors] |
| 40 test-redirector = redirector.redirectors:TestRedirector | 38 test-redirector = redirector.redirectors:TestRedirector |
| 41 ini-redirector = redirector.redirectors:IniRedirector | 39 ini-redirector = redirector.redirectors:IniRedirector |
| 42 """, | 40 """, |
| 43 ) | 41 ) |
| 44 | 42 |
