Commit 8f3f1868 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

Update Debian packaging with support for Python 3

Update the build system to use pybuild.

The new binary package with Python 3 support is named
python3-cubicweb-elasticsearch according to current standards.
Python 2 package is also updated to use the proper namespace
and a transitional package has been introduced to handle
the migration.

Both packages depends on the python{,3}-elasticsearch-dsl,
currently available at:
https://salsa.debian.org/lunar/elasticsearch-dsl-py

Fix MANIFEST.in to include missing test files.

Support for Python 3.8 is disabled as it is currently broken
in Debian unstable.
parent 48f01895be54
......@@ -3,3 +3,7 @@ include */*.py
recursive-include cubicweb_elasticsearch *.py
recursive-include cubicweb_elasticsearch/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_elasticsearch/i18n *.po
recursive-include cubicweb_elasticsearch/pviews/templates *.jinja2
include test/data/bootstrap_cubes
include tox.ini
......@@ -3,26 +3,36 @@ Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Homepage: https://www.cubicweb.org/project/cubicweb-elasticsearch
Build-Depends:
debhelper (>= 9),
python (>= 2.6.5),
python-setuptools,
Standards-Version: 3.9.6
X-Python-Version: >= 2.6
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-bs4,
python-cubicweb,
python-cubicweb-blog,
python-cwtags,
python-elasticsearch-dsl,
python-ipaddress,
python-logilab-common,
python-mock,
python-pytest,
python-setuptools,
python3-all,
python3-bs4,
python3-cubicweb,
python3-cubicweb-blog,
python3-cwtags,
python3-elasticsearch-dsl,
python3-logilab-common,
python3-mock,
python3-pytest,
python3-setuptools
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Package: cubicweb-elasticsearch
Package: python-cubicweb-elasticsearch
Architecture: all
Depends:
${python:Depends},
${misc:Depends},
cubicweb-common (>= 3.24.0),
python-six (>= 1.4.0),
python-bs4,
python-cwtags,
python-elasticsearch (>= 6.0.0),
python-elasticsearch (<< 7.0.0),
python-elasticsearch-dsl (>= 6.0.0),
python-elasticsearch-dsl (<< 7.0.0),
Depends: ${misc:Depends}, ${python:Depends}
Description: Simple ElasticSearch indexing integration for CubicWeb
CubicWeb is a semantic web application framework.
.
......@@ -30,3 +40,21 @@ Description: Simple ElasticSearch indexing integration for CubicWeb
.
This package will install all the components you need to run the
cubicweb-elasticsearch application (cube :)..
Package: python3-cubicweb-elasticsearch
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Simple ElasticSearch indexing integration for CubicWeb
CubicWeb is a semantic web application framework.
.
Simple ElasticSearch indexing integration for CubicWeb
.
This package will install all the components you need to run the
cubicweb-elasticsearch application (cube :)..
Package: cubicweb-elasticsearch
Architecture: all
Section: oldlibs
Depends: python-cubicweb-elasticsearch, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
test
tox.ini
cubicweb_elasticsearch.egg-info
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-elasticsearch
# Python 3.8 is broken in Debian unstable as of 2019-11-21
export PYBUILD_DISABLE_python3.8 = 1
%:
dh $@ --with python2
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^(.hg(/|ignore$|tags$)|[^/]*\.spec$|__pkginfo__\.py|\.gitlab-ci.yml$)"
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