Package: cookiecutter
Version: 1.6.0-4
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Hi Vincent,

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

[...]
==================================== ERRORS ====================================
_ ERROR collecting 
.pybuild/cpython3_3.8_cookiecutter/build/tests/test_default_extensions.py _
tests/test_default_extensions.py:7: in <module>
    import freezegun
/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'
[...]

  
(https://launchpad.net/ubuntu/+source/cookiecutter/1.6.0-4ubuntu1/+build/18010482)

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 cookiecutter-1.6.0/debian/control cookiecutter-1.6.0/debian/control
--- cookiecutter-1.6.0/debian/control   2019-09-01 08:01:10.000000000 -0700
+++ cookiecutter-1.6.0/debian/control   2019-11-01 13:58:02.000000000 -0700
@@ -5,7 +5,7 @@
 Uploaders: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
 Build-Depends: debhelper-compat (= 9), dh-python,
                git,
-               python3-all,
+               python3,
                python3-sphinx (>= 1.0.7+dfsg), python3-sphinx-rtd-theme,
                python3-setuptools,
                python3-jinja2,

Reply via email to