Statistics
| Branch: | Tag: | Revision:

root / snf-quotaholder-app / setup.py @ 2fd11a01

History | View | Annotate | Download (3.3 kB)

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