#1028619 rich: autopkgtest is failng after updating pygments to 2.14.0+dfsg-1

#1028619#5
Date:
2023-01-13 18:21:38 UTC
From:
To:
Dear Maintainer,

after the upload of pygments 2.14.0+dfsg-1 your package is failung while
running the autopkgtest.

The failed part in detail is:

=================================== FAILURES ===================================
E       assert '\x1b[34mdef\...vious_value\n' == '\x1b[34mdef\...vious_value\n'
E         Skipping 81 identical leading characters in diff, use -v to show
E           mb␛[0m
E         - ␛[2m│   ␛[0m␛[33m"""Iterate and generate a tuple with a flag for first an␛[0m
E         + ␛[2;37m│   ␛[0m␛[33m"""Iterate and generate a tuple with a flag for first an␛[0m
E         ?    +++
E           ␛[2m│   ␛[0miter_values = ␛[36miter␛[0m(values)
E           ␛[2m│   ␛[0m␛[34mtry␛[0m:...
E
E         ...Full output truncated (10 lines hidden), use '-vv' to show

tests/test_syntax.py:114: AssertionError
----------------------------- Captured stdout call -----------------------------
'\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37m│   \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2m│   \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2m│   \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2m│   │   \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2m│   \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2m│   │   \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2m│   \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2m│   \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2m│   │   \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2m│   │   \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2m│   │   \x1b[0mprevious_value = value\n\x1b[2m│   \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'

E       assert '\x1b[2;37m│ ...[0m(values)\n' == '\x1b[2m│   \...[0m(values)\n'
E         - ␛[2m│   ␛[0m␛[33m"""Iterate and generate a tuple with a flag for first an␛[0m
E         + ␛[2;37m│   ␛[0m␛[33m"""Iterate and generate a tuple with a flag for first an␛[0m
E         ?    +++
E           ␛[2m│   ␛[0miter_values = ␛[36miter␛[0m(values)

tests/test_syntax.py:131: AssertionError
----------------------------- Captured stdout call -----------------------------
'\x1b[2;37m│   \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2m│   \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n'
=========================== short test summary info ============================
FAILED tests/test_syntax.py::test_python_render_simple_indent_guides - assert...
FAILED tests/test_syntax.py::test_python_render_line_range_indent_guides - as...
================== 2 failed, 765 passed, 23 skipped in 5.86s ===================
E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc.d007paln/downtmp/autopkgtest_tmp/build; python3.11 -m pytest tests

Regards
Carsten

#1028619#10
Date:
2023-01-13 18:25:52 UTC
From:
To:
yeah i'm wondering why you keep updating packages you dont maintain to
new upstream releases and breaking revdeps as consequence

#1028619#15
Date:
2023-01-14 07:11:53 UTC
From:
To:
tags -1 patch + upstream
forwarded -1 https://github.com/Textualize/rich/pull/2751

Am 13.01.23 um 19:25 schrieb Sandro Tosi:

It's seems to me you are the only person who who disagrees on the work I do.

That rdeps are will fail on package update is quite normal not only to
me. But it's a difference if a upstream project is doing a major version
bump or some usual minor update.
And we are not in any freeze state yet there I agree no uncoordinated
and unneeded version updates should happen.

So far possible I pointed in other reports I did open to the upstream
fix that adjust the local tests for the different behavior pygments
2.14.0 is producing.
Within rich this doesn't did happen yet by any other reporter or by
upstream itself.

So I created a PR [1] that will fix the issues within the tests.

For your convenience I added the same patch here where I can rebuild the
current version of rich in unstable successful again.

[1] https://github.com/Textualize/rich/pull/2751

#1028619#18
Date:
2023-01-21 19:54:22 UTC
From:
To:
Hello,

Bug #1028619 in rich reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/rich/-/commit/694a0d14de73e9a48f3f5da0f97a21720b3c7689
------------------------------------------------------------------------
Add patch for pygments 2.14.0

Closes: #1028619
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1028619

#1028619#25
Date:
2023-01-21 21:15:08 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rich, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1028619@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <jspricke@debian.org> (supplier of updated rich package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 21 Jan 2023 20:51:23 +0100
Source: rich
Architecture: source
Version: 13.0.0-1.1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <morph@debian.org>
Changed-By: Jochen Sprickerhof <jspricke@debian.org>
Closes: 1028619
Changes:
 rich (13.0.0-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch for pygments 2.14.0 (Closes: #1028619)
Checksums-Sha1:
 3deba907d7574bbc21e8e49af3a620494daab986 2162 rich_13.0.0-1.1.dsc
 19ce92c7eebdf736e0c5840e8000c938303ff201 4464 rich_13.0.0-1.1.debian.tar.xz
 c8714f95524de5124765b6e6b10f4747e4f93e9c 7221 rich_13.0.0-1.1_source.buildinfo
Checksums-Sha256:
 14e3ae68e48d8ee7d3f65234573ff2b97225f8c87b9b4a144923add90f108b34 2162 rich_13.0.0-1.1.dsc
 c51a8f8c7fe8c47a962eecdf5ede5da8ac8acccfbe81ac4805ca3dc777be5f5d 4464 rich_13.0.0-1.1.debian.tar.xz
 63a03b374dbeb0e7a8606534d06bedca6f8efd060dd1697a08e2bea87020fb93 7221 rich_13.0.0-1.1_source.buildinfo
Files:
 07d0c0e1344459053f09f06db83297f3 2162 python optional rich_13.0.0-1.1.dsc
 2b9d3e39b711912798e8877d3601d83a 4464 python optional rich_13.0.0-1.1.debian.tar.xz
 ab35798dc014295eeba54a323458d9c6 7221 python optional rich_13.0.0-1.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmPMQtoACgkQW//cwljm
lDN2yg//TLdl9NswSMn8Wm7KNRr6kXJieQsgjvgI2/kinxdO7apLKRuCfky5oOjL
PH+3jlEnJDYbJcZDpKgWvFfGudYHDQywAA9D28VtJVdh6IK52QapBUKk6UgtQLah
iLnduvMuiJl9TteOoInJeQwIbBlaDrQN8STF5UWSezzAcegTzNOHB4pO9SD63Ojx
BFIBRg7fBHx4N0HlM2k+a3WsWU6DwiYi4/mPqxGt1joxCF3gso68Zxzd2GQUMuIm
fCS+U1batrZZ5d4tStASOY0YuwL4DcZmKGWE4bcTj8hOu1ykGQD7Etp68dg4+ih8
3Jykzo95JHzpU2FUHRUsMzUMlIqUAM2X1WQqdmqcGHre/GROTXYuCZ2ySI8OtiyQ
UQhfRqEnVUeV9QKCULgvy7Pwg6aelR5R4kmpiP7+YZo1/xUNlSJ7kYlU6y6dRe6K
0YEAtDp/r2t22qYY4vZht/kgXac8SVpPQAKvCw2KWq2AivrtozqjnXdBU+2dM8sw
r6VQ8EH+ruPYUZ+mIj+01NvVJcAfOkIQS/rTVtD+EFsbDgyHUaNvvu/3Q9MQ+eWc
AC4F39s1Q3inqdlDA9ZJcTMY40ye69hjTiMpdSyVKcowP3WDenvIJuGwsk7z/42r
fJMqTHgxcK+n/Msz7RfMyUYv3cdaA37y+uyg0eAtV57P1nK7MkY=
=ihrB
-----END PGP SIGNATURE-----