Mercurial > hg > ltpdarepo
annotate setup.py @ 213:3d524d31d1c2
Move setup.py to better location.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 18 Nov 2011 01:49:52 +0100 |
parents | src/setup.py@ca6999a5b402 |
children | a5f5caf65dd5 |
rev | line source |
---|---|
213
3d524d31d1c2
Move setup.py to better location.
Daniele Nicolodi <daniele@grinta.net>
parents:
212
diff
changeset
|
1 from setuptools import setup, find_packages |
0 | 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 | |
213
3d524d31d1c2
Move setup.py to better location.
Daniele Nicolodi <daniele@grinta.net>
parents:
212
diff
changeset
|
34 packages=find_packages(), |
3d524d31d1c2
Move setup.py to better location.
Daniele Nicolodi <daniele@grinta.net>
parents:
212
diff
changeset
|
35 package_dir={'': 'src'}, |
212 | 36 include_package_data=True, |
37 package_data={'': ['*.txt', '*.rst', '*.sql']}, | |
38 zip_safe=False, | |
39 install_requires=requires, | |
40 entry_points={ | |
41 'console_scripts': [ | |
42 'run = ltpdarepo:main', | |
43 'admin = ltpdarepo.admin:main', ] | |
44 } | |
45 ) |