__pkginfo__.py 4.7 KB
Newer Older
1
# pylint: disable=W0622,C0103
2
# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
3
4
5
6
7
8
9
10
11
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
#
# CubicWeb is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
12
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT
13
14
15
16
17
18
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
Adrien Di Mascio's avatar
Adrien Di Mascio committed
19
20
21
22
"""cubicweb global packaging information for the cubicweb knowledge management
software
"""

23
modname = distname = "cubicweb"
Adrien Di Mascio's avatar
Adrien Di Mascio committed
24

Aurelien Campeas's avatar
Aurelien Campeas committed
25
numversion = (3, 17, 11)
Adrien Di Mascio's avatar
Adrien Di Mascio committed
26
27
version = '.'.join(str(num) for num in numversion)

28
description = "a repository of entities / relations for knowledge management"
Adrien Di Mascio's avatar
Adrien Di Mascio committed
29
30
author = "Logilab"
author_email = "contact@logilab.fr"
31
32
web = 'http://www.cubicweb.org'
ftp = 'ftp://ftp.logilab.org/pub/cubicweb'
33
license = 'LGPL'
Adrien Di Mascio's avatar
Adrien Di Mascio committed
34

Arthur Lutz's avatar
Arthur Lutz committed
35
36
37
38
39
40
41
classifiers = [
           'Environment :: Web Environment',
           'Framework :: CubicWeb',
           'Programming Language :: Python',
           'Programming Language :: JavaScript',
]

42
__depends__ = {
43
    'logilab-common': '>= 0.59.0',
44
    'logilab-mtconverter': '>= 0.8.0',
David Douard's avatar
David Douard committed
45
    'rql': '>= 0.31.2',
46
    'yams': '>= 0.37.0',
47
48
49
50
51
52
53
    #gettext                    # for xgettext, msgcat, etc...
    # web dependancies
    'simplejson': '>= 2.0.9',
    'lxml': '',
    'Twisted': '',
    # XXX graphviz
    # server dependencies
54
    'logilab-database': '>= 1.10',
55
    'passlib': '',
56
57
58
    }

__recommends__ = {
David Douard's avatar
David Douard committed
59
    'docutils': '>= 0.6',
Sylvain Thénault's avatar
Sylvain Thénault committed
60
    'Pyro': '>= 3.9.1, < 4.0.0',
61
62
63
64
    'PIL': '',                  # for captcha
    'pycrypto': '',             # for crypto extensions
    'fyzz': '>= 0.1.0',         # for sparql
    'vobject': '>= 0.6.0',      # for ical view
65
    'rdflib': None,             #
66
    'pyzmq': None,
67
68
69
    #'Products.FCKeditor':'',
    #'SimpleTAL':'>= 4.1.6',
    }
Adrien Di Mascio's avatar
Adrien Di Mascio committed
70

71
import sys
Adrien Di Mascio's avatar
Adrien Di Mascio committed
72
73
74
75
76
77
from os import listdir, environ
from os.path import join, isdir
import glob

scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
           if not s.endswith('.bat')]
Sylvain Thenault's avatar
Sylvain Thenault committed
78
include_dirs = [join('test', 'data'),
Adrien Di Mascio's avatar
Adrien Di Mascio committed
79
                join('server', 'test', 'data'),
80
                join('hooks', 'test', 'data'),
Adrien Di Mascio's avatar
Adrien Di Mascio committed
81
                join('web', 'test', 'data'),
82
                join('devtools', 'data'),
Sylvain Thenault's avatar
Sylvain Thenault committed
83
                join('devtools', 'test', 'data'),
84
                'schemas', 'skeleton']
Adrien Di Mascio's avatar
Adrien Di Mascio committed
85
86


87
88
89
90
91
92
_server_migration_dir = join('misc', 'migration')
_data_dir = join('web', 'data')
_wdoc_dir = join('web', 'wdoc')
_wdocimages_dir = join(_wdoc_dir, 'images')
_views_dir = join('web', 'views')
_i18n_dir = 'i18n'
Adrien Di Mascio's avatar
Adrien Di Mascio committed
93

94
95
_pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
if '--home' in sys.argv:
Adrien Di Mascio's avatar
Adrien Di Mascio committed
96
    # --home install
97
    pydir = 'python' + _pyversion
Adrien Di Mascio's avatar
Adrien Di Mascio committed
98
else:
99
    pydir = join('python' + _pyversion, 'site-packages')
100

101
102
103
104
105
# data files that shall be copied into the main package directory
package_data = {
    'cubicweb.web.views':['*.pt'],
    }

Adrien Di Mascio's avatar
Adrien Di Mascio committed
106
try:
107
    # data files that shall be copied outside the main package directory
Adrien Di Mascio's avatar
Adrien Di Mascio committed
108
109
110
    data_files = [
        # server data
        [join('share', 'cubicweb', 'schemas'),
111
         [join('schemas', filename) for filename in listdir('schemas')]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
112
        [join('share', 'cubicweb', 'migration'),
113
114
         [join(_server_migration_dir, filename)
          for filename in listdir(_server_migration_dir)]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
115
116
        # web data
        [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
117
118
         [join(_data_dir, fname) for fname in listdir(_data_dir)
          if not isdir(join(_data_dir, fname))]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
119
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'),
Sylvain Thénault's avatar
Sylvain Thénault committed
120
         [join(_data_dir, 'timeline', fname) for fname in listdir(join(_data_dir, 'timeline'))]],
121
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'),
Sylvain Thénault's avatar
Sylvain Thénault committed
122
         [join(_data_dir, 'images', fname) for fname in listdir(join(_data_dir, 'images'))]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
123
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
124
125
         [join(_wdoc_dir, fname) for fname in listdir(_wdoc_dir)
          if not isdir(join(_wdoc_dir, fname))]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
126
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
127
         [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
128
        [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
129
         [join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]],
130
        # skeleton
Adrien Di Mascio's avatar
Adrien Di Mascio committed
131
132
133
134
        ]
except OSError:
    # we are in an installed directory, don't care about this
    pass