github-samples / github-samples/pets-workshop
Pin Python dependencies in app/server/requirements.txt
Open
@scubaninja is already working on this.
Since May 20, 2026.
priority: P1
- Dominant language
- Python
- Stars
- 80
- Forks
- 161
- Avg merge
- 31m
- Merged PRs (30d)
- 1
Description
Problem
requirements.txt has no version constraints:
ntextflask sqlalchemy flask_sqlalchemy n
This means builds can break silently when new major versions release (e.g. SQLAlchemy 1.x to 2.x had breaking API changes).
Fix
- Pin to compatible version ranges, e.g.:
nflask>=3.0,<4.0 sqlalchemy>=2.0,<3.0 flask_sqlalchemy>=3.1,<4.0n
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.