cubicweb/__pkginfo__.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Fri, 14 Apr 2017 15:15:27 +0200
branch3.25
changeset 12161 dacc5b168e29
parent 12158 241bb09c67f7
child 12164 8d1a7021c817
child 12190 5fe62978801a
permissions -rw-r--r--
[pkg] Version 3.25.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6491
ee9a10b6620e pylint option update
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6427
diff changeset
     1
# pylint: disable=W0622,C0103
9436
e24132839317 [pkg] prepare 3.17.12
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 9338
diff changeset
     2
# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
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: 5295
diff changeset
    18
# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    19
"""cubicweb global packaging information for the cubicweb knowledge management
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    20
software
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    21
"""
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    22
import sys
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    23
from os import listdir
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    24
from os.path import join, isdir
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    25
import glob
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    26
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    27
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    28
modname = distname = "cubicweb"
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    29
11840
1eb3d6cd39c3 [pkg] Bump version to 3.25.0.dev0
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11795
diff changeset
    30
numversion = (3, 25, 0)
12161
dacc5b168e29 [pkg] Version 3.25.0
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12158
diff changeset
    31
version = '.'.join(str(num) for num in numversion)
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    32
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    33
description = "a repository of entities / relations for knowledge management"
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    34
author = "Logilab"
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    35
author_email = "contact@logilab.fr"
11133
9e955d8be8a9 [pkg] use https URL for www.cubicweb.org
Julien Cristau <julien.cristau@logilab.fr>
parents: 11127
diff changeset
    36
web = 'https://www.cubicweb.org'
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    37
license = 'LGPL'
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    38
2419
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    39
classifiers = [
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    40
    'Environment :: Web Environment',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    41
    'Framework :: CubicWeb',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    42
    'Programming Language :: Python',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    43
    'Programming Language :: JavaScript',
2419
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    44
]
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    45
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    46
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    47
           if not s.endswith('.bat')]
265
97361ddaf342 fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents: 264
diff changeset
    48
include_dirs = [join('test', 'data'),
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    49
                join('server', 'test', 'data'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    50
                join('hooks', 'test', 'data'),
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    51
                join('web', 'test', 'data'),
5787
20377d2fcc70 [qunit] Move qunit.js and qunit.css in devtools/datadirectory
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 5775
diff changeset
    52
                join('devtools', 'data'),
265
97361ddaf342 fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents: 264
diff changeset
    53
                join('devtools', 'test', 'data'),
5469
4746c157e5e4 [packaging] we should add schemas to include_dirs so sql extensions files are properly installed
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5439
diff changeset
    54
                'schemas', 'skeleton']
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    55
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    56
11057
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    57
_server_migration_dir = join(modname, 'misc', 'migration')
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    58
_data_dir = join(modname, 'web', 'data')
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    59
_wdoc_dir = join(modname, 'web', 'wdoc')
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    60
_wdocimages_dir = join(_wdoc_dir, 'images')
11057
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    61
_views_dir = join(modname, 'web', 'views')
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    62
_i18n_dir = join(modname, 'i18n')
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    63
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    64
_pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    65
if '--home' in sys.argv:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    66
    # --home install
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    67
    pydir = 'python' + _pyversion
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    68
else:
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    69
    pydir = join('python' + _pyversion, 'site-packages')
264
6eb0725d509d packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents: 259
diff changeset
    70
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    71
# data files that shall be copied into the main package directory
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    72
package_data = {
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    73
    'cubicweb.web.views': ['*.pt'],
12100
1cfd19c4b9b5 [pkg] Add development.ini.tmpl to "cubicweb.pyramid" package data
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12074
diff changeset
    74
    'cubicweb.pyramid': ['development.ini.tmpl'],
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    75
}
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    76
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    77
try:
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    78
    # data files that shall be copied outside the main package directory
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    79
    data_files = [
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    80
        # server data
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    81
        [join('share', 'cubicweb', 'migration'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    82
         [join(_server_migration_dir, filename)
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    83
          for filename in listdir(_server_migration_dir)]],
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    84
        # web data
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    85
        [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    86
         [join(_data_dir, fname) for fname in listdir(_data_dir)
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    87
          if not isdir(join(_data_dir, fname))]],
5110
e1f0fb044d94 [distribution] the web/data/images directory has to be handled in pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5045
diff changeset
    88
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'),
5125
eaec839ad3fe fix bad merge
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5121
diff changeset
    89
         [join(_data_dir, 'images', fname) for fname in listdir(join(_data_dir, 'images'))]],
10170
6530f628d2ef [pkg] install jquery-treeview
Julien Cristau <julien.cristau@logilab.fr>
parents: 10161
diff changeset
    90
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview'),
10173
c06ef8a2e4df [pkg] fix setup.py install
Julien Cristau <julien.cristau@logilab.fr>
parents: 10172
diff changeset
    91
         [join(_data_dir, 'jquery-treeview', fname) for fname in listdir(join(_data_dir, 'jquery-treeview'))
c06ef8a2e4df [pkg] fix setup.py install
Julien Cristau <julien.cristau@logilab.fr>
parents: 10172
diff changeset
    92
          if not isdir(join(_data_dir, 'jquery-treeview', fname))]],
c06ef8a2e4df [pkg] fix setup.py install
Julien Cristau <julien.cristau@logilab.fr>
parents: 10172
diff changeset
    93
        [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'jquery-treeview', 'images'),
c06ef8a2e4df [pkg] fix setup.py install
Julien Cristau <julien.cristau@logilab.fr>
parents: 10172
diff changeset
    94
         [join(_data_dir, 'jquery-treeview', 'images', fname)
c06ef8a2e4df [pkg] fix setup.py install
Julien Cristau <julien.cristau@logilab.fr>
parents: 10172
diff changeset
    95
          for fname in listdir(join(_data_dir, 'jquery-treeview', 'images'))]],
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    96
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    97
         [join(_wdoc_dir, fname) for fname in listdir(_wdoc_dir)
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    98
          if not isdir(join(_wdoc_dir, fname))]],
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    99
        [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
   100
         [join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
   101
        [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
10160
b733789cc339 [pkg] fix mistake in c7b218125c25
Julien Cristau <julien.cristau@logilab.fr>
parents: 10152
diff changeset
   102
         glob.glob(join(_i18n_dir, '*.po'))],
264
6eb0725d509d packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents: 259
diff changeset
   103
        # skeleton
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
   104
        ]
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
   105
except OSError:
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
   106
    # we are in an installed directory, don't care about this
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
   107
    pass