Statistics
| Branch: | Tag: | Revision:

root / snf-common / setup.py @ bdff90d3

History | View | Annotate | Download (3.1 kB)

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