__pkginfo__.py 4.63 KB
Newer Older
Adrien Di Mascio's avatar
Adrien Di Mascio committed
1
# pylint: disable-msg=W0622,C0103
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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.
#
# logilab-common is distributed in the hope that it will be useful, but WITHOUT
# 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
23
24
25
"""cubicweb global packaging information for the cubicweb knowledge management
software
"""

distname = "cubicweb"
modname = "cubicweb"

Sylvain Thénault's avatar
3.7.4    
Sylvain Thénault committed
26
numversion = (3, 7, 4)
Adrien Di Mascio's avatar
Adrien Di Mascio committed
27
28
version = '.'.join(str(num) for num in numversion)

29
license = 'LGPL'
30
copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
Adrien Di Mascio's avatar
Adrien Di Mascio committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
http://www.logilab.fr/ -- mailto:contact@logilab.fr'''

author = "Logilab"
author_email = "contact@logilab.fr"

short_desc = "a repository of entities / relations for knowledge management"
long_desc = """CubicWeb is a entities / relations based knowledge management system
developped at Logilab.

This package contains:
* a repository server
* a RQL command line client to the repository
* an adaptative modpython interface to the server
* a bunch of other management tools
"""

47
48
web = 'http://www.cubicweb.org'
ftp = 'ftp://ftp.logilab.org/pub/cubicweb'
49
pyversions = ['2.5', '2.6']
Adrien Di Mascio's avatar
Adrien Di Mascio committed
50

Arthur Lutz's avatar
Arthur Lutz committed
51
52
53
54
55
56
57
classifiers = [
           'Environment :: Web Environment',
           'Framework :: CubicWeb',
           'Programming Language :: Python',
           'Programming Language :: JavaScript',
]

Adrien Di Mascio's avatar
Adrien Di Mascio committed
58

59
import sys
Adrien Di Mascio's avatar
Adrien Di Mascio committed
60
61
62
63
64
65
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
66
include_dirs = [join('test', 'data'),
Adrien Di Mascio's avatar
Adrien Di Mascio committed
67
68
                join('server', 'test', 'data'),
                join('web', 'test', 'data'),
Sylvain Thenault's avatar
Sylvain Thenault committed
69
70
                join('devtools', 'test', 'data'),
                'skeleton']
Adrien Di Mascio's avatar
Adrien Di Mascio committed
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86


entities_dir = 'entities'
schema_dir = 'schemas'
sobjects_dir = 'sobjects'
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'

if environ.get('APYCOT_ROOT'):
    # --home install
    pydir = 'python'
else:
87
88
    python_version = '.'.join(str(num) for num in sys.version_info[0:2])
    pydir = join('python' + python_version, 'site-packages')
89

Adrien Di Mascio's avatar
Adrien Di Mascio committed
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
try:
    data_files = [
        # common data
        #[join('share', 'cubicweb', 'entities'),
        # [join(entities_dir, filename) for filename in listdir(entities_dir)]],
        # server data
        [join('share', 'cubicweb', 'schemas'),
         [join(schema_dir, filename) for filename in listdir(schema_dir)]],
        #[join('share', 'cubicweb', 'sobjects'),
        # [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]],
        [join('share', 'cubicweb', 'migration'),
         [join(server_migration_dir, filename)
          for filename in listdir(server_migration_dir)]],
        # web data
        [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
         [join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]],
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'),
         [join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]],
108
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'),
Sylvain Thénault's avatar
Sylvain Thénault committed
109
         [join(data_dir, 'images', fname) for fname in listdir(join(data_dir, 'images'))]],
Adrien Di Mascio's avatar
Adrien Di Mascio committed
110
111
112
113
114
115
116
117
118
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
         [join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]],
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
         [join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]],
        # XXX: .pt install should be handled properly in a near future version
        [join('lib', pydir, 'cubicweb', 'web', 'views'),
         [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
        [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
         [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
119
        # skeleton
Adrien Di Mascio's avatar
Adrien Di Mascio committed
120
121
122
123
        ]
except OSError:
    # we are in an installed directory, don't care about this
    pass