Add Python dependency lockfile - #651
Closed
SeanMeyer wants to merge 1 commit into
Closed
Conversation
Author
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
SeanMeyer
force-pushed
the
add-python-lockfile
branch
from
January 13, 2026 15:53
6e60bb0 to
bceee51
Compare
Add proper lockfile generation and CI validation for Python dependencies used in documentation building. Changes: - Rename requirements-min/requirements.txt to requirements.in (unpinned deps) - Replace pip freeze with uv pip compile for lockfile generation - Add update-deps target for regenerating lockfile - Add verify-deps target for CI validation - Add CI job to verify lockfile stays in sync with requirements.in The lockfile (requirements.txt) is generated using uv with: make -C Documentation update-deps Developer workflow: 1. Edit requirements.in to add/update dependencies 2. Run: make -C Documentation update-deps 3. Commit both requirements.in and requirements.txt This enables: - Security vulnerability management via exact version tracking - Build reproducibility across environments - Audit trail for dependency changes Signed-off-by: Sean Meyer <sean.meyer@datadoghq.com>
SeanMeyer
force-pushed
the
add-python-lockfile
branch
from
January 13, 2026 15:58
bceee51 to
a7604c5
Compare
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.
Add Python dependency lockfile
Why
Lockfiles pin all dependencies (direct and transitive) to specific versions, enabling:
Security vulnerability management: Automated tools can quickly identify which repositories are affected by CVEs without needing to run dependency resolution.
Incident response: When issues occur, lockfiles provide an audit trail showing exactly which dependency versions changed and when.
Build reproducibility: Eliminates dependency drift between environments and over time.
Developer workflow
# Update dependencies make -C Documentation update-depsChanges
Documentation/requirements.in: Unpinned dependencies (renamed from requirements-min/requirements.txt)Documentation/requirements.txt: Generated lockfile with all transitive dependencies pinnedDocumentation/Makefile: Commands to regenerate and verify lockfile.github/workflows/documentation.yaml: CI job to ensure lockfile stays in syncTechnical notes
uvwith--python-version 3.11 --python-platform linuxfor cross-platform compatibilityGenerated with Claude Code