Package: ansible Version: 2.2.0.0-1 Severity: wishlist Tags: patch According to the documentation, ansible 2.2 features a tech preview of python3 support. One reason why that's useful is because several newer distros do not include python2 by default such as Ubuntu 16.04 LTS and the next RHEL).
I am attaching patches in case you want to enable it. The easiest way to do this was to enable pybuild. pybuild runs the upstream tests but they fail for some reason so I skipped them until that can be investigated. It looks like ansible 2.2.1 improves python3 support quite a bit but I don't know when it will be released. (It's currently at RC2 and 2.2 is supposed to be a stable series.) Thanks, Jeremy Bicha
From dea659d43cb650c1698985aaccb7b2514b363298 Mon Sep 17 00:00:00 2001 From: Jeremy Bicha <jbi...@ubuntu.com> Date: Mon, 9 Jan 2017 03:11:10 -0500 Subject: [PATCH 1/2] Build with pybuild --- debian/control | 2 ++ debian/rules | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 13e8d31..030762c 100644 --- a/debian/control +++ b/debian/control @@ -11,6 +11,8 @@ Build-Depends: debhelper (>= 9), asciidoc, python-nose, python-passlib, + python-jinja2 <!nocheck>, + python-six <!nocheck>, dh-python Standards-Version: 3.9.8 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/ansible.git diff --git a/debian/rules b/debian/rules index 86a7d42..15808e0 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,9 @@ #!/usr/bin/make -f +export PYBUILD_NAME=ansible %: - dh $@ --with python2 -Spython_distutils + dh $@ --with python2 --buildsystem=pybuild + +# Investigate why the tests are failing +override_dh_auto_test: + -dh_auto_test -- 2.10.2