cubicweb/__pkginfo__.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 15 Feb 2018 10:26:55 +0100
branch3.26
changeset 12271 1f792d76fca3
parent 12270 0e89483f50a1
child 12272 36032de96867
permissions -rw-r--r--
[pkg] Get rid of "pydir" in __pkginfo__.py Nothing uses this.
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
from os import listdir
12270
0e89483f50a1 [pkg] Get rid of "shared" data
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12260
diff changeset
    23
from os.path import join
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    24
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    25
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    26
modname = distname = "cubicweb"
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    27
12164
8d1a7021c817 [pkg] Set version to 3.26.0.dev0
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12161
diff changeset
    28
numversion = (3, 26, 0)
12260
199851fcddd4 [pkg] Version 3.26.0
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12259
diff changeset
    29
version = '.'.join(str(num) for num in numversion)
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    30
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    31
description = "a repository of entities / relations for knowledge management"
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    32
author = "Logilab"
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    33
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
    34
web = 'https://www.cubicweb.org'
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    35
license = 'LGPL'
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    36
2419
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    37
classifiers = [
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    38
    'Environment :: Web Environment',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    39
    'Framework :: CubicWeb',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    40
    'Programming Language :: Python',
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    41
    'Programming Language :: JavaScript',
2419
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    42
]
e98454c4af87 add classifiers
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 2406
diff changeset
    43
11057
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11051
diff changeset
    44
_server_migration_dir = join(modname, 'misc', 'migration')
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    45
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    46
# 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
    47
package_data = {
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    48
    '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
    49
    'cubicweb.pyramid': ['development.ini.tmpl'],
11283
46dda5238bc2 [pkg] PEP8 fixes in __pkginfo__.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11279
diff changeset
    50
}
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    51
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    52
try:
6516
6b2e1e8d3a22 [pkg] use argument *package_data*
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 6295
diff changeset
    53
    # data files that shall be copied outside the main package directory
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    54
    data_files = [
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    55
        # server data
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    56
        [join('share', 'cubicweb', 'migration'),
5024
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    57
         [join(_server_migration_dir, filename)
9e718abe3fde add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents: 4984
diff changeset
    58
          for filename in listdir(_server_migration_dir)]],
12270
0e89483f50a1 [pkg] Get rid of "shared" data
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12260
diff changeset
    59
    ]
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    60
except OSError:
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    61
    # we are in an installed directory, don't care about this
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    62
    pass