__pkginfo__.py

Fri, 14 Mar 2014 13:19:36 +0100

author
Julien Cristau <julien.cristau@logilab.fr>
date
Fri, 14 Mar 2014 13:19:36 +0100
branch
stable
changeset 83
80b586f4684d
parent 82
d7a65758c076
child 86
0504f669802a
permissions
-rw-r--r--

1.7.2

0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
1 # pylint: disable-msg=W0622
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
2 """cubicweb-mailinglist packaging information"""
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
3
39
ed1a8a2c0f38 P [packaging] describe dependencies in pkginfo
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 32
diff changeset
4 modname = 'mailinglist'
ed1a8a2c0f38 P [packaging] describe dependencies in pkginfo
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 32
diff changeset
5 distname = "cubicweb-%s" % modname
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
6
83
Julien Cristau <julien.cristau@logilab.fr>
parents: 82
diff changeset
7 numversion = (1, 7, 2)
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
8 version = '.'.join(str(num) for num in numversion)
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
9
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
10 license = 'LGPL'
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
11 description = "mailing-list component for the CubicWeb framework"
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
12 author = "Logilab"
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
13 author_email = "contact@logilab.fr"
35
cdd7bca13bf4 added web adress
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 32
diff changeset
14 web = 'http://www.cubicweb.org/project/%s' % distname
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
15 classifiers = [
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
16 'Environment :: Web Environment',
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
17 'Framework :: CubicWeb',
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
18 'Programming Language :: Python',
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
19 'Programming Language :: JavaScript',
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
20 ]
39
ed1a8a2c0f38 P [packaging] describe dependencies in pkginfo
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 32
diff changeset
21
81
5dc0daf7b3f0 [views] silence cw 3.15 compat warning
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 71
diff changeset
22 __depends__ = {'cubicweb': '>= 3.15.0'}
82
d7a65758c076 recommends the sioc cube
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 81
diff changeset
23 __recommends__ = {'cubicweb-sioc': None}
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
24
52
a009412650df more doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 44
diff changeset
25
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
26 # packaging ###
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
27
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
28 from os import listdir as _listdir
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
29 from os.path import join, isdir
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
30 from glob import glob
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
31
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
32 THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
33
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
34 def listdir(dirpath):
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
35 return [join(dirpath, fname) for fname in _listdir(dirpath)
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
36 if fname[0] != '.' and not fname.endswith('.pyc')
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
37 and not fname.endswith('~')
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
38 and not isdir(join(dirpath, fname))]
0
2da782396f91 first public release
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
39
54
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
40 data_files = [
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
41 # common files
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
42 [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
43 ]
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
44 # check for possible extended cube layout
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
45 for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration', 'wdoc'):
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
46 if isdir(dirname):
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
47 data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
48 # Note: here, you'll need to add subdirectories if you want
2f8cc811e2d7 pkginfo/debian cleanup (repair broken setup.py)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 52
diff changeset
49 # them to be included in the debian package

mercurial