Skip to content

Pin the Python packages to their current releases, ready for Python 3.15 - #205

Merged
rongxin-liu merged 1 commit into
developfrom
python-3.15
Nov 26, 2026
Merged

rongxin-liu merged 1 commit into
developfrom
python-3.15

Conversation

@rongxin-liu

Copy link
Copy Markdown
Contributor

Summary

Pins every package in the Dockerfile's pip3 install to its current release and moves pillow to a version with Python 3.15 wheels, so the image builds on cs50/cli:canary (3.15.2) ahead of the cs50/cli move (cs50/cli#256). Today it does not: pillow==11.3.0 has 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 the canary branch last built on Nov 20, before cs50/cli:canary became 3.15.

Package From To
black unpinned 26.10.1
djhtml unpinned 3.0.11
matplotlib unpinned 3.11.2
pillow 11.3.0 13.0.0
pytz unpinned 2026.6
setuptools unpinned 84.2.1

Also moves the workflow's setup-python to 3.15 (runner-side only, for jsmin and docker-squash).

Worth knowing

  • Pillow and cs50/check must agree. CS50P's shirt check 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 reference shirt.py produces 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.
  • Every pin has both cp314 and cp315 wheels, so this is safe to merge now: main keeps building on today's 3.14 cs50/cli, and canary starts proving the 3.15 base.

Verification

Built FROM cs50/cli:canary (3.15.2) and FROM cs50/cli:latest (3.14.10). On each: tests/smoke.sh passes end to end, pip check is clean, the pins are satisfied, all six packages import, matplotlib renders headless, and the six cs50vsix-client entry points (clean50, command50, debug50, lab50, prompt50, rebuild50) run.

Related: cs50/cli#254

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.
@rongxin-liu rongxin-liu self-assigned this Nov 26, 2026
@rongxin-liu
rongxin-liu merged commit d9ff599 into develop Nov 26, 2026
3 checks passed
@rongxin-liu
rongxin-liu deleted the python-3.15 branch November 26, 2026 00:37
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.

1 participant