__pkginfo__.py
changeset 11632 b05f361db666
child 11640 e45e4999dc98
equal deleted inserted replaced
-1:000000000000 11632:b05f361db666
       
     1 # pylint: disable=W0622
       
     2 """cubicweb-pyramid application packaging information"""
       
     3 
       
     4 modname = 'pyramid'
       
     5 distname = 'cubicweb-pyramid'
       
     6 
       
     7 numversion = (0, 1, 0)
       
     8 version = '.'.join(str(num) for num in numversion)
       
     9 
       
    10 license = 'LGPL'
       
    11 author = 'LOGILAB S.A. (Paris, FRANCE)'
       
    12 author_email = 'contact@logilab.fr'
       
    13 description = "Add the 'pyramid' command to cubicweb-ctl"
       
    14 web = 'http://www.cubicweb.org/project/%s' % distname
       
    15 
       
    16 __depends__ = {'cubicweb': '>= 3.19.3'}
       
    17 __recommends__ = {}
       
    18 
       
    19 classifiers = [
       
    20     'Environment :: Web Environment',
       
    21     'Framework :: CubicWeb',
       
    22     'Programming Language :: Python',
       
    23     'Programming Language :: JavaScript',
       
    24     ]
       
    25 
       
    26 from os import listdir as _listdir
       
    27 from os.path import join, isdir
       
    28 from glob import glob
       
    29 
       
    30 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
       
    31 
       
    32 def listdir(dirpath):
       
    33     return [join(dirpath, fname) for fname in _listdir(dirpath)
       
    34             if fname[0] != '.' and not fname.endswith('.pyc')
       
    35             and not fname.endswith('~')
       
    36             and not isdir(join(dirpath, fname))]
       
    37 
       
    38 data_files = [
       
    39     # common files
       
    40     [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
       
    41     ]
       
    42 # check for possible extended cube layout
       
    43 for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'wdoc', 'i18n', 'migration'):
       
    44     if isdir(dname):
       
    45         data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
       
    46 # Note: here, you'll need to add subdirectories if you want
       
    47 # them to be included in the debian package
       
    48