Package: python3-mako
Version: 1.0.7+ds-1
Severity: important
User: [email protected]
Usertags: origin-ubuntu focal
Dear maintainers,
The alembic package fails to build from source in Ubuntu focal, because
Ubuntu has begun the transition to python3.8 and mako is not
source-compatible with python3.8:
[...]
=================================== FAILURES ===================================
_______________________ TemplateArgsTest.test_bad_render _______________________
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_alembic/build/alembic/util/pyfiles.py",
line 18, in template_to_file
output = template.render_unicode(**kw).encode(output_encoding)
File "/usr/lib/python3/dist-packages/mako/template.py", line 467, in
render_unicode
return runtime._render(self,
File "/usr/lib/python3/dist-packages/mako/runtime.py", line 837, in _render
_render_context(template, callable_, context, *args,
File "/usr/lib/python3/dist-packages/mako/runtime.py", line 873, in
_render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python3/dist-packages/mako/runtime.py", line 899, in
_exec_template
callable_(context, *args, **kwargs)
File "scratch_scripts_script_py_mako", line 23, in render_body
TypeError: unsupported operand type(s) for +: 'Undefined' and 'Undefined'
[...]
(https://launchpad.net/ubuntu/+source/alembic/1.0.11-5ubuntu1/+build/17988507)
Debian has not yet started the transition to python3.8 - the version of
python3-defaults that adds python3.8 as supported is currently in
experimental - but this will eventually become a serious bug in Debian as
well once that transition begins.
For the moment I have worked around the failure in Ubuntu by changing the
packaging to test only against the current version of python3 and not
against all supported versions, but this is a very short-term fix given that
python3.8 will become the default in the next 6 months.
Thanks,
--
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 https://www.debian.org/
[email protected] [email protected]
diff -Nru alembic-1.1.0/debian/control alembic-1.1.0/debian/control
--- alembic-1.1.0/debian/control 2019-10-31 06:41:59.000000000 -0700
+++ alembic-1.1.0/debian/control 2019-11-13 21:33:35.000000000 -0800
@@ -8,7 +8,7 @@
Build-Depends:
debhelper-compat (= 12),
dh-python (>= 3.20180927~),
- python3-all,
+ python3,
python3-changelog,
python3-setuptools,
python3-sphinx,