__pkginfo__.py 4.92 KB
Newer Older
1
# pylint: disable=W0622,C0103
Aurelien Campeas's avatar
Aurelien Campeas committed
2
# copyright 2003-2014 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

Julien Cristau's avatar
Julien Cristau committed
25
numversion = (3, 22, 1)
Julien Cristau's avatar
Julien Cristau committed
26
version = '.'.join(str(num) for num in numversion)
Adrien Di Mascio's avatar
Adrien Di Mascio committed
27

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
web = 'http://www.cubicweb.org'
32
license = 'LGPL'
Adrien Di Mascio's avatar
Adrien Di Mascio committed
33

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

41
__depends__ = {
42
    'six': '>= 1.4.0',
43
    'logilab-common': '>= 0.63.1',
44
    'logilab-mtconverter': '>= 0.8.0',
Julien Cristau's avatar
Julien Cristau committed
45
46
    'rql': '>= 0.34.0',
    'yams': '>= 0.42.0',
47
    #gettext                    # for xgettext, msgcat, etc...
48
    # web dependencies
49
50
51
    'lxml': '',
    # XXX graphviz
    # server dependencies
52
    'logilab-database': '>= 1.15.0',
53
    'passlib': '',
54
    'pytz': '',
55
    'Markdown': ''
56
57
58
    }

__recommends__ = {
David Douard's avatar
David Douard committed
59
    'docutils': '>= 0.6',
60
    'Pillow': '',               # for captcha
61
62
63
    'pycrypto': '',             # for crypto extensions
    'fyzz': '>= 0.1.0',         # for sparql
    'vobject': '>= 0.6.0',      # for ical view
64
    'rdflib': None,             #
65
    'pyzmq': None,
66
    'Twisted': '',
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
         glob.glob(join('schemas', '*.sql'))],
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))]],
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'))]],
Julien Cristau's avatar
Julien Cristau committed
121
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview'),
Julien Cristau's avatar
Julien Cristau committed
122
123
124
125
126
         [join(_data_dir, 'jquery-treeview', fname) for fname in listdir(join(_data_dir, 'jquery-treeview'))
          if not isdir(join(_data_dir, 'jquery-treeview', fname))]],
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview', 'images'),
         [join(_data_dir, 'jquery-treeview', 'images', fname)
          for fname in listdir(join(_data_dir, 'jquery-treeview', 'images'))]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
127
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
128
129
         [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
130
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
131
         [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
132
        [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
133
         glob.glob(join(_i18n_dir, '*.po'))],
134
        # skeleton
Adrien Di Mascio's avatar
Adrien Di Mascio committed
135
136
137
138
        ]
except OSError:
    # we are in an installed directory, don't care about this
    pass