Skip to content

Pin the python-statistics requirements - #828

Merged
martin-martin merged 1 commit into
masterfrom
pin-python-statistics-requirements
Sep 14, 2026
Merged

martin-martin merged 1 commit into
masterfrom
pin-python-statistics-requirements

Conversation

@martin-martin

Copy link
Copy Markdown
Contributor

Follow-up to #827, which shipped this folder earlier today.

Materials folders should pin their dependencies in requirements.txt, which is what the great majority of folders in this repo already do. python-statistics went out with an unpinned requirements.txt and the pins kept separately in a constraints.txt, so a plain pip install -r requirements.txt could pull a stack the tutorial was never checked against.

  • Pins move into requirements.txt
  • constraints.txt is deleted, since it no longer carries anything the requirements file doesn't
  • The README's setup step drops the -c constraints.txt

Verification

Built a fresh virtualenv from requirements.txt alone and confirmed it resolves to exactly the versions the tutorial was verified against: NumPy 2.5.3, SciPy 1.18.1, pandas 3.0.5, Matplotlib 3.11.2. All 13 scripts run on it, plots included. ruff format --check and ruff check pass under the repo's pinned ruff 0.14.1.

Reviewed by @martin-martin.

🤖 Generated with Claude Code

Materials folders should pin their dependencies in requirements.txt, which
is what the great majority of folders here already do. This one shipped
with an unpinned requirements.txt and the pins kept separately in a
constraints.txt, so a plain `pip install -r requirements.txt` could pull a
stack the tutorial was never checked against.

Move the pins into requirements.txt, drop constraints.txt, and update the
README's setup step to match.

Re-verified after the change: a virtualenv built from requirements.txt
alone resolves to NumPy 2.5.3, SciPy 1.18.1, pandas 3.0.5 and Matplotlib
3.11.2, all 13 scripts run on it, and ruff format/check pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@martin-martin
martin-martin merged commit d867710 into master Sep 14, 2026
1 check passed
@martin-martin
martin-martin deleted the pin-python-statistics-requirements branch September 14, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants