Mercurial > hg > ltpdarepo
annotate src/setup.py @ 212:ca6999a5b402
Better setup.py.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 18 Nov 2011 00:47:32 +0100 |
parents | 8d21600963d7 |
children |
rev | line source |
---|---|
0 | 1 from setuptools import setup |
2 | |
212 | 3 version = '0.5dev' |
4 | |
5 requires = [ | |
6 'distribute', | |
7 'Flask', | |
8 'WTForms', | |
9 'itsdangerous', | |
10 'python-dateutil < 2.0', | |
11 ] | |
12 | |
13 try: | |
14 import argparse | |
15 except ImportError: | |
16 # we have python < 2.7 | |
17 requires.append('argparse') | |
100
3024c77310d1
Minor cleanup of setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents:
50
diff
changeset
|
18 |
212 | 19 try: |
20 from collections import OrderedDict | |
21 except ImportError: | |
22 # we have python < 2.7 | |
23 requires.append('ordereddict') | |
24 | |
25 | |
26 setup(name='ltpdarepo', | |
27 version=version, | |
28 keywords='', | |
29 author='Daniele Nicolodi', | |
30 author_email='nicolodi@science.unitn.it', | |
31 url='http://dev.grinta.net/hg/ltpdarepo/', | |
32 license='AGPLv3+', | |
33 | |
34 packages=['ltpdarepo', ], | |
35 include_package_data=True, | |
36 package_data={'': ['*.txt', '*.rst', '*.sql']}, | |
37 zip_safe=False, | |
38 install_requires=requires, | |
39 entry_points={ | |
40 'console_scripts': [ | |
41 'run = ltpdarepo:main', | |
42 'admin = ltpdarepo.admin:main', ] | |
43 } | |
44 ) |