Statistics
| Branch: | Tag: | Revision:

root / setup.py @ 7c62bd54

History | View | Annotate | Download (2.1 kB)

1
import os
2

    
3
from setuptools import setup, find_packages
4

    
5
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
6

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

    
13
PACKAGES_ROOT = '.'
14
PACKAGES = find_packages(PACKAGES_ROOT, exclude=['okeanos_site'])
15

    
16
# Package meta
17
CLASSIFIERS = []
18

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

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

    
39
TESTS_REQUIRES = [
40
]
41

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

    
47
    'synnefo': ['settings.d/*.conf']
48
}
49

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

    
59
    author = 'Package author',
60
    author_email = 'author@grnet.gr',
61
    maintainer = 'Package maintainer',
62
    maintainer_email = 'maintainer@grnet.gr',
63

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

    
70
    install_requires = INSTALL_REQUIRES,
71
    extras_require = EXTRAS_REQUIRES,
72
    tests_require = TESTS_REQUIRES,
73

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