setup.py 2.79 KB
Newer Older
1
#!/usr/bin/env python
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2011 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
#   1. Redistributions of source code must retain the above
#      copyright notice, this list of conditions and the following
#      disclaimer.
#
#   2. Redistributions in binary form must reproduce the above
#      copyright notice, this list of conditions and the following
#      disclaimer in the documentation and/or other materials
#      provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
#
35

Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
36
37
import os

38
from setuptools import setup
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
39
40

HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
41
42
43
44
45
46
47
48

try:
    # try to update the version file
    from synnefo.util.version import update_version
    update_version('synnefo.versions', 'ganeti', HERE)
except ImportError:
    pass

Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
49
from synnefo.versions.ganeti import __version__
50
51

setup(
52
    name="snf-cyclades-gtools",
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
53
    version=__version__,
54
55
56
57
58
    description="Synnefo Ganeti supplementary tools",
    author="Synnefo Development Team",
    author_email="synnefo@lists.grnet.gr",
    license="BSD",
    url="http://code.grnet.gr/projects/synnefo",
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
59
60
    namespace_packages=["synnefo", "synnefo.versions"],
    packages=["synnefo", "synnefo.ganeti", "synnefo.versions"],
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
61
    dependency_links = ['http://docs.dev.grnet.gr/pypi'],
62
    install_requires=[
63
        'snf-common>0.9.14',
64
65
        'python-daemon>=1.5.5',
        'pyinotify>=0.8.9',
66
        'puka',
67
        'python-prctl>=1.1.1',
68
    ],
69
70
71
72
73
74
    entry_points = {
     'console_scripts': [
         'snf-ganeti-eventd = synnefo.ganeti.eventd:main',
         'snf-ganeti-hook = synnefo.ganeti.hook:main',
         'snf-progress-monitor = synnefo.ganeti.progress_monitor:main'
         ],
75
76
77
     'synnefo': [
            'default_settings = synnefo.ganeti.settings'
         ]
78
     },
79
)