[saem-devel] [PATCH sherpa] Fix packaging of resource files

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Feb 21 17:37:31 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1486569255 -3600
#      Wed Feb 08 16:54:15 2017 +0100
# Node ID c8365d3bfd84cf49fd4cb6dba0ee3b5be2af0574
# Parent  445907715dd24c3375c1326a5e8a0a66eba3ced2
Fix packaging of resource files

those were included in the sdist but not installed along with the code.

diff --git a/__pkginfo__.py b/__pkginfo__.py
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -7,11 +7,11 @@ from glob import glob
 
 
 modname = 'sherpa'
 distname = 'cubicweb-sherpa'
 
-numversion = (0, 1, 0)
+numversion = (0, 1, 1)
 version = '.'.join(str(num) for num in numversion)
 
 license = 'GPL'
 author = 'LOGILAB S.A. (Paris, FRANCE)'
 author_email = 'contact at logilab.fr'
@@ -49,10 +49,11 @@ data_files = [
     # common files
     [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
 ]
 # check for possible extended cube layout
 for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data',
-              'wdoc', 'i18n', 'migration'):
+              'wdoc', 'i18n', 'migration',
+              'views/templates', 'data/fonts/lovelo', 'data/fonts/Open_Sans', 'data/images'):
     if isdir(dname):
         data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
 # Note: here, you'll need to add subdirectories if you want
 # them to be included in the debian package


More information about the saem-devel mailing list