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

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Feb 21 18:17:10 CET 2017



On 02/21/2017 05:37 PM, Sylvain Thenault wrote:
> # 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)
Why bumping the version number here ?
>   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
> _______________________________________________
> saem-devel mailing list
> saem-devel at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/saem-devel

-- 
Philippe Pepiot
https://www.logilab.fr



More information about the saem-devel mailing list