Commit a1571ad4 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. We also need to
add a couple of lines in MANIFEST.in so `sdist` ships
enough data to run tests at build time.

The new binary package with Python 3 support is named
python3-cubicweb-addressbook according to current standards.
parent 6513e47a92a9
include setup.py
include README
include *.ini
include dev-requirements.txt
recursive-include cubicweb_addressbook *.py
recursive-include cubicweb_addressbook/i18n *.pot *.po
recursive-include cubicweb_addressbook/schema *.sql
include test/data/bootstrap_cubes
cubicweb-addressbook (1.10.1-2) unstable; urgency=medium
* Update Debian packaging with support for Python 3
-- Philippe Pepiot <philippe.pepiot@logilab.fr> Thu, 21 Nov 2019 12:27:52 +0100
cubicweb-addressbook (1.10.1-1) unstable; urgency=medium
* new upstream release
......
......@@ -4,18 +4,21 @@ Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Build-Depends:
debhelper (>= 9),
python (>= 2.7),
dh-python,
python-all,
python-setuptools,
Standards-Version: 3.9.8
python-cubicweb,
python3-all,
python3-setuptools,
python3-cubicweb,
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Homepage: http://www.cubicweb.org/project/cubicweb-addressbook
Package: cubicweb-addressbook
Package: python-cubicweb-addressbook
Architecture: all
Depends:
python-cubicweb (>= 3.24.0),
cubicweb-geocoding (>= 0.3.0),
${python:Depends},
${misc:Depends},
Description: contact information component for the CubicWeb framework
......@@ -23,3 +26,22 @@ Description: contact information component for the CubicWeb framework
addresses, phone numbers, instant messager address.
.
CubicWeb is a semantic web application framework, see http://www.cubicweb.org
Package: python3-cubicweb-addressbook
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Description: contact information component for the CubicWeb framework
This CubicWeb component store contact information such as postal
addresses, phone numbers, instant messager address.
.
CubicWeb is a semantic web application framework, see http://www.cubicweb.org
Package: cubicweb-addressbook
Architecture: all
Section: oldlibs
Depends:
python-cubicweb-addressbook, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
usr/share/cubicweb/cubes/addressbook
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/addressbook -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/addressbook -name "*.pyo" | xargs rm -f
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
upgrade)
delete_pyo_pyc
;;
remove)
delete_pyo_pyc
;;
purge)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
#DEBHELPER#
cubicweb_geocoding python3-cubicweb-geocoding
cubicweb_geocoding python-cubicweb-geocoding
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-addressbook
# Python 3.8 is broken in Debian unstable as of 2019-11-20
export PYBUILD_DISABLE_python3.8 = 1
%:
dh $@ --with python2
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^(.hg(/|ignore$|tags$)|[^/]*\.spec$|__pkginfo__\.py$)"
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