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