Repository navigation
Respond to eMudhra intermediate CA compromise - #28
Merged
Merged
Conversation
Move the development environment to patched versions after the eMudhra intermediate CA compromise (certifi GHSA-6q48-6c7w-9gw2). Python 3.12 and earlier have no patched release, so developers move to 3.13.17. * .python-version 3.10.18 -> 3.13.17 and .copier-answers.yml py_version 3.12.11 -> 3.13.17 (the dev interpreter only). requires-python stays >=3.10 and the CI matrix still tests 3.10 to 3.13: every matrix job runs `uv python pin <matrix version>`, so the 3.10 jobs do not read this file. * uv.lock and requirements.txt: certifi 2025.10.5 -> 2026.10.23; the lock also moves the dev-group pip 25.2 -> 26.2.2. Relocked with uv 0.7.13, the version required by [tool.uv] required-version, so the lock format is unchanged. * pyproject.toml: [tool.uv] constraint-dependencies certifi>=2026.10.19. uv itself stays at 0.7.13 everywhere: [tool.uv] required-version is "==0.7.13", so a newer uv refuses to run in this repository.
The "Setup Python" step runs `uv python pin ${PYTHON_VERSION}`, but the
default shell on Windows runners is PowerShell, which does not expand
${PYTHON_VERSION}. `uv python pin` was then run with no argument, which
only prints the existing pin, so every Windows job (3.10 to 3.13) used
whatever .python-version said. That was 3.10.18, so the Windows jobs were
all running 3.10 and the 3.11 to 3.13 entries were not testing those
versions.
With .python-version moved to the patched 3.13.17, the Windows jobs
would have all switched to 3.13.17 (and failed, because the pinned uv
0.7.13 cannot download it). Use bash for the step so the matrix version is
applied on every OS and the Windows 3.10 job still tests the lowest
supported Python.
pyproject-fmt aligns trailing comments within a table, so adding constraint-dependencies to [tool.uv] moved the column of the comment on required-version. Whitespace only; the required-version value is unchanged.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (80.60% Estimated after merge)
Summary
.python-version:3.10.18->3.13.17. This is the development interpreter only..copier-answers.yml:py_version3.12.11->3.13.17, so it matches.python-version(a template update would otherwise write the old value back).uv.lock: certifi2025.10.5->2026.10.23, and the dev-group pip25.2->26.2.2. Nothing else moved. The only other lock change is the new constraint recorded under[manifest].requirements.txt: certifi2025.10.5->2026.10.23(re-exported with the file's own header command).pyproject.toml: newconstraint-dependencies = [ "certifi>=2026.10.19" ]under[tool.uv]. The comment onrequired-versionis realigned by one commit because pyproject-fmt aligns comments within a table; the value is unchanged..github/workflows/ci.yml: the "Setup Python" step now hasshell: bash(see below).Context
Response to the eMudhra intermediate CA compromise (certifi GHSA-6q48-6c7w-9gw2, uv GHSA-hq85-5cpj-mr62). Python 3.12 and earlier have no patched release, so the development interpreter moves to 3.13.17.
Python floor and CI
requires-pythonstays>=3.10, and the classifiers and the CI matrix (3.10 to 3.13) are unchanged.uv python pin ${PYTHON_VERSION}. On the Linux and macOS jobs (bash) that pins the matrix version, so those jobs do not read.python-version.${PYTHON_VERSION}. Thereuv python pinran with no argument, which only prints the existing pin, so every Windows job (3.10 to 3.13) used whatever.python-versionsaid. Before this PR that was 3.10.18, so the Windows 3.11, 3.12 and 3.13 jobs were all running 3.10. With the file moved to 3.13.17 they would all have run 3.13.17 and lost the Windows 3.10 coverage (and failed: the pinned uv 0.7.13 cannot download 3.13.17, "No download found for request: cpython-3.13.17-windows-x86_64-none"; the first CI run on this branch showed exactly that).shell: bashon that step, so each Windows job now runs its own matrix version. The lowest supported Python is still tested on every OS, plus thelowest-directresolution job on ubuntu, and the Windows 3.11 to 3.13 jobs now test the versions they are named after.code-analysisjob does not run Python.uv syncanduv runnow use 3.13.17 by default, so the 3.10 floor is checked by CI and not by default on developer machines. Running against 3.10 locally still works withuv run --python 3.10 ....release.ymlsets up Python 3.13 and runsuv build. uv honours.python-versionfor the interpreter it builds with, so the package is now built with 3.13.x instead of 3.10.18. The package is pure Python (hatchling), so the wheel is unaffected. The release workflow was not run.Verified
uv lock --upgrade-package certifi --upgrade-package pip(uv 0.7.13) changes only certifi and pip;requirements.txtchanges only the certifi entry.uv sync --frozeninto a fresh virtual environment on CPython 3.13.17 (test group) installs certifi 2026.10.23.CI=true pyteston 3.13.17 (Windows): 10 passed. No network-drive paths intests/,src/,tasks/or.github/.lowest-direct) pass, including prek, pyright, zizmor and pytest, and "Analyse Code Quality" and the SonarQube check pass. One job failed once on a transient package download error (jedi) and passed when re-run.Not verified
Notes
[tool.uv] required-version = "==0.7.13"makes any other uv refuse to run in this repository (uv 0.13.5 stops with "Required uv version==0.7.13does not match the running version"). Moving to the patched uv (0.13.4 or later) means changing that exact pin together withci.yml,release.yml,.pre-commit-config.yamlandtasks/scripts/install_backend.sh, which is a separate change for the owners to decide. The lock was therefore refreshed with uv 0.7.13 and keeps its format..github/copilot-instructions.mdstill says the project uses Python 3.12; it was left as is.