Repository navigation
Pin the Python packages to their current releases, ready for Python 3.15 - #205
Merged
Merged
Conversation
The image did not build on cs50/cli:canary (Python 3.15): pillow==11.3.0 has no cp315 wheel, so pip fell back to the sdist, which fails for lack of libjpeg headers, the same failure the 3.14 move hit with 10.4.0. Pillow moves to 13.0.0, and the other packages are pinned at their current releases too, so a rebuild for an unrelated reason cannot change what students get. Pillow must write the same JPEGs as the Pillow in cs50/check, which byte-hashes students' shirt output; the reference solution produces identical hashes on 11.3.0, 12.3.0 (cs50/check), and 13.0.0. Every pin has cp314 and cp315 wheels, so the image builds on both today's cs50/cli and canary; verified with tests/smoke.sh on each, plus imports, a headless matplotlib render, and the six cs50vsix-client entry points.
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.
Summary
Pins every package in the Dockerfile's
pip3 installto its current release and movespillowto a version with Python 3.15 wheels, so the image builds oncs50/cli:canary(3.15.2) ahead of the cs50/cli move (cs50/cli#256). Today it does not:pillow==11.3.0has no cp315 wheel, pip falls back to the sdist, and the build fails for lack of libjpeg headers, the same failure the 3.14 move hit with 10.4.0 (5f4b475). Nobody has seen it because thecanarybranch last built on Nov 20, beforecs50/cli:canarybecame 3.15.blackdjhtmlmatplotlibpillowpytzsetuptoolsAlso moves the workflow's
setup-pythonto 3.15 (runner-side only, forjsminanddocker-squash).Worth knowing
shirtcheck byte-hashes the JPEG a student's Pillow writes, so the codespace's Pillow must produce the same bytes as the grader's. cs50/check is on 12.3.0; the referenceshirt.pyproduces identical hashes for all six check inputs on 11.3.0, 12.3.0, and 13.0.0. If cs50/check ever moves Pillow, this pin should move with it.mainkeeps building on today's 3.14cs50/cli, andcanarystarts proving the 3.15 base.Verification
Built
FROM cs50/cli:canary(3.15.2) andFROM cs50/cli:latest(3.14.10). On each:tests/smoke.shpasses end to end,pip checkis clean, the pins are satisfied, all six packages import, matplotlib renders headless, and the sixcs50vsix-cliententry points (clean50,command50,debug50,lab50,prompt50,rebuild50) run.Related: cs50/cli#254