Skip to content

feat(ci): manage python dependencies with uv and uv.lock - #807

Merged
mfoo merged 2 commits into
mainfrom
migrate-to-uv
Nov 1, 2026
Merged

mfoo merged 2 commits into
mainfrom
migrate-to-uv

Conversation

@mfoo

@mfoo mfoo commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Summary

This PR transitions Python dependency management from an inline pip install PyYAML==6.0.2 in the Kubernetes Manifest Validation workflow to uv with pyproject.toml and uv.lock.

Changes

  • Adds pyproject.toml defining pyyaml>=6.0.3.
  • Generates deterministic cross-platform uv.lock with pinned binary wheel hashes for Python 3.12–3.14.
  • Adds .python-version pinned to 3.14.
  • Updates .github/workflows/k8s-lint.yaml to use astral-sh/setup-uv@v10.3.3 with caching and uv run scripts/validate_releases.py.
  • Adds .gitignore ignoring .venv/ and Python cache files.
  • Adds pyproject.toml, uv.lock, and .github/workflows/k8s-lint.yaml to the workflow trigger paths.

Benefits

  • Fixes CI failure on Python 3.14 where PyYAML 6.0.2 lacked wheels.
  • Renovate natively supports pep621 and automatically bumps uv.lock when dependencies are updated.
  • Faster, deterministic builds.

Comment thread .github/workflows/k8s-lint.yaml Fixed
Comment thread .github/workflows/k8s-lint.yaml Fixed
Comment thread .github/workflows/k8s-lint.yaml Fixed
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

@mfoo
mfoo merged commit 95b196f into main Nov 1, 2026
8 checks passed
@mfoo
mfoo deleted the migrate-to-uv branch November 1, 2026 14:38
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.

2 participants