Pin the python-statistics requirements - #828
Merged
Merged
Conversation
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>
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.
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-statisticswent out with an unpinnedrequirements.txtand the pins kept separately in aconstraints.txt, so a plainpip install -r requirements.txtcould pull a stack the tutorial was never checked against.requirements.txtconstraints.txtis deleted, since it no longer carries anything the requirements file doesn't-c constraints.txtVerification
Built a fresh virtualenv from
requirements.txtalone 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 --checkandruff checkpass under the repo's pinned ruff 0.14.1.Reviewed by @martin-martin.
🤖 Generated with Claude Code