Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / setup.py @ fde2c1f7

History | View | Annotate | Download (2.9 kB)

1 0ac84a9a Dimitris Aragiorgis
# Copyright 2011 GRNET S.A. All rights reserved.
2 0ac84a9a Dimitris Aragiorgis
#
3 0ac84a9a Dimitris Aragiorgis
# Redistribution and use in source and binary forms, with or
4 0ac84a9a Dimitris Aragiorgis
# without modification, are permitted provided that the following
5 0ac84a9a Dimitris Aragiorgis
# conditions are met:
6 0ac84a9a Dimitris Aragiorgis
#
7 0ac84a9a Dimitris Aragiorgis
#   1. Redistributions of source code must retain the above
8 0ac84a9a Dimitris Aragiorgis
#      copyright notice, this list of conditions and the following
9 0ac84a9a Dimitris Aragiorgis
#      disclaimer.
10 0ac84a9a Dimitris Aragiorgis
#
11 0ac84a9a Dimitris Aragiorgis
#   2. Redistributions in binary form must reproduce the above
12 0ac84a9a Dimitris Aragiorgis
#      copyright notice, this list of conditions and the following
13 0ac84a9a Dimitris Aragiorgis
#      disclaimer in the documentation and/or other materials
14 0ac84a9a Dimitris Aragiorgis
#      provided with the distribution.
15 0ac84a9a Dimitris Aragiorgis
#
16 0ac84a9a Dimitris Aragiorgis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 0ac84a9a Dimitris Aragiorgis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 0ac84a9a Dimitris Aragiorgis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 0ac84a9a Dimitris Aragiorgis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 0ac84a9a Dimitris Aragiorgis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 0ac84a9a Dimitris Aragiorgis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 0ac84a9a Dimitris Aragiorgis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 0ac84a9a Dimitris Aragiorgis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 0ac84a9a Dimitris Aragiorgis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 0ac84a9a Dimitris Aragiorgis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 0ac84a9a Dimitris Aragiorgis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 0ac84a9a Dimitris Aragiorgis
# POSSIBILITY OF SUCH DAMAGE.
28 0ac84a9a Dimitris Aragiorgis
#
29 0ac84a9a Dimitris Aragiorgis
# The views and conclusions contained in the software and
30 0ac84a9a Dimitris Aragiorgis
# documentation are those of the authors and should not be
31 0ac84a9a Dimitris Aragiorgis
# interpreted as representing official policies, either expressed
32 0ac84a9a Dimitris Aragiorgis
# or implied, of GRNET S.A.
33 0ac84a9a Dimitris Aragiorgis
#
34 0ac84a9a Dimitris Aragiorgis
35 0ac84a9a Dimitris Aragiorgis
import distribute_setup
36 0ac84a9a Dimitris Aragiorgis
distribute_setup.use_setuptools()
37 0ac84a9a Dimitris Aragiorgis
38 0ac84a9a Dimitris Aragiorgis
import os
39 5bd5d561 Christos Stavrakakis
import sys
40 0ac84a9a Dimitris Aragiorgis
41 0ac84a9a Dimitris Aragiorgis
from distutils.util import convert_path
42 0ac84a9a Dimitris Aragiorgis
from fnmatch import fnmatchcase
43 0ac84a9a Dimitris Aragiorgis
from setuptools import setup, find_packages
44 0ac84a9a Dimitris Aragiorgis
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45 0ac84a9a Dimitris Aragiorgis
46 5bd5d561 Christos Stavrakakis
# Add snfdeploy to sys.path and load version module
47 5bd5d561 Christos Stavrakakis
sys.path.insert(0, "snfdeploy")
48 5bd5d561 Christos Stavrakakis
from version import __version__
49 0ac84a9a Dimitris Aragiorgis
50 0ac84a9a Dimitris Aragiorgis
# Package info
51 0ac84a9a Dimitris Aragiorgis
VERSION = __version__
52 0ac84a9a Dimitris Aragiorgis
SHORT_DESCRIPTION = 'Deployment tool for synnefo from scratch'
53 0ac84a9a Dimitris Aragiorgis
54 0ac84a9a Dimitris Aragiorgis
PACKAGES_ROOT = '.'
55 0ac84a9a Dimitris Aragiorgis
PACKAGES = find_packages(PACKAGES_ROOT)
56 0ac84a9a Dimitris Aragiorgis
57 0ac84a9a Dimitris Aragiorgis
# Package meta
58 0ac84a9a Dimitris Aragiorgis
CLASSIFIERS = []
59 0ac84a9a Dimitris Aragiorgis
60 0ac84a9a Dimitris Aragiorgis
# Package requirements
61 0ac84a9a Dimitris Aragiorgis
INSTALL_REQUIRES = [
62 0ac84a9a Dimitris Aragiorgis
    'argparse',
63 0ac84a9a Dimitris Aragiorgis
    'ipaddr',
64 0ac84a9a Dimitris Aragiorgis
]
65 0ac84a9a Dimitris Aragiorgis
66 0ac84a9a Dimitris Aragiorgis
setup(
67 0ac84a9a Dimitris Aragiorgis
    name = 'snf-deploy',
68 0ac84a9a Dimitris Aragiorgis
    version = VERSION,
69 0ac84a9a Dimitris Aragiorgis
    license = 'BSD',
70 0ac84a9a Dimitris Aragiorgis
    url = 'http://code.grnet.gr/',
71 0ac84a9a Dimitris Aragiorgis
    description = SHORT_DESCRIPTION,
72 87cac384 Dimitris Aragiorgis
    long_description = SHORT_DESCRIPTION,
73 0ac84a9a Dimitris Aragiorgis
    classifiers = CLASSIFIERS,
74 0ac84a9a Dimitris Aragiorgis
75 0ac84a9a Dimitris Aragiorgis
    author='Synnefo development team',
76 0ac84a9a Dimitris Aragiorgis
    author_email='synnefo-devel@googlegroups.com',
77 0ac84a9a Dimitris Aragiorgis
    maintainer='Synnefo development team',
78 0ac84a9a Dimitris Aragiorgis
    maintainer_email='synnefo-devel@googlegroups.com',
79 0ac84a9a Dimitris Aragiorgis
80 0ac84a9a Dimitris Aragiorgis
    packages = PACKAGES,
81 0ac84a9a Dimitris Aragiorgis
    package_dir= {'': PACKAGES_ROOT},
82 0ac84a9a Dimitris Aragiorgis
    include_package_data = True,
83 0ac84a9a Dimitris Aragiorgis
    zip_safe = False,
84 0ac84a9a Dimitris Aragiorgis
85 0ac84a9a Dimitris Aragiorgis
    install_requires = INSTALL_REQUIRES,
86 0ac84a9a Dimitris Aragiorgis
87 0ac84a9a Dimitris Aragiorgis
    dependency_links = ['http://docs.dev.grnet.gr/pypi'],
88 0ac84a9a Dimitris Aragiorgis
    entry_points={
89 0ac84a9a Dimitris Aragiorgis
     'console_scripts': [
90 0ac84a9a Dimitris Aragiorgis
         'snf-deploy=snfdeploy:main',
91 0ac84a9a Dimitris Aragiorgis
         ],
92 0ac84a9a Dimitris Aragiorgis
      },
93 0ac84a9a Dimitris Aragiorgis
)