Py3.14 support#14049
Closed
nucleogenesis wants to merge 3 commits intolearningequality:release-v0.19.xfrom
Closed
Conversation
- Update python_requires to allow Python 3.14 (<3.15) - Add Python 3.14 classifier to setup.py - Add py3.14 to tox envlist and basepython mapping - Add Python 3.14 to GitHub Actions test matrix Refs: learningequality#13823 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
These methods are deprecated in Python 3.12+ and will be removed in a future version. Replace with timezone-aware alternatives: - datetime.utcnow() -> datetime.now(tz=timezone.utc) - datetime.utcfromtimestamp() -> datetime.fromtimestamp(ts, tz=timezone.utc) For database operations that require naive datetimes, use .replace(tzinfo=None) to strip the timezone after getting the current UTC time. Files modified: - kolibri/utils/version.py - kolibri/core/tasks/storage.py - kolibri/core/tasks/test/taskrunner/test_scheduler.py - kolibri/core/auth/api.py - kolibri/plugins/facility/views.py Refs: learningequality#13823 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Build Artifacts
|
Member
Author
|
Moved to Patch 3 - need to work out how to monkey-patch things rather than splitting up the req deps based on Python version. |
Member
Author
|
Superseded by #14324 |
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
Changes performed by Claude, reviewed & guided by me.
Claude noted that Python 3.14 requires new versions of two dependencies
django-filterandpytestwhere the major version we use currently is incompatible with 3.14.Claude's solution was to make multiple entries for these where it indicated which Python version should install which library version -- however, this would result in our needing to maintain code in a way that jives with all Python versions.
I've not included a couple of commits that performed some monkey patches while making the two-line dependencies.
TODO
References
#13823
Reviewer guidance
Draft for now - will return to this in Planned Patch 2!