11 author = "Logilab" |
11 author = "Logilab" |
12 author_email = "contact@logilab.fr" |
12 author_email = "contact@logilab.fr" |
13 web = 'http://www.cubicweb.org/project/%s' % distname |
13 web = 'http://www.cubicweb.org/project/%s' % distname |
14 description = "email component for the CubicWeb framework" |
14 description = "email component for the CubicWeb framework" |
15 classifiers = [ |
15 classifiers = [ |
16 'Environment :: Web Environment', |
16 'Environment :: Web Environment', |
17 'Framework :: CubicWeb', |
17 'Framework :: CubicWeb', |
18 'Programming Language :: Python', |
18 'Programming Language :: Python', |
19 'Programming Language :: JavaScript', |
19 'Programming Language :: JavaScript', |
20 ] |
20 ] |
21 |
21 |
22 # used packages |
22 # used packages |
23 __depends__ = {'cubicweb': '>= 3.19.0', |
23 __depends__ = {'cubicweb': '>= 3.19.0', |
24 'cubicweb-file': '>= 1.9.0', |
24 'cubicweb-file': '>= 1.9.0', |
33 from os.path import join, isdir |
33 from os.path import join, isdir |
34 from glob import glob |
34 from glob import glob |
35 |
35 |
36 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname) |
36 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname) |
37 |
37 |
|
38 |
38 def listdir(dirpath): |
39 def listdir(dirpath): |
39 return [join(dirpath, fname) for fname in _listdir(dirpath) |
40 return [join(dirpath, fname) for fname in _listdir(dirpath) |
40 if fname[0] != '.' and not fname.endswith('.pyc') |
41 if fname[0] != '.' and not fname.endswith('.pyc') |
41 and not fname.endswith('~') |
42 and not fname.endswith('~') |
42 and not isdir(join(dirpath, fname))] |
43 and not isdir(join(dirpath, fname))] |
43 |
44 |
|
45 |
44 data_files = [ |
46 data_files = [ |
45 # common files |
47 # common files |
46 [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], |
48 [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], |
47 ] |
49 ] |
48 # check for possible extended cube layout |
50 # check for possible extended cube layout |
49 for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration', 'wdoc'): |
51 for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', |
|
52 'i18n', 'migration', 'wdoc'): |
50 if isdir(dirname): |
53 if isdir(dirname): |
51 data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)]) |
54 data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)]) |
52 # Note: here, you'll need to add subdirectories if you want |
55 # Note: here, you'll need to add subdirectories if you want |
53 # them to be included in the debian package |
56 # them to be included in the debian package |