__pkginfo__.py 4.68 KB
Newer Older
Sylvain Thénault's avatar
Sylvain Thénault committed
1
 # pylint: disable=W0622,C0103
2
3
4
5
6
7
8
9
10
11
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# 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

25
numversion = (3, 11, 0)
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.55.0',
44
    'logilab-mtconverter': '>= 0.8.0',
45
    'rql': '>= 0.28.0',
46
    'yams': '>= 0.30.4',
47
48
49
50
51
52
53
54
    'docutils': '>= 0.6',
    #gettext                    # for xgettext, msgcat, etc...
    # web dependancies
    'simplejson': '>= 2.0.9',
    'lxml': '',
    'Twisted': '',
    # XXX graphviz
    # server dependencies
55
    'logilab-database': '>= 1.3.3',
56
57
58
59
    'pysqlite': '>= 2.5.5', # XXX install pysqlite2
    }

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

69
import sys
Adrien Di Mascio's avatar
Adrien Di Mascio committed
70
71
72
73
74
75
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
76
include_dirs = [join('test', 'data'),
Adrien Di Mascio's avatar
Adrien Di Mascio committed
77
                join('server', 'test', 'data'),
78
                join('hooks', 'test', 'data'),
Adrien Di Mascio's avatar
Adrien Di Mascio committed
79
                join('web', 'test', 'data'),
80
                join('devtools', 'data'),
Sylvain Thenault's avatar
Sylvain Thenault committed
81
                join('devtools', 'test', 'data'),
82
                'schemas', 'skeleton']
Adrien Di Mascio's avatar
Adrien Di Mascio committed
83
84


85
86
87
88
89
90
_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
91

92
93
_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
94
    # --home install
95
    pydir = 'python' + _pyversion
Adrien Di Mascio's avatar
Adrien Di Mascio committed
96
else:
97
    pydir = join('python' + _pyversion, 'site-packages')
98

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