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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c812c3020b63 Initial import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
2
212
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
3 version = '0.5dev'
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
4
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
5 requires = [
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
6 'distribute',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
7 'Flask',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
8 'WTForms',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
9 'itsdangerous',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
10 'python-dateutil < 2.0',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
11 ]
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
12
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
13 try:
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
14 import argparse
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
15 except ImportError:
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
16 # we have python < 2.7
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
17 requires.append('argparse')
100
3024c77310d1 Minor cleanup of setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 50
diff changeset
18
212
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
19 try:
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
20 from collections import OrderedDict
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
21 except ImportError:
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
22 # we have python < 2.7
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
23 requires.append('ordereddict')
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
24
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
25
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
26 setup(name='ltpdarepo',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
27 version=version,
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
28 keywords='',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
29 author='Daniele Nicolodi',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
30 author_email='nicolodi@science.unitn.it',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
31 url='http://dev.grinta.net/hg/ltpdarepo/',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
32 license='AGPLv3+',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
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
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
36 include_package_data=True,
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
37 package_data={'': ['*.txt', '*.rst', '*.sql']},
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
38 zip_safe=False,
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
39 install_requires=requires,
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
40 entry_points={
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
41 'console_scripts': [
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
42 'run = ltpdarepo:main',
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
43 'admin = ltpdarepo.admin:main', ]
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
44 }
ca6999a5b402 Better setup.py.
Daniele Nicolodi <daniele@grinta.net>
parents: 191
diff changeset
45 )