cubicweb/server/test/data-migractions/cubes/fakecustomtype/__pkginfo__.py
changeset 11057 0b59724cb3f2
parent 11006 096adb786873
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
       
     1 # pylint: disable-msg=W0622
       
     2 """cubicweb-fakeemail packaging information"""
       
     3 
       
     4 modname = 'fakecustomtype'
       
     5 distname = "cubicweb-%s" % modname
       
     6 
       
     7 numversion = (1, 0, 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 = "whatever"
       
    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                }
       
    25 
       
    26 
       
    27 # packaging ###
       
    28 
       
    29 from os import listdir as _listdir
       
    30 from os.path import join, isdir
       
    31 from glob import glob
       
    32 
       
    33 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
       
    34 
       
    35 def listdir(dirpath):
       
    36     return [join(dirpath, fname) for fname in _listdir(dirpath)
       
    37             if fname[0] != '.' and not fname.endswith('.pyc')
       
    38             and not fname.endswith('~')
       
    39             and not isdir(join(dirpath, fname))]
       
    40 
       
    41 data_files = [
       
    42     # common files
       
    43     [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
       
    44     ]
       
    45 # check for possible extended cube layout
       
    46 for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration', 'wdoc'):
       
    47     if isdir(dirname):
       
    48         data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
       
    49 # Note: here, you'll need to add subdirectories if you want
       
    50 # them to be included in the debian package