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