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

Julien Cristau's avatar
Julien Cristau committed
7
numversion = (0, 5, 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.19.0',
24
               'pycrypto': None,
Sylvain Thénault's avatar
Sylvain Thénault committed
25
26
               'PIL': None,
               }
Charles Hebert's avatar
0.1.0  
Charles Hebert committed
27
28


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

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