author | David Douard <david.douard@logilab.fr> |
Wed, 22 Jul 2015 17:03:43 +0200 | |
changeset 11653 | 18939907a115 |
parent 11649 | 8914052abdca |
child 11654 | 00bec1345a78 |
permissions | -rw-r--r-- |
11632 | 1 |
# pylint: disable=W0622 |
2 |
"""cubicweb-pyramid application packaging information""" |
|
3 |
||
4 |
modname = 'pyramid' |
|
5 |
distname = 'cubicweb-pyramid' |
|
6 |
||
11649
8914052abdca
Set version 0.2.0
Christophe de Vienne <christophe@unlish.com>
parents:
11646
diff
changeset
|
7 |
numversion = (0, 2, 0) |
11632 | 8 |
version = '.'.join(str(num) for num in numversion) |
9 |
||
10 |
license = 'LGPL' |
|
11642
3defbb0f147a
Prepare release
Christophe de Vienne <christophe@unlish.com>
parents:
11640
diff
changeset
|
11 |
author = 'UNLISH S.A.S. (Montpellier, FRANCE)' |
3defbb0f147a
Prepare release
Christophe de Vienne <christophe@unlish.com>
parents:
11640
diff
changeset
|
12 |
author_email = 'contact@unlish.com' |
11632 | 13 |
description = "Add the 'pyramid' command to cubicweb-ctl" |
14 |
web = 'http://www.cubicweb.org/project/%s' % distname |
|
15 |
||
11644
41bd2b316228
Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents:
11642
diff
changeset
|
16 |
__depends__ = { |
41bd2b316228
Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents:
11642
diff
changeset
|
17 |
'cubicweb': '>= 3.19.3', |
41bd2b316228
Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents:
11642
diff
changeset
|
18 |
'wsgicors': '>= 0.3', |
11649
8914052abdca
Set version 0.2.0
Christophe de Vienne <christophe@unlish.com>
parents:
11646
diff
changeset
|
19 |
'pyramid-cubicweb': '>= 0.2.0' |
11644
41bd2b316228
Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents:
11642
diff
changeset
|
20 |
} |
11632 | 21 |
__recommends__ = {} |
22 |
||
23 |
classifiers = [ |
|
24 |
'Environment :: Web Environment', |
|
25 |
'Framework :: CubicWeb', |
|
26 |
'Programming Language :: Python', |
|
27 |
'Programming Language :: JavaScript', |
|
28 |
] |
|
29 |
||
30 |
from os import listdir as _listdir |
|
31 |
from os.path import join, isdir |
|
32 |
from glob import glob |
|
33 |
||
34 |
THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname) |
|
35 |
||
36 |
def listdir(dirpath): |
|
37 |
return [join(dirpath, fname) for fname in _listdir(dirpath) |
|
38 |
if fname[0] != '.' and not fname.endswith('.pyc') |
|
39 |
and not fname.endswith('~') |
|
40 |
and not isdir(join(dirpath, fname))] |
|
41 |
||
42 |
data_files = [ |
|
43 |
# common files |
|
44 |
[THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], |
|
45 |
] |
|
46 |
# check for possible extended cube layout |
|
47 |
for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'wdoc', 'i18n', 'migration'): |
|
48 |
if isdir(dname): |
|
49 |
data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)]) |
|
50 |
# Note: here, you'll need to add subdirectories if you want |
|
51 |
# them to be included in the debian package |
|
52 |