Statistics
| Branch: | Tag: | Revision:

root / snf-okeanos-site / setup.py @ 07d104d8

History | View | Annotate | Download (2 kB)

1
import distribute_setup
2
distribute_setup.use_setuptools()
3

    
4
import os
5
from setuptools import setup, find_packages
6
from synnefo.util.version import update_version
7

    
8
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
9
update_version('okeanos_site', 'version', HERE)
10
from okeanos_site.version import __version__
11

    
12

    
13
# Package info
14
VERSION = __version__
15
README = open(os.path.join(HERE, 'README')).read()
16
CHANGES = open(os.path.join(HERE, 'Changelog')).read()
17
SHORT_DESCRIPTION = 'Package short description'
18

    
19
PACKAGES_ROOT = '.'
20
PACKAGES = find_packages(PACKAGES_ROOT)
21

    
22
# Package meta
23
CLASSIFIERS = []
24

    
25
# Package requirements
26
INSTALL_REQUIRES = [
27
]
28

    
29
TESTS_REQUIRES = [
30
]
31

    
32
PACKAGE_DATA = {
33
    'okeanos_site': [
34
        'templates/okeanos/*.html',
35
        'templates/okeanos/pages/*.html',
36
        'static/okeanos_static/css/*.css',
37
        'static/okeanos_static/js/*.js',
38
        'static/okeanos_static/images/*.png',
39
        'static/okeanos_static/video/*.txt',
40
        'static/okeanos_static/video/*.js',
41
        'static/okeanos_static/video/*.css',
42
        'static/okeanos_static/video/skins/*.css',
43
    ]
44
}
45

    
46
setup(
47
    name = 'snf-okeanos-site',
48
    version = VERSION,
49
    license = 'BSD',
50
    url = 'http://code.grnet.gr/',
51
    description = SHORT_DESCRIPTION,
52
    long_description=README + '\n\n' +  CHANGES,
53
    classifiers = CLASSIFIERS,
54

    
55
    author = '~okeanos dev team - GRNET',
56
    author_email = 'okeanos-dev@lists.grnet.gr',
57
    maintainer = 'Kostas Papadimitriou',
58
    maintainer_email = 'kpap@grnet.gr',
59

    
60
    packages = PACKAGES,
61
    package_dir= {'': PACKAGES_ROOT},
62
    include_package_data = True,
63
    package_data = PACKAGE_DATA,
64
    zip_safe = False,
65

    
66
    entry_points = {
67
        'synnefo': [
68
            'default_settings = okeanos_site.settings',
69
            'web_apps = okeanos_site:synnefo_web_apps',
70
            'web_static = okeanos_site:synnefo_static_files',
71
            'urls = okeanos_site.urls:urlpatterns'
72
        ]
73
    },
74

    
75
    install_requires = INSTALL_REQUIRES,
76
)
77