Commit ffaa525b authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

pkginfo cleanup

--HG--
branch : stable
parent d546b03774c5
......@@ -8,8 +8,6 @@ numversion = (1, 7, 0)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
copyright = '''Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
author = "Logilab"
author_email = "contact@logilab.fr"
......@@ -23,39 +21,47 @@ provides tools to import your mail box into a cubicweb instance.
Email are automatically stored into`EmailThreads`.
"""
from os import listdir
from os.path import join
# used packages
__depends__ = {'cubicweb': '>= 3.6.0',
'cubicweb-file': '>= 1.6.0'}
__recommends__ = {'cubicweb-comment': None}
# XXX cw < 3.8 bw compat
__use__ = ('file',)
__recommend__ = ('comment',)
classifiers = [
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'Programming Language :: JavaScript',
]
from os import listdir as _listdir
from os.path import join, isdir
from glob import glob
def listdir(dirpath):
return [join(dirpath, fname) for fname in _listdir(dirpath)
if fname[0] != '.' and not fname.endswith('.pyc')
and not fname.endswith('~')]
CUBES_DIR = join('share', 'cubicweb', 'cubes')
THIS_CUBE_DIR = join(CUBES_DIR, 'card')
try:
data_files = [
[join(CUBES_DIR, 'email'),
[fname for fname in listdir('.')
if fname.endswith('.py') and fname != 'setup.py']],
[join(CUBES_DIR, 'email', 'views'),
[join('views', fname) for fname in listdir('views')
if not fname.endswith('.pyc')]],
#[join(CUBES_DIR, 'email', 'data'),
# [join('data', fname) for fname in listdir('data')]],
[join(CUBES_DIR, 'email', 'i18n'),
[join('i18n', fname) for fname in listdir('i18n')]],
[join(CUBES_DIR, 'email', 'migration'),
[join('migration', fname) for fname in listdir('migration')]],
# common files
[THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
]
# check for possible extended cube layout
for dirname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'):
if isdir(dirname):
data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package
except OSError:
# we are in an installed directory
pass
# used packages
__depends_cubes__ = {'file': '>= 1.6.0',}
__use__ = tuple(__depends_cubes__)
__depends__ = {'cubicweb': '>= 3.6.0'}
for key, value in __depends_cubes__.items():
__depends__['cubicweb-'+key] = value
__recommend__ = ('comment',)
classifiers = [
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'Programming Language :: JavaScript',
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment