Statistics
| Branch: | Tag: | Revision:

root / snf-webproject / setup.py @ 0abd88d6

History | View | Annotate | Download (3.3 kB)

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