Phase 3: Upgrade Python 3.10 to 3.13#9321
Open
camd wants to merge 3 commits intocamd/back-end-package-upgrade-phase-2from
Open
Phase 3: Upgrade Python 3.10 to 3.13#9321camd wants to merge 3 commits intocamd/back-end-package-upgrade-phase-2from
camd wants to merge 3 commits intocamd/back-end-package-upgrade-phase-2from
Conversation
- Update Docker images to python:3.13-slim-bookworm / python:3.13-bookworm - Update CI to cimg/python:3.13-node - Update ruff target-version to py313, tox envlist to py313 - Fix dev.Dockerfile: netcat -> netcat-openbsd (Bookworm), ENV format - Remove Python 3.10 backport deps (backports-asyncio-runner, exceptiongroup, tomli) - Add setuptools to dev.txt (removed from stdlib in 3.13) - Remove pyqt5/pyqt5-qt5/pyqt5-sip (no 3.13 wheels, unused by Treeherder) - Upgrade zstandard 0.22.0 -> 0.23.0 (0.22 doesn't build on 3.13) - Add deprecation warning filters for datetime.utcfromtimestamp/utcnow - Filter pip check for known mozdetect/pyqt5 incompatibility Co-Authored-By: Claude Opus 4.6 <[email protected]>
numpy 1.26.4 has no prebuilt wheel for Python 3.13, causing the Docker build to fail when trying to compile from source without g++. numpy 2.2.6 ships cp313 wheels for all platforms. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Ruff's UP017 rule enforces using datetime.UTC (available since Python 3.11) instead of datetime.timezone.utc when targeting py313. Also removes the now-unused timezone imports (F401). Co-Authored-By: Claude Opus 4.6 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## camd/back-end-package-upgrade-phase-2 #9321 +/- ##
=========================================================================
- Coverage 82.37% 82.37% -0.01%
=========================================================================
Files 615 615
Lines 34999 34999
Branches 3312 3244 -68
=========================================================================
- Hits 28831 28829 -2
- Misses 5819 6046 +227
+ Partials 349 124 -225 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
netcat→netcat-openbsd,ENVformat in Dockerfilebackports-asyncio-runner,exceptiongroup,tomli) that are now in stdlibsetuptoolsto dev requirements (removed from stdlib in Python 3.13)pyqt5/pyqt5-qt5/pyqt5-sipfromcommon.txt— no Python 3.13 wheels and unused by Treeherder (declared bymozdetectbut only needed for GUI/plotting features)zstandard0.22.0 → 0.23.0 (0.22 fails to build on 3.13)datetime.utcfromtimestamp()/utcnow()(deprecated in 3.12+, TODO to migrate to timezone-aware calls)Dependencies
Known limitations
mozdetectdeclarespyqt5as a dependency, but PyQt5 has no Python 3.13 wheels. Since Treeherder only uses mozdetect's data analysis functions (not GUI), this is safe to skip.pip checkin CI is filtered to allow this.datetime.utcfromtimestamp()anddatetime.utcnow()calls are suppressed via warning filters rather than migrated — there are 20+ call sites across source and tests. A follow-up PR should migrate these todatetime.fromtimestamp(ts, datetime.UTC).Test plan
pip checkpasses (with known mozdetect/pyqt5 filter)tox -e linters)🤖 Generated with Claude Code