__pkginfo__.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 23 Dec 2015 11:53:04 +0100
changeset 11669 92a6abe992ac
parent 11665 d72a913b2ffe
child 11675 f81823952745
permissions -rw-r--r--
Added tag 0.3.2, debian/0.3.2-1 for changeset ab4c5509407f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
# pylint: disable=W0622
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
"""cubicweb-pyramid application packaging information"""
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
modname = 'pyramid'
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
distname = 'cubicweb-pyramid'
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     6
11665
d72a913b2ffe [pkg] 0.3.2
Julien Cristau <julien.cristau@logilab.fr>
parents: 11659
diff changeset
     7
numversion = (0, 3, 2)
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     8
version = '.'.join(str(num) for num in numversion)
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     9
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
license = 'LGPL'
11642
3defbb0f147a Prepare release
Christophe de Vienne <christophe@unlish.com>
parents: 11640
diff changeset
    11
author = 'UNLISH S.A.S. (Montpellier, FRANCE)'
3defbb0f147a Prepare release
Christophe de Vienne <christophe@unlish.com>
parents: 11640
diff changeset
    12
author_email = 'contact@unlish.com'
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    13
description = "Add the 'pyramid' command to cubicweb-ctl"
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    14
web = 'http://www.cubicweb.org/project/%s' % distname
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    15
11644
41bd2b316228 Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents: 11642
diff changeset
    16
__depends__ = {
41bd2b316228 Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents: 11642
diff changeset
    17
    'cubicweb': '>= 3.19.3',
41bd2b316228 Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents: 11642
diff changeset
    18
    'wsgicors': '>= 0.3',
11654
00bec1345a78 [pkg] depends on waitress (closes #5576180)
David Douard <david.douard@logilab.fr>
parents: 11649
diff changeset
    19
    'pyramid-cubicweb': '>= 0.2.0',
00bec1345a78 [pkg] depends on waitress (closes #5576180)
David Douard <david.douard@logilab.fr>
parents: 11649
diff changeset
    20
    'waitress': None,
11644
41bd2b316228 Move the cors middleware initialisation to pyramid-cubicweb to reduce code duplication
Christophe de Vienne <christophe@unlish.com>
parents: 11642
diff changeset
    21
}
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    22
__recommends__ = {}
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    23
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    24
classifiers = [
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    25
    'Environment :: Web Environment',
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    26
    'Framework :: CubicWeb',
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    27
    'Programming Language :: Python',
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    28
    'Programming Language :: JavaScript',
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    29
    ]
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    30
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    31
from os import listdir as _listdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    32
from os.path import join, isdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    33
from glob import glob
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    34
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    35
THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    36
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    37
def listdir(dirpath):
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    38
    return [join(dirpath, fname) for fname in _listdir(dirpath)
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    39
            if fname[0] != '.' and not fname.endswith('.pyc')
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    40
            and not fname.endswith('~')
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    41
            and not isdir(join(dirpath, fname))]
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    42
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    43
data_files = [
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    44
    # common files
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    45
    [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    46
    ]
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    47
# check for possible extended cube layout
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    48
for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'wdoc', 'i18n', 'migration'):
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    49
    if isdir(dname):
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    50
        data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    51
# Note: here, you'll need to add subdirectories if you want
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    52
# them to be included in the debian package
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    53