author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Fri, 14 Aug 2009 18:55:31 +0200 | |
branch | stable |
changeset 2858 | 322272c5d67f |
parent 1977 | 606923dff11b |
child 4212 | ab6573088b4a |
permissions | -rw-r--r-- |
1341 | 1 |
# pylint: disable-msg=W0622 |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
2 |
"""cubicweb-file packaging information |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
3 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
4 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
5 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
6 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
7 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1341
diff
changeset
|
8 |
""" |
1341 | 9 |
|
10 |
distname = "cubicweb-file" |
|
11 |
modname = distname.split('-', 1)[1] |
|
12 |
||
13 |
numversion = (1, 4, 3) |
|
14 |
version = '.'.join(str(num) for num in numversion) |
|
15 |
||
16 |
license = 'LGPL' |
|
17 |
copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE). |
|
18 |
http://www.logilab.fr/ -- mailto:contact@logilab.fr''' |
|
19 |
||
20 |
author = "Logilab" |
|
21 |
author_email = "contact@logilab.fr" |
|
22 |
web = '' |
|
23 |
||
24 |
short_desc = "Raw file support for the CubicWeb framework" |
|
25 |
long_desc = """CubicWeb is a entities / relations bases knowledge management system |
|
26 |
developped at Logilab. |
|
27 |
. |
|
28 |
This package provides schema and views to store files and images in cubicweb |
|
29 |
applications. |
|
30 |
. |
|
31 |
""" |
|
32 |
||
33 |
from os import listdir |
|
34 |
from os.path import join |
|
35 |
||
36 |
CUBES_DIR = join('share', 'cubicweb', 'cubes') |
|
37 |
try: |
|
38 |
data_files = [ |
|
39 |
[join(CUBES_DIR, 'file'), |
|
40 |
[fname for fname in listdir('.') |
|
41 |
if fname.endswith('.py') and fname != 'setup.py']], |
|
42 |
[join(CUBES_DIR, 'file', 'data'), |
|
43 |
[join('data', fname) for fname in listdir('data')]], |
|
44 |
[join(CUBES_DIR, 'file', 'wdoc'), |
|
45 |
[join('wdoc', fname) for fname in listdir('wdoc')]], |
|
46 |
[join(CUBES_DIR, 'file', 'views'), |
|
47 |
[join('views', fname) for fname in listdir('views') if fname.endswith('.py')]], |
|
48 |
[join(CUBES_DIR, 'file', 'i18n'), |
|
49 |
[join('i18n', fname) for fname in listdir('i18n')]], |
|
50 |
[join(CUBES_DIR, 'file', 'migration'), |
|
51 |
[join('migration', fname) for fname in listdir('migration')]], |
|
52 |
] |
|
53 |
except OSError: |
|
54 |
# we are in an installed directory |
|
55 |
pass |
|
56 |
||
57 |
||
58 |
cube_eid = 20320 |
|
59 |
# used packages |
|
60 |
__use__ = () |