Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.12']
python-version: ['3.10', '3.14']
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
1 change: 1 addition & 0 deletions changelog.d/20260413_python_version_upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Improvement] Drop Python 3.9 (end of life) support and add Python 3.13 and 3.14 support. The CI test matrix now covers Python 3.10 and 3.14. Fix docs build for Python 3.14 by explicitly setting `__module__` on `TypeVar`/`ParamSpec` objects; in Python 3.14 `typing_extensions` re-exports the stdlib versions, causing their `__module__` to default to `"typing"` and breaking Sphinx cross-references. (by @ali-abbass)
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ authors = [
]
description = "The Docker-based Open edX distribution designed for peace of mind"
readme = {file = "README.rst", content-type = "text/x-rst"}
requires-python = ">= 3.9"
requires-python = ">= 3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
# these fields will be set by hatch_build.py
dynamic = ["version", "dependencies", "optional-dependencies"]
Expand Down
1 change: 1 addition & 0 deletions tutor/core/hooks/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#: Action generic signature.
T = ParamSpec("T")
T.__module__ = __name__

ActionCallbackFunc = t.Callable[T, None]

Expand Down
3 changes: 3 additions & 0 deletions tutor/core/hooks/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@

#: Filter generic return value, which is also the type of the first callback argument.
T1 = t.TypeVar("T1")
T1.__module__ = __name__
#: Filter generic signature for all arguments after the first one.
T2 = ParamSpec("T2")
T2.__module__ = __name__
#: Specialized typevar for list elements
L = t.TypeVar("L")
L.__module__ = __name__

FilterCallbackFunc = t.Callable[Concatenate[T1, T2], T1]

Expand Down
Loading