Skip to content

Move uv to the patched 0.13.5 - #29

Merged
nathanjmcdougall merged 3 commits into
developfrom
fix/emudhra-ca-compromise
Oct 27, 2026
Merged

nathanjmcdougall merged 3 commits into
developfrom
fix/emudhra-ca-compromise

Conversation

@nathanjmcdougall

@nathanjmcdougall nathanjmcdougall commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This follows #28, which is already merged. The diff of this PR is exactly three commits, 8c0caa0, e035bf4 and df8f318, on top of the head of #28.

  • uv 0.7.13 -> 0.13.5 (the first patched uv is 0.13.4): the setup-uv version in .github/workflows/ci.yml and release.yml, the seven uv== entries in .pre-commit-config.yaml, and uv_version in tasks/scripts/install_backend.sh.
  • pyproject.toml: [tool.uv] required-version "==0.7.13" -> ">=0.13.5". This relaxes an exact pin to a minimum and raises it to the uv version this PR moves to (8c0caa0 relaxed it to ">=0.7.13", e035bf4 raised the minimum to 0.13.5, and df8f318 restored the comment alignment that e035bf4 broke). The exact pin made every other uv refuse to run in this repository (uv 0.13.5 stopped with "Required uv version ==0.7.13 does not match the running version"), so it had to change before uv could move. The trailing comment and its alignment are as pyproject-fmt wants them.
  • uv.lock and requirements.txt are unchanged: uv lock with 0.13.5 produces the same lock (the format revision stays at 2) and the pre-commit uv export command produces the same requirements.txt.

Context

Follow-up to #28 (eMudhra intermediate CA compromise response, certifi GHSA-6q48-6c7w-9gw2, uv GHSA-hq85-5cpj-mr62). #28 moved Python and certifi but left uv at 0.7.13 because of the exact required-version pin.

Verified

  • With uv 0.13.5 and the relaxed required-version: uv lock --check passes, uv lock and uv export give no diff, and pyproject-fmt reports no change.
  • GitHub Actions, run 40444402383 (a manual workflow_dispatch run of ci.yml on the branch head 8c0caa0, made while Respond to eMudhra intermediate CA compromise #28 was already merged): all 13 "Run Tests and Checks" jobs (ubuntu, macOS and Windows on Python 3.10 to 3.13, plus ubuntu 3.10 lowest-direct, including prek, pyright, zizmor and pytest) and "Analyse Code Quality" pass. The checks on this PR for 8c0caa0 ran the same workflow and all passed (13 test jobs, code analysis and SonarQube). The first attempt had one failure that passed unchanged on re-run (see Notes).
  • e035bf4 and df8f318 together change only the required-version line in pyproject.toml (">=0.7.13" -> ">=0.13.5", same length, comment in the same column). e035bf4 on its own failed the pyproject-fmt hook because the comment lost two spaces of alignment; df8f318 fixes that. With uv 0.13.5, uv lock --check --offline passes. The results above are for 8c0caa0; the PR checks on df8f318 are the ones that verify the final state in CI.

Not verified

  • The release workflow was not run.
  • tasks/scripts/install_backend.sh was not run (it self-updates uv on a developer machine to the new uv_version).

Notes

  • The comments next to the uv version in ci.yml and release.yml ("Sync with pyproject.toml") were left as they are. required-version is now a minimum, so the workflows, the pre-commit hooks and install_backend.sh hold the concrete uv version (0.13.5) and pyproject.toml holds the lowest version allowed.
  • On the first attempt of the PR checks, the ubuntu 3.10 lowest-direct job failed once in tests/geopins/drivers/gdf/filetypes/test_gpkg.py::test_hash_is_not_dependent_on_file_write_time (the two hashes differed). The test writes the same GeoPackage twice one second apart, so it depends on file timestamps; nothing in this PR touches it. The job passed on re-run with no change, and the same job passed on the manual run 40444402383. It was not fixed here.

Respond to the uv advisory in the eMudhra intermediate CA compromise
response (GHSA-hq85-5cpj-mr62; the first patched uv is 0.13.4).

* pyproject.toml: [tool.uv] required-version "==0.7.13" -> ">=0.7.13".
  The exact pin made any other uv refuse to run in this repository, so
  uv could not be moved. The minimum is unchanged.
* uv 0.7.13 -> 0.13.5 in ci.yml and release.yml (setup-uv version), the
  seven uv entries in .pre-commit-config.yaml, and uv_version in
  tasks/scripts/install_backend.sh.
* uv.lock and requirements.txt are unchanged: `uv lock` with 0.13.5
  produces the same lock and `uv export` the same requirements.txt.
@nathanjmcdougall
nathanjmcdougall marked this pull request as ready for review October 27, 2026 21:37
@t-t-sonarqube

t-t-sonarqube Bot commented Oct 27, 2026

Copy link
Copy Markdown

@nathanjmcdougall
nathanjmcdougall merged commit 03daf60 into develop Oct 27, 2026
15 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