Commit 32c930a9 authored by Nicola Spanti's avatar Nicola Spanti
Browse files

Fix install of data

parent c48a7c7780dc
Pipeline #28414 failed with stages
in 1 minute and 22 seconds
include *.py
include */*.py
recursive-include cubicweb_slickgrid/data *.gif *.png *.ico *.css *.js *.txt README.rst
recursive-include cubicweb_slickgrid/data *.gif *.png *.ico *.css *.js *.txt README*
recursive-include i18n *.po
recursive-include wdoc *
include tox.ini
# pylint: disable=W0622
#
# copyright 2003-2021 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
#
# Developped by Logilab S.A. (Paris, FRANCE) https://www.logilab.fr
#
"""cubicweb-slickgrid application packaging information"""
from os import listdir as _listdir
from os.path import join, isdir
from glob import glob
from os.path import dirname, join
modname = 'slickgrid'
......@@ -34,34 +37,3 @@ classifiers = [
'Programming Language :: Python :: 3',
'Programming Language :: JavaScript',
]
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 dname in ('entities', 'views', 'sobjects', 'hooks', 'schema',
'data', 'wdoc', 'i18n', 'migration',
join('data', 'jQuery'),
join('data', 'SlickGrid'),
join('data', 'SlickGrid', 'controls'),
join('data', 'SlickGrid', 'css'),
join('data', 'SlickGrid', 'css', 'smoothness'),
join('data', 'SlickGrid', 'css', 'smoothness', 'images'),
join('data', 'SlickGrid', 'images'),
join('data', 'SlickGrid', 'lib'),
join('data', 'SlickGrid', 'plugins')):
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
#!/usr/bin/env python
# pylint: disable=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
#
# copyright 2003-2020 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
# copyright 2003-2021 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact https://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of a CubicWeb cube.
#
......@@ -26,11 +26,12 @@ from os.path import join, dirname
from setuptools import find_packages, setup
here = dirname(__file__)
# load metadata from the __pkginfo__.py file so there is no risk of conflict
# see https://packaging.python.org/en/latest/single_source_version.html
here = dirname(__file__)
pkginfo = join(here, 'cubicweb_slickgrid', '__pkginfo__.py')
__pkginfo__ = {}
__pkginfo__ = {'__file__': pkginfo}
with open(pkginfo) as f:
exec(f.read(), __pkginfo__)
......
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