Skip to content

ci: install Mercurial and hg-git via uv on Linux - #1574

Merged
RonnyPfannschmidt merged 3 commits into
pypa:mainfrom
RonnyPfannschmidt:ci/hg-on-ubuntu-26.04
Nov 18, 2026
Merged

RonnyPfannschmidt merged 3 commits into
pypa:mainfrom
RonnyPfannschmidt:ci/hg-on-ubuntu-26.04

Conversation

@RonnyPfannschmidt

Copy link
Copy Markdown
Contributor

Written by Claude Opus 5.5 via Claude Code for the setuptools-scm maintainers; I prompted it, it did the work, I read it.

ubuntu-latest now resolves to the ubuntu-26.04 image, which ships no Mercurial, so every Linux test job fails at the hg-git install step (seen on #1570). Main will fail the same way on its next run.

Installing Mercurial with apt is not enough: Ubuntu 26.04 dropped its hg-git package, and hg-git 1.2.0 (the current PyPI release) fails to import on Mercurial 7.2 because repository.peer was removed. Without hg-git, test_hg_git.py would skip quietly instead of failing. Mercurial is therefore pinned below 7.2 until hg-git releases a fix.

🤖 Generated with Claude Code

RonnyPfannschmidt and others added 3 commits November 17, 2026 14:14
ubuntu-latest moved to the ubuntu-26.04 image, which ships no hg, so
every Linux test job failed at the hg-git install step. Ubuntu 26.04
also dropped its hg-git package, and hg-git 1.2.0 does not import on
Mercurial 7.2, so install a pinned Mercurial with hg-git as a uv tool.

Co-Authored-By: Claude Opus 5.5 via Claude Code <noreply@anthropic.com>
setup-python has no 3.8/3.9 builds for Ubuntu 26.04, which ubuntu-latest
now points at, so those jobs failed before running anything.

Co-Authored-By: Claude Opus 5.5 via Claude Code <noreply@anthropic.com>
A failing gpg signature left no commit behind, and
test_git_getdate_signed_commit then failed on a missing HEAD instead of
showing gpg's error, as in the Windows flake on the Ubuntu 26.04 CI run.

Co-Authored-By: Claude Opus 5.5 via Claude Code <noreply@anthropic.com>
@RonnyPfannschmidt
RonnyPfannschmidt merged commit cf5e4ee into pypa:main Nov 18, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant