Repository navigation
Conversation
- Replace requirements.txt with pyproject.toml + uv.lock - Merge telemetry dependencies into main dependency list - Update install commands to use 'uv sync --frozen' - Remove redundant pip-based lock files - Add astral-sh/setup-uv@v3 to GitHub Actions workflows This migration provides: - Hash-locked transitive dependencies for supply chain security - 10-100x faster installs via Rust-based resolver - Modern Python packaging standards (PEP 621) - Automatic Renovate detection without config changes - Single source of truth for all dependencies All 28 packages (including transitive dependencies) are now hash-locked in uv.lock with SHA256 verification on every install. Follows maintainer guidance from @adrielp: open-telemetry#517 (comment) Fixes open-telemetry#517
|
Author
|
Hi @adrielp! 👋 This PR implements your guidance from #517. Key changes:
Marked as draft for your review. Let me know if you'd like any adjustments before I mark it ready! Testing locally shows:
Ready for CI testing! 🚀 |
Pull request dashboard statusWaiting on the author · refreshed 2026-11-15 09:00 UTC Move out of draft to request review. Status above doesn't look right?
|
Author
|
Closing to resubmit with correct author information. |
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.
Summary
Migrates pull request dashboard dependencies from pip + requirements.txt to uv + pyproject.toml, as discussed in #517.
Changes
Dependency Management
requirements.txtwithpyproject.tomluv.lockwith hash-locked dependencies (28 packages total)requirements-telemetry.lock)Installation Updates
execution_code.pyto useuv sync --frozenpromote-pull-request-dashboard.ymlto use uvpull-request-dashboard-test.ymlto use uvastral-sh/setup-uv@v3action to workflowsBenefits
Security 🔒
Performance 🚀
Maintainability 🛠️
Testing
uv sync --frozenMigration Path
This approach follows the pattern from PR #516 but extends it to use modern uv:
pip install --require-hashesuv sync --frozenImplementation Details
pyproject.toml Structure
Lock File
uv lockWorkflow Changes
astral-sh/setup-uv@v3step to install uvpip install -r requirements.txttouv sync --frozenuv runto execute Python in the managed environmentFiles Changed
Added
.github/scripts/pull-request-dashboard/pyproject.toml(new).github/scripts/pull-request-dashboard/uv.lock(new, ~109KB)Modified
.github/scripts/pull-request-dashboard/execution_code.py.github/workflows/promote-pull-request-dashboard.yml.github/workflows/pull-request-dashboard-test.ymlRemoved
.github/scripts/pull-request-dashboard/requirements.txt.github/scripts/pull-request-dashboard/requirements-telemetry.txt.github/scripts/pull-request-dashboard/requirements-telemetry.lockReferences
Renovate Compatibility
As noted by @adrielp, no Renovate config changes are needed. Renovate automatically detects:
pyproject.tomldependenciesuv.lockformatDisclosure
Implementation completed with AI assistance (Claude). All changes reviewed, tested, and validated by @irfadkp.
Note: Marked as draft to allow other maintainers to review approach before final merge. Ready to address any feedback! 🙏