Commit c197b672 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-skos 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.

Support for Python 3.8 is disabled as it is currently broken
in Debian unstable.

We currently ignore test/test_ccplugin.py as it requires
a PostgreSQL server. Running it through autopkgtest seems
like a more robust approach, but this remains to be
implemented.

Drop useless __pkginfo__.py symlink
parent 57c7fbd839c2
......@@ -6,6 +6,5 @@ recursive-include test/data bootstrap_cubes *.py *.csv *.n3 *.rdf *.xml
include *.ini
include test-requirements.txt
prune __pkginfo__.py
prune cubicweb-skos.spec
prune debian
cubicweb_skos/__pkginfo__.py
\ No newline at end of file
cubicweb-skos (1.6.0-1) unstable; urgency=medium
* Add support for python3 packaging
* New upstream release
-- Philippe Pepiot <philippe.pepiot@logilab.fr> Thu, 28 Nov 2019 10:37:01 +0100
cubicweb-skos (1.5.0-1) unstable; urgency=medium
* New upstream release.
......
......@@ -2,28 +2,53 @@ Source: cubicweb-skos
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends:
debhelper (>= 7),
dh-python,
python (>= 2.6.5),
python-setuptools,
Standards-Version: 3.9.3
X-Python-Version: >= 2.6
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-cubicweb,
python-cubicweb-relationwidget,
python-pytest,
python-rdflib,
python-setuptools,
python3-all,
python3-cubicweb,
python3-cubicweb-relationwidget,
python3-pytest,
python3-rdflib,
python3-setuptools,
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Package: cubicweb-skos
Package: python-cubicweb-skos
Architecture: all
Depends:
python-cubicweb (>= 3.24.0),
python-six (>= 1.4.0),
${python:Depends},
${misc:Depends},
Recommends:
python-rdflib (>= 4.1),
python-librdf,
Description: "SKOS implementation for cubicweb"
Depends: ${misc:Depends}, ${python:Depends}
Recommends: python-rdflib (>= 4.1)
Breaks: cubicweb-skos (<< 1.6.0-1~)
Replaces: cubicweb-skos (<< 1.6.0-1~)
Description: SKOS implementation for cubicweb
CubicWeb is a semantic web application framework.
.
"SKOS implementation for cubicweb"
SKOS implementation for cubicweb
.
This package will install all the components you need to run an application
using the cubicweb-skos cube.
Package: python3-cubicweb-skos
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Recommends: python3-rdflib (>= 4.1)
Description: SKOS implementation for cubicweb
CubicWeb is a semantic web application framework.
.
SKOS implementation for cubicweb
.
This package will install all the components you need to run an application
using the cubicweb-skos cube.
Package: cubicweb-skos
Architecture: all
Section: oldlibs
Depends: python-cubicweb-skos, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-skos
# test_ccplugin requires PostgreSQL to be installed
# and thus is better tested using autopkgtest
export PYBUILD_TEST_ARGS = --ignore=test/test_ccplugin.py
# 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$))"
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