Skip to content

gh-153227: Use a development version of Pygments#153228

Open
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:docs/use-development-pygments
Open

gh-153227: Use a development version of Pygments#153228
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:docs/use-development-pygments

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Jul 6, 2026

Copy link
Copy Markdown
Member

uv decided to upgrade other dependencies in pylock.toml; I didn't see any failures, so I decided to leave it.

@ZeroIntensity ZeroIntensity added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 6, 2026
@ZeroIntensity ZeroIntensity added docs Documentation in the Doc dir skip news labels Jul 6, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 6, 2026
@ZeroIntensity

Copy link
Copy Markdown
Member Author

@hugovk Any advice on the CI failure here? I don't think pylock.toml likes installing from a VCS (might be a pip bug).

@hugovk

hugovk commented Jul 6, 2026

Copy link
Copy Markdown
Member

Perhaps if we use the archive instead of VCS?

pygments @ https://github.com/pygments/pygments/archive/2cad2642058441b59782a6a18f03c98c42d081f1.tar.gz

Comment thread Doc/requirements.txt
Comment on lines 6 to 11
# The Sphinx version is pinned so that new versions that introduce new warnings
# won't suddenly cause build failures. Updating the version is fine as long
# as no warnings are raised by doing so.
# Keep this version in sync with ``Doc/conf.py``.
pygments @ git+https://github.com/pygments/pygments@2cad2642058441b59782a6a18f03c98c42d081f1
sphinx<9.0.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment block applies to Sphinx, so move the pygments line further down.

And let's add a comment, something like:

# Temporary direct requirement,
# pending release of Pygments > 2.20.0
# https://github.com/pygments/pygments/discussions/3145
pygments @ etc

Comment thread Doc/pylock.toml
# uv pip compile requirements.txt --exclude-newer P14D --exclude-newer-package linklint=PT0S --exclude-newer-package python-docs-theme=PT0S --no-cache --output-file Doc/pylock.toml --python-version 3.12 --universal
lock-version = "1.0"
created-by = "uv"
requires-python = ">=3.12"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did need to manually remove this line to workaround a packaging bug, but I think that might be fixed now. Let's leave this here and find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants