github-samples / github-samples/pets-workshop

Pin Python dependencies in app/server/requirements.txt

Open
#234 1 comment 0 reactions 1 assignee View on GitHub

@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.0 n

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.