Port to Python 3

Bug #1516688 reported by Barry Warsaw on 2015-11-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-xapian-index (Debian)
New
Unknown
apt-xapian-index (Ubuntu)
High
Barry Warsaw

Bug Description

Now that we have python3-xapian1.3 in Xenial, we can port apt-xapian-index to Python 3. I have a two branches in progress. The first ports a-x-i to bilingual Python 2/3 support, and I hope to get this merged upstream.

Once we have that, the delta to switch to Python 3 is relatively small, and my second branch does this.

Barry Warsaw (barry) wrote :

I have two branches which I've submitted to the maintainers. The first makes a-x-i bilingual so it should be a low-impact branch to apply in Debian:

http://anonscm.debian.org/cgit/collab-maint/apt-xapian-index.git/log/?h=bilingual

The second flips the switch to Python 3 so if the above branch is merged and uploaded, we could carry just a small delta in Ubuntu:

http://anonscm.debian.org/cgit/collab-maint/apt-xapian-index.git/log/?h=py3

Let's see what the Debian maintainers say. If needed, I'll carry both deltas in Ubuntu.

Changed in apt-xapian-index (Debian):
status: Unknown → New
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-xapian-index - 0.47ubuntu3

---------------
apt-xapian-index (0.47ubuntu3) xenial; urgency=medium

  * debian/patches:
    - 04_bilingual.patch: Port the code to work in Python 2.7, 3.4, and 3.5.
    - 05_python3.patch: Switch the default to Python 3. (LP: #1516688)
  * debian/compat: Bump to version 9.
  * debian/control:
    - Bump debhelper version to >= 9.
    - Switch dependencies to their Python 3 version.
    - Use X-Python3-Version instead.
  * debian/rules:
    - Use --with=python3 and --build-system=pybuild
    - Add override_dh_python3 to force /usr/bin/python3 shebang.
    - Run the tests in an override_dh_auto_test target.

 -- Barry Warsaw <email address hidden> Tue, 24 Nov 2015 11:13:01 -0500

Changed in apt-xapian-index (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.