__pkginfo__.py 1.85 KB
Newer Older
Sandrine Ribeau's avatar
Sandrine Ribeau committed
1
# pylint: disable-msg=W0622
Nicolas Chauvat's avatar
Nicolas Chauvat committed
2
"""cubicweb-basket packaging information"""
Sandrine Ribeau's avatar
Sandrine Ribeau committed
3

4
5
modname = 'basket'
distname = "cubicweb-%s" % modname
Sandrine Ribeau's avatar
Sandrine Ribeau committed
6

Sylvain Thénault's avatar
Sylvain Thénault committed
7
numversion = (1, 3, 0)
Sandrine Ribeau's avatar
Sandrine Ribeau committed
8
9
version = '.'.join(str(num) for num in numversion)

Nicolas Chauvat's avatar
Nicolas Chauvat committed
10
license = 'LGPL'
Sylvain Thénault's avatar
Sylvain Thénault committed
11
copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
Sandrine Ribeau's avatar
Sandrine Ribeau committed
12
13
14
15
http://www.logilab.fr/ -- mailto:contact@logilab.fr'''

author = "Logilab"
author_email = "contact@logilab.fr"
Arthur Lutz's avatar
Arthur Lutz committed
16
web = 'http://www.cubicweb.org/project/%s' % distname
Sandrine Ribeau's avatar
Sandrine Ribeau committed
17

Sylvain Thénault's avatar
Sylvain Thénault committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
short_desc = "shopping cart component for the CubicWeb framework"
long_desc = """\
Summary
-------

This cube provides a shopping cart functionality.

Usage
-----

By default, any entity can be added to a basket (this uses the
`in_basket` relation).

There is a box that displays all items in the basket. By default, this
box is hidden. To display it, add in a view this code:

.. sourcecode:: python

   from cubes.basket.views import BasketBox

   BasketBox.visible = True
39

Sandrine Ribeau's avatar
Sandrine Ribeau committed
40
41
"""

Nicolas Chauvat's avatar
Nicolas Chauvat committed
42
43
44
45
46
47
48
classifiers = [
    'Environment :: Web Environment',
    'Framework :: CubicWeb',
    'Programming Language :: Python',
    'Programming Language :: JavaScript',
    ]

49
__depends_cubes__ = {}
Sylvain Thénault's avatar
Sylvain Thénault committed
50
__depends__ = {'cubicweb': '>= 3.6.0'}
51
52
53
54
__use__ = ()

# packaging ###

Sandrine Ribeau's avatar
Sandrine Ribeau committed
55
56
57
from os import listdir
from os.path import join

Nicolas Chauvat's avatar
Nicolas Chauvat committed
58
CUBES_DIR = join('share', 'cubicweb', 'cubes')
Sandrine Ribeau's avatar
Sandrine Ribeau committed
59
60
try:
    data_files = [
Nicolas Chauvat's avatar
Nicolas Chauvat committed
61
        [join(CUBES_DIR, 'basket'),
Sandrine Ribeau's avatar
Sandrine Ribeau committed
62
63
         [fname for fname in listdir('.')
          if fname.endswith('.py') and fname != 'setup.py']],
Nicolas Chauvat's avatar
Nicolas Chauvat committed
64
        [join(CUBES_DIR, 'basket', 'data'),
Sandrine Ribeau's avatar
Sandrine Ribeau committed
65
         [join('data', fname) for fname in listdir('data')]],
Nicolas Chauvat's avatar
Nicolas Chauvat committed
66
        [join(CUBES_DIR, 'basket', 'i18n'),
Sandrine Ribeau's avatar
Sandrine Ribeau committed
67
         [join('i18n', fname) for fname in listdir('i18n')]],
Nicolas Chauvat's avatar
Nicolas Chauvat committed
68
        [join(CUBES_DIR, 'basket', 'migration'),
Sandrine Ribeau's avatar
Sandrine Ribeau committed
69
70
71
72
73
74
75
76
         [join('migration', fname) for fname in listdir('migration')]],
        ]
except OSError, ex:
    # we are in an installed directory
    pass


template_eid = 20279