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

Update Debian packaging with support for Python 3

The new binary package with Python 3 support is named
python3-cubicweb-jsonschema 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.

We also take this opportunity to run the tests at build time.

Support for Python 3.8 is disabled as it is currently broken
in Debian unstable.
parent b4cd80c24093
cubicweb-jsonschema (0.6.0-1) UNRELEASED; urgency=medium
* New upstream release.
* Add Python 3 package.
* Rename Python 2 package to match the currently recommended namespace and a
transitional package.
-- Jérémy Bobbio <jeremy.bobbio@irq7.fr> Tue, 26 Nov 2019 09:28:26 +0100
cubicweb-jsonschema (0.4.0-1) unstable; urgency=medium
* New upstream release.
......
......@@ -2,23 +2,43 @@ Source: cubicweb-jsonschema
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends:
debhelper (>= 9),
dh-python,
python (>= 2.7),
python-setuptools,
Standards-Version: 3.9.8
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-cubicweb,
python-iso8601,
python-jsondiff,
python-jsonschema,
python-mock,
python-pyramid (>= 1.8.0),
python-pyramid-multiauth,
python-setuptools,
python-six (>= 1.4.0),
python-uritemplate,
python-webtest,
python-wsgicors,
python3-all,
python3-cubicweb,
python3-iso8601,
python3-jsondiff,
python3-jsonschema,
python3-mock,
python3-pyramid,
python3-pyramid-multiauth,
python3-setuptools,
python3-six,
python3-uritemplate,
python3-webtest,
python3-wsgicors,
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Package: cubicweb-jsonschema
Package: python-cubicweb-jsonschema
Architecture: all
Depends:
python-cubicweb-pyramid (>= 3.24.1),
python-six (>= 1.4.0),
python-iso8601,
python-pyramid (>= 1.8.0),
${python:Depends},
${misc:Depends},
Depends: ${misc:Depends}, ${python:Depends}
Breaks: cubicweb-jsonschema (<< 0.6.0-1)
Replaces: cubicweb-jsonschema (<< 0.6.0-1)
Description: JSON Schema for CubicWeb
CubicWeb is a semantic web application framework.
.
......@@ -26,3 +46,21 @@ Description: JSON Schema for CubicWeb
.
This package will install all the components you need to run the
cubicweb-jsonschema application (cube :)..
Package: python3-cubicweb-jsonschema
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: JSON Schema for CubicWeb
CubicWeb is a semantic web application framework.
.
JSON Schema for CubicWeb
.
This package will install all the components you need to run the
cubicweb-jsonschema application (cube :)..
Package: cubicweb-jsonschema
Architecture: all
Section: oldlibs
Depends: python-cubicweb-jsonschema, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-jsonschema
export PYBUILD_TEST_ARGS = -s test
# test/hypermedia-walkthrough.rst is broken due to python-uritemplate not
# being current enough (see Debian #945530 for reference), so let's skip
# all doctests (see test/test_api.py on how this variable is used).
export DOCTESTS_PATTERN = *skip*
# Python 3.8 is broken in Debian unstable as of 2019-11-26
export PYBUILD_DISABLE_python3.8 = 1
%:
dh $@ --with python2
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^(.hg(/|ignore$|tags$)|[^/]*\.spec$|__pkginfo__\.py$|doc/http-api/)"
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