cubicweb/server/test/data-migractions/cubes/fakeemail/__pkginfo__.py
changeset 11057 0b59724cb3f2
parent 10487 49a5c38de1de
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
       
     1 # pylint: disable-msg=W0622
       
     2 """cubicweb-fakeemail packaging information"""
       
     3 
       
     4 modname = 'fakeemail'
       
     5 distname = "cubicweb-%s" % modname
       
     6 
       
     7 numversion = (1, 10, 0)
       
     8 version = '.'.join(str(num) for num in numversion)
       
     9 
       
    10 license = 'LGPL'
       
    11 author = "Logilab"
       
    12 author_email = "contact@logilab.fr"
       
    13 web = 'http://www.cubicweb.org/project/%s' % distname
       
    14 description = "email component for the CubicWeb framework"
       
    15 classifiers = [
       
    16            'Environment :: Web Environment',
       
    17            'Framework :: CubicWeb',
       
    18            'Programming Language :: Python',
       
    19            'Programming Language :: JavaScript',
       
    20 ]
       
    21 
       
    22 # used packages
       
    23 __depends__ = {'cubicweb': '>= 3.19.0',
       
    24                'cubicweb-file': '>= 1.9.0',
       
    25                'logilab-common': '>= 0.58.3',
       
    26                }
       
    27 __recommends__ = {'cubicweb-comment': None}
       
    28 
       
    29 
       
    30 # packaging ###
       
    31 
       
    32 from os import listdir as _listdir
       
    33 from os.path import join, isdir
       
    34 from glob import glob
       
    35 
       
    36 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
       
    37 
       
    38 def listdir(dirpath):
       
    39     return [join(dirpath, fname) for fname in _listdir(dirpath)
       
    40             if fname[0] != '.' and not fname.endswith('.pyc')
       
    41             and not fname.endswith('~')
       
    42             and not isdir(join(dirpath, fname))]
       
    43 
       
    44 data_files = [
       
    45     # common files
       
    46     [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
       
    47     ]
       
    48 # check for possible extended cube layout
       
    49 for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration', 'wdoc'):
       
    50     if isdir(dirname):
       
    51         data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
       
    52 # Note: here, you'll need to add subdirectories if you want
       
    53 # them to be included in the debian package