author | sylvain.thenault@logilab.fr |
Tue, 10 Mar 2009 19:35:38 +0100 | |
branch | tls-sprint |
changeset 1036 | 593df4919845 |
parent 548 | 195a0065aaae |
child 1438 | 21b8f3961e6f |
permissions | -rw-r--r-- |
0 | 1 |
# pylint: disable-msg=W0622 |
2 |
"""%(distname)s application packaging information""" |
|
3 |
||
548
195a0065aaae
missing quotes #102063
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
538
diff
changeset
|
4 |
modname = '%(cubename)s' |
0 | 5 |
distname = '%(distname)s' |
6 |
||
7 |
numversion = (0, 1, 0) |
|
8 |
version = '.'.join(str(num) for num in numversion) |
|
9 |
||
10 |
license = 'LCL' |
|
365
5d8336b70aa7
make author information configurable
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
319
diff
changeset
|
11 |
copyright = '''Copyright (c) %(year)s %(author)s. |
5d8336b70aa7
make author information configurable
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
319
diff
changeset
|
12 |
%(author-web-site)s -- mailto:%(author-email)s''' |
0 | 13 |
|
458
99712f0d5472
fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
365
diff
changeset
|
14 |
author = '%(author)s' |
99712f0d5472
fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
365
diff
changeset
|
15 |
author_email = '%(author-email)s' |
0 | 16 |
|
17 |
short_desc = '%(shortdesc)s' |
|
18 |
long_desc = '''%(longdesc)s''' |
|
19 |
||
20 |
from os import listdir as _listdir |
|
21 |
from os.path import join, isdir |
|
22 |
||
319
00ada106b138
fix skeleton __pkginfo__ template
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
232
diff
changeset
|
23 |
web = 'http://www.cubicweb.org/project/%%s' %% distname |
0 | 24 |
|
25 |
pyversions = ['2.4'] |
|
26 |
||
27 |
#from cubicweb.devtools.pkginfo import get_distutils_datafiles |
|
28 |
CUBES_DIR = join('share', 'cubicweb', 'cubes') |
|
29 |
THIS_CUBE_DIR = join(CUBES_DIR, '%(cubename)s') |
|
30 |
||
31 |
def listdir(dirpath): |
|
32 |
return [join(dirpath, fname) for fname in _listdir(dirpath) |
|
33 |
if fname[0] != '.' and not fname.endswith('.pyc') |
|
34 |
and not fname.endswith('~')] |
|
35 |
||
166
879d78d37d47
missing import
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
36 |
from glob import glob |
0 | 37 |
try: |
38 |
data_files = [ |
|
39 |
# common files |
|
40 |
[THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']], |
|
139 | 41 |
] |
0 | 42 |
# check for possible extended cube layout |
232
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
166
diff
changeset
|
43 |
for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'): |
0 | 44 |
if isdir(dirname): |
45 |
data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)]) |
|
46 |
# Note: here, you'll need to add subdirectories if you want |
|
47 |
# them to be included in the debian package |
|
48 |
except OSError: |
|
49 |
# we are in an installed directory |
|
50 |
pass |
|
51 |
||
52 |
||
53 |
cube_eid = None # <=== FIXME if you need direct bug-subscription |
|
54 |
__use__ = (%(dependancies)s) |
|
139 | 55 |
__recommend__ = () |
0 | 56 |