Skip to content

Update the shared Python pins to their current releases - #54

Merged
rongxin-liu merged 1 commit into
mainfrom
update-pins
Nov 26, 2026
Merged

rongxin-liu merged 1 commit into
mainfrom
update-pins

Conversation

@rongxin-liu

Copy link
Copy Markdown
Contributor

Summary

Every shared pin moves to its current release, each with both cp314 and cp315 wheels so the default and TensorFlow runtimes keep installing from wheels. Pillow goes to 13.0.0 to match cs50/codespace#205: the CS50P shirt check byte-hashes the JPEG a student's Pillow writes, so the grader's Pillow and the codespace's must agree, and the reference solution hashes identically on 11.3.0, 12.3.0, and 13.0.0.

Package From To
cachelib 0.14.0 0.17.2
emoji 2.15.0 2.16.0
fpdf2 2.8.7 2.9.0
inflect 7.5.0 7.6.0
nltk 3.9.1 3.10.4
opencv-python 5.0.0.93 5.1.0.95
pandas 3.0.6 3.1.1
Pillow 12.3.0 13.0.0
plotly 6.7.0 7.2.0
pytz 2026.2 2026.6
validators 0.35.0 0.36.0

numpy, scikit-learn, and the rest were already current. The TensorFlow pins in requirements-tensorflow.txt are unchanged.

Deliberately not bumped: passlib

passlib 1.9.5 appeared on PyPI on 2026-11-23 from a new maintainer (notypecheck@gmail.com) and a new GitHub org, with the author field blanked, after six years with no release (1.7.4, Oct 2020, Eli Collins). It may be a legitimate handover, but nothing confirms that yet, and 1.7.4 imports and hashes correctly on 3.14 and 3.15 with no deprecation warnings. Staying on 1.7.4 until the handover is accounted for; the pin's comment says why.

Verification

Resolved the pins on both cs50/cli:canary (3.15.2) and cs50/cli:latest (3.14.10), alongside the TensorFlow stack on the latter: identical results. Built the image's Python layers FROM cs50/cli:canary and ran tests/smoke.sh: both runtimes satisfy their pins, the default runtime has no TensorFlow, the TF runtime trains a Keras 3 model and loads transformers' TF classes with the new numpy and pandas, routing is unchanged, and check50 grades a TensorFlow submission end to end. Separately exercised the larger jumps (pandas 3.1, plotly 7, fpdf2 2.9, emoji, inflect, validators) on 3.15.

Every pin in requirements.txt moves to its latest release with both cp314
and cp315 wheels, so both runtimes keep installing from wheels. Pillow
moves to 13.0.0, the version cs50/codespace now pins (cs50/codespace#205):
the CS50P shirt check byte-hashes students' JPEGs, so the grader's Pillow
and the codespace's must agree, and the reference solution hashes
identically on 11.3.0, 12.3.0, and 13.0.0.

passlib stays at 1.7.4. The PyPI project published 1.9.5 on 2026-11-23 from
a new maintainer and GitHub org after six years without a release; until
that handover is accounted for, 1.7.4 (which works on 3.14 and 3.15) is
the safer pin.

The TensorFlow pins in requirements-tensorflow.txt are unchanged.
@rongxin-liu rongxin-liu self-assigned this Nov 26, 2026
@rongxin-liu
rongxin-liu merged commit 596c99d into main Nov 26, 2026
1 check passed
@rongxin-liu
rongxin-liu deleted the update-pins branch November 26, 2026 01:01
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