Use pyproject for Python runtime deps lock input#17452
Conversation
Review Summary by QodoSplit Python dependencies between pyproject.toml and requirements.txt
WalkthroughsDescription• Split Python dependencies between runtime (pyproject.toml) and tooling (requirements.txt) • Updated compile_pip_requirements to read both pyproject.toml and requirements.txt • Removed runtime dependencies from requirements.txt, keeping only dev/tooling packages • Updated dependency versions and lock file with latest compatible releases Diagramflowchart LR
A["pyproject.toml<br/>Runtime Dependencies"] --> C["compile_pip_requirements"]
B["requirements.txt<br/>Tooling Dependencies"] --> C
C --> D["requirements_lock.txt<br/>Complete Lock File"]
File Changes1. scripts/update_py_deps.py
|
Code Review by Qodo
1.
|
|
Persistent review updated to latest commit 2892c9d |
|
Persistent review updated to latest commit 501d776 |
Python currently has 2 "sources of truth" for dependencies (requirements.txt and pyproject.toml)
Bazel does not currently support pyrpoject.toml dependency-groups which prevents us from just doing everything there.
💥 What does this PR do?
./go py:updateresults with it🔧 Implementation Notes
So now py:update will only work with dev dependencies which I think is correct.
🤖 AI assistance
💡 Additional Considerations