__pkginfo__.py 1.6 KB
Newer Older
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
1
2
3
4
5
6
# pylint: disable-msg=W0622
"""cubicweb-forgotpwd application packaging information"""

modname = 'forgotpwd'
distname = 'cubicweb-forgotpwd'

Denis Laxalde's avatar
Denis Laxalde committed
7
numversion = (0, 9, 0)
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
8
9
version = '.'.join(str(num) for num in numversion)

Sylvain Thénault's avatar
Sylvain Thénault committed
10
license = 'LGPL'
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
11
12
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
Nicolas Chauvat's avatar
Nicolas Chauvat committed
13
description = 'password recovery component for the CubicWeb framework'
Sylvain Thénault's avatar
Sylvain Thénault committed
14
web = 'http://www.cubicweb.org/project/%s' % distname
Sylvain Thénault's avatar
Sylvain Thénault committed
15

16
17
18
19
20
21
22
classifiers = [
    'Environment :: Web Environment',
    'Framework :: CubicWeb',
    'Programming Language :: Python',
    'Programming Language :: JavaScript',
    ]

23
__depends__ = {'cubicweb': '>= 3.25.0',
24
               'pycrypto': None,
25
               'Pillow': None,
26
               'six': None,
Sylvain Thénault's avatar
Sylvain Thénault committed
27
               }
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
28
29


Sylvain Thénault's avatar
Sylvain Thénault committed
30
# packaging ###
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
31
32

from os import listdir as _listdir
Sylvain Thénault's avatar
Sylvain Thénault committed
33
from os.path import join, isdir
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from glob import glob

THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)

def listdir(dirpath):
    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))]

data_files = [
    # common files
    [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
    ]
# check for possible extended cube layout
Sylvain Thénault's avatar
Sylvain Thénault committed
49
50
51
for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration', 'wdoc'):
    if isdir(dirname):
        data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
52
53
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package