Commit cdd8da91 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[pkg] move to new "cube as packages" layout

Depend on cubicweb >= 3.24
parent e60881f8798e
include *.py
include */*.py
include tox.ini dev-requirements.txt
include doc/*.rst
include i18n/*.po
recursive-include cubicweb_seda *.py
recursive-include cubicweb_seda/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_seda/xsd *.xsd
recursive-include doc *.rst *.py
recursive-include test *.py
include cubicweb_seda/migration/data/*.csv
include cubicweb_seda/i18n/*.po cubicweb_seda/i18n/*.pot
include test/data/bootstrap_cubes test/data/*.xml test/data/*.xsd test/data/*.rng
recursive-include data *.gif *.png *.ico *.css *.js
recursive-include xsd *.xsd
recursive-include migration *.py *.csv
include tox.ini dev-requirements.txt
prune __pkginfo__.py
prune cubicweb-seda.spec
prune debian
# pylint: disable=W0622
"""cubicweb-seda application packaging information"""
from os import listdir as _listdir
from os.path import join, isdir
from glob import glob
modname = 'seda'
distname = 'cubicweb-seda'
numversion = (0, 7, 0)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
description = 'Data Exchange Standard for Archival'
web = 'http://www.cubicweb.org/project/%s' % distname
__depends__ = {
'cubicweb': '>= 3.23', 'six': '>= 1.4.0',
'cubicweb-eac': None,
'cubicweb-skos': '>= 0.12.1',
'cubicweb-compound': '>= 0.4',
'cubicweb-relationwidget': '>= 0.4',
'cubicweb-squareui': None,
'pyxst': None,
'rdflib': '>= 4.1',
}
__recommends__ = {}
classifiers = [
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'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', 'migration/data',
'xsd'):
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
cubicweb_seda/__pkginfo__.py
\ No newline at end of file
......@@ -20,7 +20,7 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.23
Requires: cubicweb >= 3.24
Requires: cubicweb-eac
Requires: cubicweb-skos >= 0.12.1
Requires: cubicweb-compound >= 0.4
......@@ -41,14 +41,14 @@ find . -name '*.py' -type f -print0 | xargs -0 sed -i '1,3s;^#!.*python.*$;#! /
%endif
%install
NO_SETUPTOOLS=1 %{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
# remove generated .egg-info file
rm -rf $RPM_BUILD_ROOT/usr/lib/python*
%{__python} setup.py build
%install
%{__python} setup.py install --no-compile --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_prefix}/share/cubicweb/cubes/*
%{_python_sitelib}/*
# pylint: disable=W0622
"""cubicweb-seda application packaging information"""
modname = 'seda'
distname = 'cubicweb-seda'
numversion = (0, 7, 0)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
description = 'Data Exchange Standard for Archival'
web = 'http://www.cubicweb.org/project/%s' % distname
__depends__ = {
'cubicweb': '>= 3.24',
'six': '>= 1.4.0',
'cubicweb-eac': None,
'cubicweb-skos': '>= 0.12.1',
'cubicweb-compound': '>= 0.4',
'cubicweb-relationwidget': '>= 0.4',
'cubicweb-squareui': None,
'pyxst': None,
'rdflib': '>= 4.1',
}
__recommends__ = {}
classifiers = [
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'Programming Language :: JavaScript',
]
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