[pkg] don't include extra files in tarballs
Blind wildcards for dirs that may contain generated or temporary files
can lead to trouble and unreproducible results.
--- a/MANIFEST.in Thu Jan 08 12:36:48 2015 +0100
+++ b/MANIFEST.in Thu Jan 08 15:37:20 2015 +0100
@@ -39,3 +39,4 @@
prune misc/cwfs
prune goa
prune doc/book/en/devweb/js_api
+global-exclude *.pyc
--- a/__pkginfo__.py Thu Jan 08 12:36:48 2015 +0100
+++ b/__pkginfo__.py Thu Jan 08 15:37:20 2015 +0100
@@ -107,7 +107,7 @@
data_files = [
# server data
[join('share', 'cubicweb', 'schemas'),
- [join('schemas', filename) for filename in listdir('schemas')]],
+ [join('schemas', filename) for filename in glob.glob(join('schemas', '*.sql'))]],
[join('share', 'cubicweb', 'migration'),
[join(_server_migration_dir, filename)
for filename in listdir(_server_migration_dir)]],
@@ -125,7 +125,7 @@
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
[join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]],
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
- [join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]],
+ [join(_i18n_dir, fname) for fname in glob.glob(join(_i18n_dir, '*.po'))]],
# skeleton
]
except OSError: