setup.py 1.97 KB
Newer Older
Vangelis Koukis's avatar
Vangelis Koukis committed
1
# Copyright (C) 2010-2014 GRNET S.A.
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
2
#
Vangelis Koukis's avatar
Vangelis Koukis committed
3
4
5
6
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
7
#
Vangelis Koukis's avatar
Vangelis Koukis committed
8
9
10
11
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
12
#
Vangelis Koukis's avatar
Vangelis Koukis committed
13
14
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
15
16
17
18
19
20
#

import distribute_setup
distribute_setup.use_setuptools()

import os
21
import sys
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
22
23
24
25

from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))

26
27
28
# Add snfdeploy to sys.path and load version module
sys.path.insert(0, "snfdeploy")
from version import __version__
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42

# Package info
VERSION = __version__
SHORT_DESCRIPTION = 'Deployment tool for synnefo from scratch'

PACKAGES_ROOT = '.'
PACKAGES = find_packages(PACKAGES_ROOT)

# Package meta
CLASSIFIERS = []

# Package requirements
INSTALL_REQUIRES = [
    'argparse',
43
    'simplejson',
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
44
    'ipaddr',
45
    'fabric>=1.3',
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
46
47
48
]

setup(
Ilias Tsitsimpis's avatar
Ilias Tsitsimpis committed
49
50
51
52
53
54
55
    name='snf-deploy',
    version=VERSION,
    license='BSD',
    url='http://code.grnet.gr/',
    description=SHORT_DESCRIPTION,
    long_description=SHORT_DESCRIPTION,
    classifiers=CLASSIFIERS,
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
56
57
58
59
60
61

    author='Synnefo development team',
    author_email='synnefo-devel@googlegroups.com',
    maintainer='Synnefo development team',
    maintainer_email='synnefo-devel@googlegroups.com',

Ilias Tsitsimpis's avatar
Ilias Tsitsimpis committed
62
63
64
65
    packages=PACKAGES,
    package_dir={'': PACKAGES_ROOT},
    include_package_data=True,
    zip_safe=False,
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
66

Ilias Tsitsimpis's avatar
Ilias Tsitsimpis committed
67
    install_requires=INSTALL_REQUIRES,
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
68

Ilias Tsitsimpis's avatar
Ilias Tsitsimpis committed
69
    dependency_links=['http://docs.dev.grnet.gr/pypi'],
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
70
    entry_points={
Ilias Tsitsimpis's avatar
Ilias Tsitsimpis committed
71
72
73
74
        'console_scripts': [
            'snf-deploy=snfdeploy:main',
            ],
        },
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
75
)