chore: pin all Python dependency versions (#82) #83
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#83
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-discord82"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
requirements.txtto exact==versions sourced from the live production containerpytestandpytest-asyncioout ofrequirements.txtinto a newrequirements-dev.txt(which includes-r requirements.txt)python:3.12-slimtopython:3.12.13-slim(matches production Python 3.12.13)numpy<2floor constraint, replacing it with the exact pinned versionnumpy==1.26.4Files Changed
requirements.txt— all deps pinned to exact versions, test deps removedrequirements-dev.txt— new file with pinned test depsDockerfile— base image pinned topython:3.12.13-slimVersions (sourced from production container)
Test Results
No test suite — changes verified by reading back modified files.
Other Observations
The Dockerfile could also be pinned to a specific digest (
FROM python:3.12.13-slim@sha256:...) for complete immutability. The specific version tag is already a significant improvement and avoids the need to maintain a digest manually.AI Code Review
Files Reviewed
requirements.txt(modified)requirements-dev.txt(added)Dockerfile(modified).gitea/workflows/docker-build.yml(read for CI impact analysis)Findings
Correctness
==to exact versions matching the live container. Correct approach.pytestandpytest-asynciocorrectly moved torequirements-dev.txtwith-r requirements.txtinclude.numpy<2floor constraint replaced with exactnumpy==1.26.4pin — removes ambiguity.python:3.12-slimtopython:3.12.13-slim. Matches production Python version..gitea/workflows/docker-build.ymlonly runs a Docker build — no standalonepyteststep — so removing pytest fromrequirements.txtdoes not break CI.# psycopg[binary]comment is preserved correctly.Security
Style & Conventions
requirements-dev.txtfollows the standard-r requirements.txtpattern for dev dependency files.requirements.txtretains CRLF line endings from the original;requirements-dev.txtuses LF. No functional impact.Suggestions
FROM python:3.12.13-slim@sha256:...) would give complete immutability. The tag pin is already a meaningful improvement — no action required.Verdict: APPROVED
Clean, correct dependency hygiene change. Versions sourced from the live production container, CI not impacted, dev dependencies correctly separated. Gitea blocks self-approval — posting as COMMENT.
Automated review by Claude PR Reviewer