__pkginfo__.py
changeset 5024 9e718abe3fde
parent 4984 6cb91be7707f
child 5048 bf8a53a11b6d
equal deleted inserted replaced
5023:70d5d54e8b81 5024:9e718abe3fde
     1 # pylint: disable-msg=W0622,C0103
     1 # pylint: disable-msg=W0622,C0103
     2 """cubicweb global packaging information for the cubicweb knowledge management
     2 """cubicweb global packaging information for the cubicweb knowledge management
     3 software
     3 software
       
     4 
     4 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     5 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     5 """
     6 """
     6 
     7 
     7 distname = "cubicweb"
     8 modname = distname = "cubicweb"
     8 modname = "cubicweb"
       
     9 
     9 
    10 numversion = (3, 7, 1)
    10 numversion = (3, 7, 1)
    11 version = '.'.join(str(num) for num in numversion)
    11 version = '.'.join(str(num) for num in numversion)
    12 
    12 
    13 license = 'LGPL'
    13 description = "a repository of entities / relations for knowledge management"
    14 copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
       
    15 http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
       
    16 
       
    17 author = "Logilab"
    14 author = "Logilab"
    18 author_email = "contact@logilab.fr"
    15 author_email = "contact@logilab.fr"
    19 
       
    20 short_desc = "a repository of entities / relations for knowledge management"
       
    21 long_desc = """CubicWeb is a entities / relations based knowledge management system
       
    22 developped at Logilab.
       
    23 
       
    24 This package contains:
       
    25 * a repository server
       
    26 * a RQL command line client to the repository
       
    27 * an adaptative modpython interface to the server
       
    28 * a bunch of other management tools
       
    29 """
       
    30 
       
    31 web = 'http://www.cubicweb.org'
    16 web = 'http://www.cubicweb.org'
    32 ftp = 'ftp://ftp.logilab.org/pub/cubicweb'
    17 ftp = 'ftp://ftp.logilab.org/pub/cubicweb'
    33 pyversions = ['2.5', '2.6']
    18 license = 'LGPL'
    34 
    19 
    35 classifiers = [
    20 classifiers = [
    36            'Environment :: Web Environment',
    21            'Environment :: Web Environment',
    37            'Framework :: CubicWeb',
    22            'Framework :: CubicWeb',
    38            'Programming Language :: Python',
    23            'Programming Language :: Python',
    39            'Programming Language :: JavaScript',
    24            'Programming Language :: JavaScript',
    40 ]
    25 ]
    41 
    26 
       
    27 __depends__ = {
       
    28     'logilab-common': '>= 0.49.0',
       
    29     'logilab-mtconverter': '>= 0.6.0',
       
    30     'rql': '>= 0.26.0',
       
    31     'yams': '>= 0.28.1',
       
    32     'docutils': '>= 0.6',
       
    33     #gettext                    # for xgettext, msgcat, etc...
       
    34     # web dependancies
       
    35     'simplejson': '>= 2.0.9',
       
    36     'lxml': '',
       
    37     'Twisted': '',
       
    38     # XXX graphviz
       
    39     # server dependencies
       
    40     'logilab-database': '',
       
    41     'pysqlite': '>= 2.5.5', # XXX install pysqlite2
       
    42     }
       
    43 
       
    44 __recommends__ = {
       
    45     'Pyro': '>= 3.9.1',
       
    46     'PIL': '',                  # for captcha
       
    47     'pycrypto': '',             # for crypto extensions
       
    48     'fyzz': '>= 0.1.0',         # for sparql
       
    49     'pysixt': '>= 0.1.0',       # XXX for pdf export
       
    50     'python-gettext': '>= 1.0', # XXX for pdf export
       
    51     'vobject': '>= 0.6.0',      # for ical view
       
    52     #'Products.FCKeditor':'',
       
    53     #'SimpleTAL':'>= 4.1.6',
       
    54     }
    42 
    55 
    43 import sys
    56 import sys
    44 from os import listdir, environ
    57 from os import listdir, environ
    45 from os.path import join, isdir
    58 from os.path import join, isdir
    46 import glob
    59 import glob
    47 
    60 
    48 scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
    61 scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
    49            if not s.endswith('.bat')]
    62            if not s.endswith('.bat')]
    50 include_dirs = [join('test', 'data'),
    63 include_dirs = [join('test', 'data'),
    51                 join('server', 'test', 'data'),
    64                 join('server', 'test', 'data'),
       
    65                 join('hooks', 'test', 'data'),
    52                 join('web', 'test', 'data'),
    66                 join('web', 'test', 'data'),
    53                 join('devtools', 'test', 'data'),
    67                 join('devtools', 'test', 'data'),
    54                 'skeleton']
    68                 'skeleton']
    55 
    69 
    56 
    70 
    57 entities_dir = 'entities'
    71 _server_migration_dir = join('misc', 'migration')
    58 schema_dir = 'schemas'
    72 _data_dir = join('web', 'data')
    59 sobjects_dir = 'sobjects'
    73 _wdoc_dir = join('web', 'wdoc')
    60 server_migration_dir = join('misc', 'migration')
    74 _wdocimages_dir = join(_wdoc_dir, 'images')
    61 data_dir = join('web', 'data')
    75 _views_dir = join('web', 'views')
    62 wdoc_dir = join('web', 'wdoc')
    76 _i18n_dir = 'i18n'
    63 wdocimages_dir = join(wdoc_dir, 'images')
       
    64 views_dir = join('web', 'views')
       
    65 i18n_dir = 'i18n'
       
    66 
    77 
    67 if environ.get('APYCOT_ROOT'):
    78 _pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
       
    79 if '--home' in sys.argv:
    68     # --home install
    80     # --home install
    69     pydir = 'python'
    81     pydir = 'python' + _pyversion
    70 else:
    82 else:
    71     python_version = '.'.join(str(num) for num in sys.version_info[0:2])
    83     pydir = join('python' + _pyversion, 'site-packages')
    72     pydir = join('python' + python_version, 'site-packages')
       
    73 
    84 
    74 try:
    85 try:
    75     data_files = [
    86     data_files = [
    76         # common data
       
    77         #[join('share', 'cubicweb', 'entities'),
       
    78         # [join(entities_dir, filename) for filename in listdir(entities_dir)]],
       
    79         # server data
    87         # server data
    80         [join('share', 'cubicweb', 'schemas'),
    88         [join('share', 'cubicweb', 'schemas'),
    81          [join(schema_dir, filename) for filename in listdir(schema_dir)]],
    89          [join('schemas', filename) for filename in listdir('schemas')]],
    82         #[join('share', 'cubicweb', 'sobjects'),
       
    83         # [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]],
       
    84         [join('share', 'cubicweb', 'migration'),
    90         [join('share', 'cubicweb', 'migration'),
    85          [join(server_migration_dir, filename)
    91          [join(_server_migration_dir, filename)
    86           for filename in listdir(server_migration_dir)]],
    92           for filename in listdir(_server_migration_dir)]],
    87         # web data
    93         # web data
    88         [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
    94         [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
    89          [join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]],
    95          [join(_data_dir, fname) for fname in listdir(_data_dir)
       
    96           if not isdir(join(_data_dir, fname))]],
    90         [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'),
    97         [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'),
    91          [join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]],
    98          [join(_data_dir, 'timeline', fname)
       
    99           for fname in listdir(join(_data_dir, 'timeline'))]],
    92         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
   100         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
    93          [join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]],
   101          [join(_wdoc_dir, fname) for fname in listdir(_wdoc_dir)
       
   102           if not isdir(join(_wdoc_dir, fname))]],
    94         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
   103         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
    95          [join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]],
   104          [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
    96         # XXX: .pt install should be handled properly in a near future version
   105         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
       
   106          [join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]],
       
   107         # XXX: drop .pt files
    97         [join('lib', pydir, 'cubicweb', 'web', 'views'),
   108         [join('lib', pydir, 'cubicweb', 'web', 'views'),
    98          [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
   109          [join(_views_dir, fname) for fname in listdir(_views_dir)
    99         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
   110           if fname.endswith('.pt')]],
   100          [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
       
   101         # skeleton
   111         # skeleton
   102         ]
   112         ]
   103 except OSError:
   113 except OSError:
   104     # we are in an installed directory, don't care about this
   114     # we are in an installed directory, don't care about this
   105     pass
   115     pass