Bug#872878: sagenb-export: FTBFS when python3.5 is removed
Steve Langasek
steve.langasek at canonical.com
Tue Aug 22 02:32:42 UTC 2017
Package: sagenb-export
Version: 3.2-2
Severity: serious
Tags: patch
Justification: FTBFS
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch
Dear Ximin,
The sagenb-export package now fails to build in Ubuntu, because python3.5
has been removed from artful - python3-all now depends only on python3.6 -
but debian/rules tries to run tox against python3.5.
I've uploaded the attached patch to Ubuntu to correct this, by running tox
only for the default python and python3 versions.
A more complete fix might iterate over 'py3versions -s' and run tox for
each, but that would require some dynamic mangling of tox.ini; so I think
just testing against the current default should be sufficient for now.
Since the python3.6 transition has begun in Debian and python3.5 will
therefore be dropped from unstable fairly soon, I'm marking this bug as
serious; but you can downgrade it in the short term if necessary,
understanding that it will become serious again.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru sagenb-export-3.2/debian/patches/python-versions-in-tox sagenb-export-3.2/debian/patches/python-versions-in-tox
--- sagenb-export-3.2/debian/patches/python-versions-in-tox 1969-12-31 16:00:00.000000000 -0800
+++ sagenb-export-3.2/debian/patches/python-versions-in-tox 2017-08-21 17:34:22.000000000 -0700
@@ -0,0 +1,30 @@
+Description: test against the current python versions, not hard-coded ones
+ Upstream test suite is testing against python2.7 and python3.5 at
+ build-time. Fix this to test against 'python' and 'python3' to use
+ whatever the current Debian default is for this release, instead of
+ hard-coding a specific version number.
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+
+Index: sagenb-export-3.2/tox.ini
+===================================================================
+--- sagenb-export-3.2.orig/tox.ini
++++ sagenb-export-3.2/tox.ini
+@@ -1,12 +1,12 @@
+ [tox]
+-envlist = py27, py34
++envlist = python, python3
+
+-[testenv:py27]
+-commands=python2.7 -m unittest discover
++[testenv:python]
++commands=python -m unittest discover
+
+-[testenv:py34]
++[testenv:py3.4]
+ commands=python3.4 -m unittest discover
+
+-[testenv:py35]
+-commands=python3.5 -m unittest discover
++[testenv:python3]
++commands=python3 -m unittest discover
+
diff -Nru sagenb-export-3.2/debian/patches/series sagenb-export-3.2/debian/patches/series
--- sagenb-export-3.2/debian/patches/series 1969-12-31 16:00:00.000000000 -0800
+++ sagenb-export-3.2/debian/patches/series 2017-08-21 17:32:40.000000000 -0700
@@ -0,0 +1 @@
+python-versions-in-tox
diff -Nru sagenb-export-3.2/debian/rules sagenb-export-3.2/debian/rules
--- sagenb-export-3.2/debian/rules 2017-08-16 12:39:30.000000000 -0700
+++ sagenb-export-3.2/debian/rules 2017-08-21 17:34:29.000000000 -0700
@@ -16,7 +16,7 @@
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
-TOX_ENVLIST = py27,py35
+TOX_ENVLIST = python,python3
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
More information about the debian-science-maintainers
mailing list