cubicweb/skeleton/cubicweb_CUBENAME/__pkginfo__.py.tmpl
author Laurent Peuch <cortex@worlddomination.be>
Thu, 16 May 2019 04:42:59 +0200
changeset 12614 8ac9ac8d9143
parent 12567 26744ad37953
permissions -rw-r--r--
[mod] make ViolatedConstraint actually display useful information Move from: (Pdb++) raise some_exception *** ViolatedConstraint: To: (Pdb++) raise some_exception *** ViolatedConstraint: constraint 'cstr56c2ab4b3154f21d08b067742ce5bd9d' is being violated by the query 'ALTER TABLE cw_Bibliography ADD CONSTRAINT cstr56c2ab4b3154f21d08b067742ce5bd9d CHECK(cw_item_type IN ('journalArticle', 'note', 'book', 'thesis', 'film', 'web page', 'manuscrit', 'tapuscrit'))'. You can run the inverted constraint on the database to list the problematic rows. And save hours of debugging to actually understand what is going on.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7003
6eeed1e9782c [skel] avoid pylint warning for newly generated cube
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6828
diff changeset
     1
# pylint: disable=W0622
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     2
"""%(distname)s application packaging information"""
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
11176
4a43193ce7b0 [test] Add a test ensuring new cube built from skeleton is flake8-compliant
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11057
diff changeset
     4
11470
c0167228c12c [skeleton] Fix modname in __pkginfo__
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11456
diff changeset
     5
modname = 'cubicweb_%(cubename)s'
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     6
distname = '%(distname)s'
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     7
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     8
numversion = (0, 1, 0)
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     9
version = '.'.join(str(num) for num in numversion)
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    10
5184
955ee1b24756 [c-c newcube] #1192: simpler cubicweb-ctl newcube, and more
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5163
diff changeset
    11
license = '%(license)s'
458
99712f0d5472 fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 365
diff changeset
    12
author = '%(author)s'
99712f0d5472 fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 365
diff changeset
    13
author_email = '%(author-email)s'
6828
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    14
description = '%(shortdesc)s'
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    15
web = 'http://www.cubicweb.org/project/%%s' %% distname
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    16
10214
88f60d4b9952 [newcube] Make the generated code PEP-8 compliant
Christophe de Vienne <christophe@unlish.com>
parents: 8565
diff changeset
    17
__depends__ = %(dependencies)s
6828
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    18
__recommends__ = {}
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    19
8565
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    20
classifiers = [
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    21
    'Environment :: Web Environment',
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    22
    'Framework :: CubicWeb',
12567
26744ad37953 Drop python2 support
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11470
diff changeset
    23
    'Programming Language :: Python :: 3',
8565
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    24
    'Programming Language :: JavaScript',
11176
4a43193ce7b0 [test] Add a test ensuring new cube built from skeleton is flake8-compliant
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11057
diff changeset
    25
]