__pkginfo__.py 1.4 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'

Sylvain Thénault's avatar
0.4    
Sylvain Thénault committed
7
numversion = (0, 4, 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

Sylvain Thénault's avatar
Sylvain Thénault committed
16
__depends__ = {'cubicweb': '>= 3.9.0',
17
               'pycrypto': None,
Sylvain Thénault's avatar
Sylvain Thénault committed
18
19
               'PIL': None,
               }
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
20
21


Sylvain Thénault's avatar
Sylvain Thénault committed
22
# packaging ###
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
23
24

from os import listdir as _listdir
Sylvain Thénault's avatar
Sylvain Thénault committed
25
from os.path import join, isdir
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
41
42
43
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
44
45
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package