Package: python3-freezegun
Version: 0.3.11-0.1
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Hi Federico,

The jinja2-time package fails to build from source in Ubuntu focal, because
Ubuntu has begun the transition to python3.8 and freezegun is not
source-compatible with python3.8:

[...]
==================================== ERRORS ====================================
__ ERROR collecting .pybuild/cpython3_3.8_jinja2-time/build/tests/test_now.py __
tests/test_now.py:5: in <module>
    from freezegun import freeze_time
/usr/lib/python3/dist-packages/freezegun/__init__.py:9: in <module>
    from .api import freeze_time
/usr/lib/python3/dist-packages/freezegun/api.py:28: in <module>
    real_clock = time.clock
E   AttributeError: module 'time' has no attribute 'clock'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
[...]

  (https://launchpad.net/ubuntu/+source/jinja2-time/0.2.0-2/+build/17967649)

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/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru jinja2-time-0.2.0/debian/control jinja2-time-0.2.0/debian/control
--- jinja2-time-0.2.0/debian/control    2019-09-02 05:46:08.000000000 -0700
+++ jinja2-time-0.2.0/debian/control    2019-11-02 17:16:55.000000000 -0700
@@ -4,7 +4,7 @@
 Maintainer: Vincent Bernat <ber...@debian.org>
 Uploaders: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
 Build-Depends: debhelper-compat (= 9), dh-python,
-               python3-all,
+               python3,
                python3-arrow,
                python3-jinja2,
                python3-setuptools,

Reply via email to