• Bug#1067466: black autopkgtest fails because python3-typed-ast no longe

    From Olivier Gayot@21:1/5 to All on Thu Mar 21 23:30:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: black
    Version: 24.2.0-1
    Severity: normal
    Tags: patch
    User: ubuntu-devel@lists.ubuntu.com
    Usertags: origin-ubuntu noble ubuntu-patch

    Dear Maintainer,

    Since the removal of python3-typed-ast from the archive [1], black
    cannot install its test dependencies anymore and therefore fails autopkg tests.

    https://tracker.debian.org/news/1469662/python3-typed-ast-removed-from-testing/

    The AST library is provided by the Python standard library since Python
    3.8 so the dependency has been unused for some time and can be safely
    dropped.

    In src:black 22.10.0-2, the dependency on python3-typed-ast was dropped
    from d/control but not from d/test/control:

    https://metadata.ftp-master.debian.org/changelogs//main/b/black/black_24.2.0-1_changelog

    In Ubuntu, the attached patch was applied to achieve the following:

    * d/test/control: drop unused dependency on python3-typed-ast, which was
    dropped from the archive. (LP: #2058692)


    Thanks for considering the patch.


    -- System Information:
    Debian Release: trixie/sid
    APT prefers noble
    APT policy: (500, 'noble')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.8.0-11-generic (SMP w/8 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    diff -Nru black-24.2.0/debian/tests/control black-24.2.0/debian/tests/control --- black-24.2.0/debian/tests/control 2024-02-15 10:47:43.000000000 +0100
    +++ black-24.2.0/debian/tests/control 2024-03-21 23:04:40.000000000 +0100
    @@ -9,7 +9,6 @@
    python3-pytest,
    python3-pathspec,
    python3-regex,
    - python3-typed-ast,
    python3-aiohttp,
    python3-tomli,
    python3-mypy-extensions,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)