test/data/cubes/file/__pkginfo__.py
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 14 Aug 2009 18:55:31 +0200
branchstable
changeset 2858 322272c5d67f
parent 1977 606923dff11b
child 4212 ab6573088b4a
permissions -rw-r--r--
B sync after migration and restart so that cwuri does not show in forms
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1341
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
     1
# pylint: disable-msg=W0622
1977
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     2
"""cubicweb-file packaging information
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     3
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     4
:organization: Logilab
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     5
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     6
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     7
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
     8
"""
1341
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
     9
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    10
distname = "cubicweb-file"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    11
modname = distname.split('-', 1)[1]
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    12
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    13
numversion = (1, 4, 3)
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    14
version = '.'.join(str(num) for num in numversion)
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    15
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    16
license = 'LGPL'
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    17
copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE).
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    18
http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    19
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    20
author = "Logilab"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    21
author_email = "contact@logilab.fr"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    22
web = ''
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    23
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    24
short_desc = "Raw file support for the CubicWeb framework"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    25
long_desc = """CubicWeb is a entities / relations bases knowledge management system
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    26
developped at Logilab.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    27
.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    28
This package provides schema and views to store files and images in cubicweb
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    29
applications.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    30
.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    31
"""
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    32
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    33
from os import listdir
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    34
from os.path import join
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    35
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    36
CUBES_DIR = join('share', 'cubicweb', 'cubes')
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    37
try:
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    38
    data_files = [
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    39
        [join(CUBES_DIR, 'file'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    40
         [fname for fname in listdir('.')
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    41
          if fname.endswith('.py') and fname != 'setup.py']],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    42
        [join(CUBES_DIR, 'file', 'data'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    43
         [join('data', fname) for fname in listdir('data')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    44
        [join(CUBES_DIR, 'file', 'wdoc'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    45
         [join('wdoc', fname) for fname in listdir('wdoc')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    46
        [join(CUBES_DIR, 'file', 'views'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    47
         [join('views', fname) for fname in listdir('views') if fname.endswith('.py')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    48
        [join(CUBES_DIR, 'file', 'i18n'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    49
         [join('i18n', fname) for fname in listdir('i18n')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    50
        [join(CUBES_DIR, 'file', 'migration'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    51
         [join('migration', fname) for fname in listdir('migration')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    52
        ]
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    53
except OSError:
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    54
    # we are in an installed directory
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    55
    pass
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    56
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    57
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    58
cube_eid = 20320
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    59
# used packages
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    60
__use__ = ()