author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> |
Thu, 29 Apr 2010 13:54:00 +0200 | |
branch | oldstable |
changeset 5439 | c476d106705e |
parent 5424 | 8ecbcbff9777 |
child 5456 | d040889fac4e |
child 5469 | 4746c157e5e4 |
permissions | -rw-r--r-- |
0 | 1 |
# pylint: disable-msg=W0622,C0103 |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
2 |
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
3 |
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
4 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
5 |
# This file is part of CubicWeb. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
6 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
7 |
# CubicWeb is free software: you can redistribute it and/or modify it under the |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
8 |
# terms of the GNU Lesser General Public License as published by the Free |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
9 |
# Software Foundation, either version 2.1 of the License, or (at your option) |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
10 |
# any later version. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
11 |
# |
5424
8ecbcbff9777
replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5421
diff
changeset
|
12 |
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
13 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
14 |
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
15 |
# details. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
16 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
17 |
# You should have received a copy of the GNU Lesser General Public License along |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
18 |
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
0 | 19 |
"""cubicweb global packaging information for the cubicweb knowledge management |
20 |
software |
|
21 |
""" |
|
22 |
||
23 |
distname = "cubicweb" |
|
24 |
modname = "cubicweb" |
|
25 |
||
5439
c476d106705e
prepare 3.7.5 release
Alexandre Fayolle <alexandre.fayolle@logilab.fr>
parents:
5424
diff
changeset
|
26 |
numversion = (3, 7, 5) |
0 | 27 |
version = '.'.join(str(num) for num in numversion) |
28 |
||
3787
82bb2c7f083b
C - fix typo. make `lgp check` happy.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3769
diff
changeset
|
29 |
license = 'LGPL' |
4212
ab6573088b4a
update copyright: welcome 2010
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4201
diff
changeset
|
30 |
copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). |
0 | 31 |
http://www.logilab.fr/ -- mailto:contact@logilab.fr''' |
32 |
||
33 |
author = "Logilab" |
|
34 |
author_email = "contact@logilab.fr" |
|
35 |
||
36 |
short_desc = "a repository of entities / relations for knowledge management" |
|
37 |
long_desc = """CubicWeb is a entities / relations based knowledge management system |
|
38 |
developped at Logilab. |
|
39 |
||
40 |
This package contains: |
|
41 |
* a repository server |
|
42 |
* a RQL command line client to the repository |
|
43 |
* an adaptative modpython interface to the server |
|
44 |
* a bunch of other management tools |
|
45 |
""" |
|
46 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
47 |
web = 'http://www.cubicweb.org' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
48 |
ftp = 'ftp://ftp.logilab.org/pub/cubicweb' |
4833
41a78fb4107c
3.7 depends on python >= 2.5
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4733
diff
changeset
|
49 |
pyversions = ['2.5', '2.6'] |
0 | 50 |
|
2419 | 51 |
classifiers = [ |
52 |
'Environment :: Web Environment', |
|
53 |
'Framework :: CubicWeb', |
|
54 |
'Programming Language :: Python', |
|
55 |
'Programming Language :: JavaScript', |
|
56 |
] |
|
57 |
||
0 | 58 |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
59 |
import sys |
0 | 60 |
from os import listdir, environ |
61 |
from os.path import join, isdir |
|
62 |
import glob |
|
63 |
||
64 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
65 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
66 |
include_dirs = [join('test', 'data'), |
0 | 67 |
join('server', 'test', 'data'), |
68 |
join('web', 'test', 'data'), |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
69 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
70 |
'skeleton'] |
0 | 71 |
|
72 |
||
73 |
entities_dir = 'entities' |
|
74 |
schema_dir = 'schemas' |
|
75 |
sobjects_dir = 'sobjects' |
|
76 |
server_migration_dir = join('misc', 'migration') |
|
77 |
data_dir = join('web', 'data') |
|
78 |
wdoc_dir = join('web', 'wdoc') |
|
79 |
wdocimages_dir = join(wdoc_dir, 'images') |
|
80 |
views_dir = join('web', 'views') |
|
81 |
i18n_dir = 'i18n' |
|
82 |
||
83 |
if environ.get('APYCOT_ROOT'): |
|
84 |
# --home install |
|
85 |
pydir = 'python' |
|
86 |
else: |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
87 |
python_version = '.'.join(str(num) for num in sys.version_info[0:2]) |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
88 |
pydir = join('python' + python_version, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
89 |
|
0 | 90 |
try: |
91 |
data_files = [ |
|
92 |
# common data |
|
93 |
#[join('share', 'cubicweb', 'entities'), |
|
94 |
# [join(entities_dir, filename) for filename in listdir(entities_dir)]], |
|
95 |
# server data |
|
96 |
[join('share', 'cubicweb', 'schemas'), |
|
97 |
[join(schema_dir, filename) for filename in listdir(schema_dir)]], |
|
98 |
#[join('share', 'cubicweb', 'sobjects'), |
|
99 |
# [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]], |
|
100 |
[join('share', 'cubicweb', 'migration'), |
|
101 |
[join(server_migration_dir, filename) |
|
102 |
for filename in listdir(server_migration_dir)]], |
|
103 |
# web data |
|
104 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
105 |
[join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]], |
|
106 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
|
107 |
[join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]], |
|
5110
e1f0fb044d94
[distribution] the web/data/images directory has to be handled in pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5045
diff
changeset
|
108 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'), |
5118
768beb8e15f1
[distrib] fix pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5117
diff
changeset
|
109 |
[join(data_dir, 'images', fname) for fname in listdir(join(data_dir, 'images'))]], |
0 | 110 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
111 |
[join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]], |
|
112 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
|
113 |
[join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]], |
|
114 |
# XXX: .pt install should be handled properly in a near future version |
|
115 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
|
116 |
[join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]], |
|
117 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
|
118 |
[join(i18n_dir, fname) for fname in listdir(i18n_dir)]], |
|
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
119 |
# skeleton |
0 | 120 |
] |
121 |
except OSError: |
|
122 |
# we are in an installed directory, don't care about this |
|
123 |
pass |