__pkginfo__.py 1.53 KB
Newer Older
1
2
3
# pylint: disable-msg=W0622
"""cubicweb-fakeemail packaging information"""

4
modname = "fakeemail"
5
6
7
distname = "cubicweb-%s" % modname

numversion = (1, 10, 0)
8
version = ".".join(str(num) for num in numversion)
9

10
license = "LGPL"
11
12
author = "Logilab"
author_email = "contact@logilab.fr"
13
web = "http://www.cubicweb.org/project/%s" % distname
14
15
description = "email component for the CubicWeb framework"
classifiers = [
16
17
18
19
    "Environment :: Web Environment",
    "Framework :: CubicWeb",
    "Programming Language :: Python",
    "Programming Language :: JavaScript",
20
21
22
]

# used packages
23
24
25
26
27
28
__depends__ = {
    "cubicweb": ">= 3.19.0",
    "cubicweb-file": ">= 1.9.0",
    "logilab-common": ">= 0.58.3",
}
__recommends__ = {"cubicweb-comment": None}
29
30
31
32
33
34
35
36


# packaging ###

from os import listdir as _listdir
from os.path import join, isdir
from glob import glob

37
THIS_CUBE_DIR = join("share", "cubicweb", "cubes", modname)
38

39

40
def listdir(dirpath):
41
42
43
44
45
46
47
48
    return [
        join(dirpath, fname)
        for fname in _listdir(dirpath)
        if fname[0] != "."
        and not fname.endswith(".pyc")
        and not fname.endswith("~")
        and not isdir(join(dirpath, fname))
    ]
49

50

51
52
data_files = [
    # common files
53
    [THIS_CUBE_DIR, [fname for fname in glob("*.py") if fname != "setup.py"]],
54
]
55
# check for possible extended cube layout
56
57
58
59
60
61
62
63
64
65
66
for dirname in (
    "entities",
    "views",
    "sobjects",
    "hooks",
    "schema",
    "data",
    "i18n",
    "migration",
    "wdoc",
):
67
68
    if isdir(dirname):
        data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])