Commit 7737040d authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

New style: convert Blog cube to new layout

- move files to cubicweb_blog folder
- update setup.py, MANIFEST.in, cubicweb_blog/__pkginfo__.py
parent 564d5ec64f53
include *.py
include */*.py
recursive-include data *.gif *.jpg *.png *.css external_resources
recursive-include i18n *.po
include setup.py
include README
recursive-include cubicweb_blog *
recursive-include cubicweb_blog/data *.gif *.jpg *.png *.css external_resources
recursive-include cubicweb_blog/i18n *.po
recursive-include cubicweb_blog/migration *.py
......@@ -30,31 +30,3 @@ __recommends__ = {'cubicweb-tag': None,
'feedparser': None,
'rdflib': None,
}
# packaging ###
from os import listdir as _listdir
from os.path import join, isdir
from glob import glob
THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
def listdir(dirpath):
return [join(dirpath, fname) for fname in _listdir(dirpath)
if fname[0] != '.' and not fname.endswith('.pyc')
and not fname.endswith('~')
and not isdir(join(dirpath, fname))]
data_files = [
# 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', 'wdoc'):
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
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