Skip to content
This repository was archived by the owner on Nov 2, 2026. It is now read-only.

build: lock development environments with uv - #139

Merged
NaweedAghmad merged 1 commit into
masterfrom
security/uv-lock-cutover
Sep 9, 2026
Merged

NaweedAghmad merged 1 commit into
masterfrom
security/uv-lock-cutover

Conversation

@NaweedAghmad

@NaweedAghmad NaweedAghmad commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The repository had competing dependency entry points, CI installed from metadata without consuming uv.lock, and two CodeQL actions/missing-workflow-permissions alerts on the default branch. The root and documentation requirements files could resolve dependency versions that conflicted with current project metadata.

Solution

  • Make pyproject.toml the dependency declaration and uv.lock the reproducible environment contract.
  • Raise runtime floors to setuptools>=83.0.0 and torch>=2.13.0,<3, then regenerate uv.lock.
  • Remove root requirements.txt and docsrc/requirements.txt.
  • Synchronize CI and documentation builds with uv sync --locked using the existing dev and docs extras.
  • Declare contents: read in the build and lint workflows; retain the stale workflow's existing issue/PR-only write permissions.
  • Format the repository with the locked Black version so the new full-tree lint job succeeds.

Provenance

Commit: 8ea37db build: lock development environments with uv

This fully supersedes #136 and #137: it removes the vulnerable root torch declaration, raises the authoritative torch and setuptools floors, and regenerates the lockfile to torch 2.14.0 and setuptools 84.0.0. It does not supersede #126 because that full lock-file maintenance PR resolves unrelated package versions, nor #132 or #134 because their GitHub Action version updates are not included.

Verification

  • uv lock --check
  • uv sync --locked --extra dev && uv run pytest -v — 117 passed.
  • uv run black --check . — 103 files unchanged.
  • ./docsrc/generate_docs.sh — succeeded; 19 pre-existing Sphinx warnings remain.
  • Remote Build run 34363409523 — Python 3.11, 3.12, and 3.13 all passed.
  • Remote Lint run 34363409442 — passed.

Documentation

README and CONTRIBUTING now require Python 3.11+ and document locked uv workflows. The docs generator uses the root docs extra instead of a separate requirements file.

Follow-up

References #138. A CodeQL analysis did not run on this branch; after merge, verify default-branch alerts #3 and #4 are closed or dismissed before resolving #138.

@NaweedAghmad
NaweedAghmad marked this pull request as ready for review September 9, 2026 14:51
@NaweedAghmad
NaweedAghmad merged commit c88f513 into master Sep 9, 2026
11 of 12 checks passed
@NaweedAghmad
NaweedAghmad deleted the security/uv-lock-cutover branch September 9, 2026 14:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant