[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986903: python3-zope.testrunner: bcep file does not work with buster's py3compile



Package: python3-zope.testrunner
Version: 5.2-2
Severity: serious
X-Debbugs-Cc: sramacher@debian.org

Starting from a buster chroot, the following fails

$ apt install -y python3-zope.testrunner
$ sed 's/buster/bullseye/' -i /etc/apt/sources.list
$ apt update
$ apt install -y python3-zope.testrunner

with:

Setting up python3-zope.testrunner (5.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in <module>
    main()
  File "/usr/bin/py3compile", line 266, in main
    e_patterns = get_exclude_patterns()
  File "/usr/bin/py3compile", line 93, in get_exclude_patterns
    for type_, vers, dname, pattern in get_exclude_patterns_from_dir():
  File "/usr/share/python3/debpython/__init__.py", line 22, in __call__
    self.cache[key] = self.func(*args, **kwargs)
  File "/usr/bin/py3compile", line 68, in get_exclude_patterns_from_dir
    type_, vrange, dname, pattern = line.split('|', 3)
ValueError: not enough values to unpack (expected 4, got 3)
dpkg: error processing package python3-zope.testrunner (--configure):
 installed python3-zope.testrunner package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 python3-zope.testrunner
E: Sub-process /usr/bin/dpkg returned an error code (1)

The issue is python3-zope.testrunner's bcep file (see #985455 for a
similar bug) which contains:

  dir|3.0-|/usr/lib/python3/dist-packages/zope/testrunner/tests/

Although the documentation of dh_python3 suggests that this would be
supported in buster, it actually isn't. Possible fixes include:

* Chaning the bcep file to

    re|3.0-|/usr/lib/python3/dist-packages/zope/testrunner/tests|.*

* Or adding a dependency on python3-minimal (>= 3.8.2-2)

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: