Statistics
| Branch: | Tag: | Revision:

root / setup.py @ 14a1245e

History | View | Annotate | Download (2.2 kB)

1
import distribute_setup
2
distribute_setup.use_setuptools()
3

    
4
import os
5
from setuptools import setup, find_packages
6

    
7
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
8

    
9
# Package info
10
VERSION = '0.1'
11
README = open(os.path.join(HERE, 'README')).read()
12
CHANGES = open(os.path.join(HERE, 'Changelog')).read()
13
SHORT_DESCRIPTION = 'Package short description'
14

    
15
PACKAGES_ROOT = '.'
16
PACKAGES = find_packages(PACKAGES_ROOT, exclude=['okeanos_site'])
17

    
18
# Package meta
19
CLASSIFIERS = []
20

    
21
# Package requirements
22
INSTALL_REQUIRES = [
23
    'Django==1.2.4',
24
    'simplejson==2.1.3',
25
    'pycurl==7.19.0',
26
    'python-dateutil==1.4.1',
27
    'IPy==0.75',
28
    'south==0.7.1',
29
    'pycrypto==2.1.0',
30
    'amqplib==0.6.1',
31
    'python-daemon==1.5.5'
32
]
33

    
34
EXTRAS_REQUIRES = {
35
        'DISPATCHER': ['amqplib==0.6.1', 'python-daemon==1.5.5',],
36
        'INVITATIONS': ['pycrypto==2.1.0'],
37
        'SSH_KEYS': ['pycrypto==2.1.0'],
38
        'BURNIN': ['unittest2==0.5.1', 'paramiko==1.7.6', 'python-prctl==1.3.0']
39
}
40

    
41
TESTS_REQUIRES = [
42
]
43

    
44
PACKAGE_DATA = {
45
    '': ['templates/*.html', 'fixtures/*.json',
46
         'templates/*.xml', 'templates/partials/*.html',
47
         'templates/*.txt', 'templates/userdata/*.html'],
48

    
49
    'synnefo': ['settings.d/*.conf']
50
}
51

    
52
setup(
53
    name = 'synnefo',
54
    version = VERSION,
55
    license = 'BSD',
56
    url = 'http://code.grnet.gr/',
57
    description = SHORT_DESCRIPTION,
58
    long_description=README + '\n\n' +  CHANGES,
59
    classifiers = CLASSIFIERS,
60

    
61
    author = 'Package author',
62
    author_email = 'author@grnet.gr',
63
    maintainer = 'Package maintainer',
64
    maintainer_email = 'maintainer@grnet.gr',
65

    
66
    packages = PACKAGES,
67
    package_dir= {'': PACKAGES_ROOT},
68
    include_package_data = True,
69
    package_data = PACKAGE_DATA,
70
    zip_safe = False,
71

    
72
    install_requires = INSTALL_REQUIRES,
73
    extras_require = EXTRAS_REQUIRES,
74
    tests_require = TESTS_REQUIRES,
75

    
76
    entry_points = {
77
     'console_scripts': [
78
         'synnefo-manage = synnefo.manage:main',
79
         'synnefo-dispatcher = synnefo.logic.dispatcher:scriptmain',
80
         'synnefo-burnin = synnefo.tools.burnin:main',
81
         'synnefo-admin = synnefo.tools.admin:main',
82
         'synnefo-cloud = synnefo.tools.cloud:main',
83
         ],
84
      },
85
    )
86