python3-pygments: update 2.20.0 -> 2.21.0
PATCH 1/1 python3-pygments: update 2.20.0 -> 2.21.0
One notable change from this update is the addition of a Bitbake lexer, which will allow us to do proper Bitbake syntax coloring in our documentation.
Full list of changes:
https://github.com/pygments/pygments/releases/tag/2.21.0
Tested using this version for the documentation with our buildtools-docs-tarball recipe.
---
.../python/{python3-pygments_2.20.0.bb => python3-pygments_2.21.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/python/python3-pygments_2.21.0.bb renamed from meta/recipes-devtools/python/python3-pygments_2.20.0.bb +1 -1
@@ -5,7 +5,7 @@ LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592" inherit python_hatchling -SRC_URI[sha256sum] = "6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f" +SRC_URI[sha256sum] = "610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c" inherit pypi
---
base-commit: 07a342aa80c7349dd014f743a695a5e006add8df
change-id: 20260817-update-pygments-1b579985f5c1
Quoted 4 lines · Antonin Godard via lists.openembedded.org
One notable change from this update is the addition of a Bitbake lexer, which will allow us to do proper Bitbake syntax coloring in our documentation.
Quoted 8 lines
Full list of changes:
https://github.com/pygments/pygments/releases/tag/2.21.0Tested using this version for the documentation with our buildtools-docs-tarball recipe.
Signed-off-by Antonin Godard <[email protected]>---
Hi Antonin,
Thanks for your patch.
It looks like this upgrade might be breaking some ptests, for a lot of python recipes:
Failed ptests:
{'python3-click': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-xmltodict': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-webcolors': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-wcwidth': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-uritools': 'START: ptest-runner\n'
...
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2181
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4294
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4311
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/986
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/967
Can you have a look at the issues?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi,
Quoted 37 lines · Mathieu Dubois-Briand
Quoted 4 lines · Antonin Godard via lists.openembedded.org
One notable change from this update is the addition of a Bitbake lexer, which will allow us to do proper Bitbake syntax coloring in our documentation.
Quoted 8 lines
Full list of changes:
https://github.com/pygments/pygments/releases/tag/2.21.0Tested using this version for the documentation with our buildtools-docs-tarball recipe.
Signed-off-by Antonin Godard <[email protected]>---
Hi Antonin,
Thanks for your patch.
It looks like this upgrade might be breaking some ptests, for a lot of python recipes:
Failed ptests:
{'python3-click': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-xmltodict': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-webcolors': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-wcwidth': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-uritools': 'START: ptest-runner\n'
...
Quoted 7 lines
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2181
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4294
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4311
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/986
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/967Can you have a look at the issues?
I don't really understand it yet, the issue is always the same it seems:
'"/usr/lib/python3.14/site-packages/pygments/util.py", ' 'line 13, in <module>\n'
' import html\n'
"ModuleNotFoundError: No module named 'html'\n"
Yet the html module is provided by python3, and does show up in python3-pygments' sysroot when I build it:
tmp/work/cortexa57-oe-linux/python3-pygments/2.21.0/recipe-sysroot/usr/lib/python3.14/html/
Antonin
Quoted 55 lines · Antonin Godard via lists.openembedded.org
Hi,
Quoted 37 lines · Mathieu Dubois-Briand
Quoted 4 lines · Antonin Godard via lists.openembedded.org
One notable change from this update is the addition of a Bitbake lexer, which will allow us to do proper Bitbake syntax coloring in our documentation.
Quoted 8 lines
Full list of changes:
https://github.com/pygments/pygments/releases/tag/2.21.0Tested using this version for the documentation with our buildtools-docs-tarball recipe.
Signed-off-by Antonin Godard <[email protected]>---
Hi Antonin,
Thanks for your patch.
It looks like this upgrade might be breaking some ptests, for a lot of python recipes:
Failed ptests:
{'python3-click': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-xmltodict': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-webcolors': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-wcwidth': 'START: ptest-runner\n'
...
Failed ptests:
{'python3-uritools': 'START: ptest-runner\n'
...Quoted 7 lines
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2181
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4294
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4311
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/986
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/967Can you have a look at the issues?
I don't really understand it yet, the issue is always the same it seems:
'"
/usr/lib/python3.14/site-packages/pygments/util.py", ' 'line 13, in <module>\n'
' import html\n'
"ModuleNotFoundError: No module named 'html'\n"
Quoted 4 lines
Yet the html module is provided by python3, and does show up in python3-pygments' sysroot when I build it:
tmp/work/cortexa57-oe-linux/python3-pygments/2.21.0/recipe-sysroot/usr/lib/python3.14/html/
Those are ptest runtime errors (i.e. an image booted under qemu) so probably a missing RDEPENDS on a python module somewhere...
Cheers,
Richard
Hi,
On Tue Aug 18, 2026 at 2:18 PM CEST, Richard Purdie via lists.openembedded.org wrote:
[...]
Quoted 7 lines
Quoted 7 lines
I don't really understand it yet, the issue is always the same it seems:
'"
/usr/lib/python3.14/site-packages/pygments/util.py", ' 'line 13, in <module>\n'
' import html\n'
"ModuleNotFoundError: No module named 'html'\n"
Quoted 7 lines
Quoted 4 lines
Yet the html module is provided by python3, and does show up in python3-pygments' sysroot when I build it:
tmp/work/cortexa57-oe-linux/python3-pygments/2.21.0/recipe-sysroot/usr/lib/python3.14/html/
Those are ptest runtime errors (i.e. an image booted under qemu) so probably a missing RDEPENDS on a python module somewhere...
You're right. I didn't realise the html module was packaged separately (python3-html). Adding the runtime dependency fixes the issue for me. Thanks! v2 incoming.
Antonin