Package: behave
Version: 1.2.5-3
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu focal ubuntu-patch
Hi Vincent,
The behave package fails to build from source in Ubuntu focal, because
Ubuntu has begun the transition to python3.8 and behave is not
source-compatible with python3.8:
[...]
ERROR: test_loads_hooks_and_step_definitions (test.test_runner.TestRunWithPaths)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_behave/build/test/test_runner.py", line
597, in test_loads_hooks_and_step_definitions
self.runner.run_with_paths()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_behave/build/behave/runner.py",
line 693, in run_with_paths
return self.run_model()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_behave/build/behave/runner.py",
line 470, in run_model
self.setup_capture()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_behave/build/behave/runner.py",
line 424, in setup_capture
self.log_capture = LoggingCapture(self.config)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_behave/build/behave/log_capture.py",
line 74, in __init__
fmt = logging.Formatter(fmt, datefmt)
File "/usr/lib/python3.8/logging/__init__.py", line 576, in __init__
self._style.validate()
File "/usr/lib/python3.8/logging/__init__.py", line 428, in validate
if not self.validation_pattern.search(self._fmt):
TypeError: expected string or bytes-like object
[...]
(https://launchpad.net/ubuntu/+source/behave/1.2.5-3/+build/17964504)
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 behave-1.2.5/debian/control behave-1.2.5/debian/control
--- behave-1.2.5/debian/control 2019-09-13 05:45:20.000000000 -0700
+++ behave-1.2.5/debian/control 2019-11-01 22:03:19.000000000 -0700
@@ -5,7 +5,7 @@
Uploaders: Debian Python Modules Team
<[email protected]>
Build-Depends: debhelper-compat (= 12),
dh-python,
- python3-all,
+ python3,
python3-hamcrest,
python3-mock,
python3-nose,