test/data/cubes/file/__pkginfo__.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 28 Apr 2010 12:15:52 +0200
brancholdstable
changeset 5424 8ecbcbff9777
parent 5421 8167de96c523
child 5426 0d4853a6e5ee
permissions -rw-r--r--
replace logilab-common by CubicWeb in disclaimer
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
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     2
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     3
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     4
#
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     5
# This file is part of CubicWeb.
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     6
#
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     7
# CubicWeb is free software: you can redistribute it and/or modify it under the
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     8
# terms of the GNU Lesser General Public License as published by the Free
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
     9
# Software Foundation, either version 2.1 of the License, or (at your option)
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    10
# any later version.
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    11
#
5424
8ecbcbff9777 replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5421
diff changeset
    12
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    13
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    14
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    15
# details.
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    16
#
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    17
# You should have received a copy of the GNU Lesser General Public License along
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 4212
diff changeset
    18
# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
1977
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
    19
"""cubicweb-file packaging information
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
    20
606923dff11b big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1341
diff changeset
    21
"""
1341
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    22
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    23
distname = "cubicweb-file"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    24
modname = distname.split('-', 1)[1]
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    25
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    26
numversion = (1, 4, 3)
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    27
version = '.'.join(str(num) for num in numversion)
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    28
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    29
license = 'LGPL'
4212
ab6573088b4a update copyright: welcome 2010
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 1977
diff changeset
    30
copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
1341
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    31
http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    32
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    33
author = "Logilab"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    34
author_email = "contact@logilab.fr"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    35
web = ''
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    36
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    37
short_desc = "Raw file support for the CubicWeb framework"
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    38
long_desc = """CubicWeb is a entities / relations bases knowledge management system
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    39
developped at Logilab.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    40
.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    41
This package provides schema and views to store files and images in cubicweb
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    42
applications.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    43
.
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    44
"""
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    45
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    46
from os import listdir
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    47
from os.path import join
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    48
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    49
CUBES_DIR = join('share', 'cubicweb', 'cubes')
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    50
try:
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    51
    data_files = [
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    52
        [join(CUBES_DIR, 'file'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    53
         [fname for fname in listdir('.')
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    54
          if fname.endswith('.py') and fname != 'setup.py']],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    55
        [join(CUBES_DIR, 'file', 'data'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    56
         [join('data', fname) for fname in listdir('data')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    57
        [join(CUBES_DIR, 'file', 'wdoc'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    58
         [join('wdoc', fname) for fname in listdir('wdoc')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    59
        [join(CUBES_DIR, 'file', 'views'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    60
         [join('views', fname) for fname in listdir('views') if fname.endswith('.py')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    61
        [join(CUBES_DIR, 'file', 'i18n'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    62
         [join('i18n', fname) for fname in listdir('i18n')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    63
        [join(CUBES_DIR, 'file', 'migration'),
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    64
         [join('migration', fname) for fname in listdir('migration')]],
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    65
        ]
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    66
except OSError:
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    67
    # we are in an installed directory
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    68
    pass
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    69
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    70
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    71
cube_eid = 20320
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    72
# used packages
9502d02630bf fix tests
sylvain.thenault@logilab.fr
parents:
diff changeset
    73
__use__ = ()