Skip to content

Commit 3407290

Browse files
authored
chore: Make Python 3.14 support official (#474)
* Add 3.14 to the matrix of tested python versions in tests.yml * Run build-deploy-docs.yml, release.yml, tests.yml:build-doc and tests.yml:mypy on 3.14 * Say torchjd is compatible with 3.14 in installation.md and add 3.14 classifier in pyproject.toml * Suggest 3.14 in CONTRIBUTING.md * Add changelog entry
1 parent 7e7c623 commit 3407290

7 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/build-deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
UV_NO_SYNC: 1
11-
PYTHON_VERSION: '3.13'
11+
PYTHON_VERSION: '3.14'
1212

1313
jobs:
1414
build-deploy-doc:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
PYTHON_VERSION: 3.13
8+
PYTHON_VERSION: 3.14
99

1010
jobs:
1111
pypi-publish:

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
UV_NO_SYNC: 1
11-
PYTHON_VERSION: 3.13
11+
PYTHON_VERSION: 3.14
1212

1313
jobs:
1414
tests-full-install:
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false # Ensure matrix jobs keep running even if one fails
1919
matrix:
20-
python-version: ['3.10', '3.11', '3.12', '3.13']
20+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2121
os: [ubuntu-latest, macOS-latest, windows-latest]
2222

2323
steps:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ changes that do not affect the user.
3535
- Added usage example for IWRM with autogram.
3636
- Added usage example for IWRM with partial autogram.
3737
- Added usage example for IWMTL with autogram.
38+
- Added Python 3.14 classifier in pyproject.toml (we now also run tests on Python 3.14 in the CI).
3839

3940
### Changed
4041

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ mandatory, we only provide installation steps with this tool. You can install it
1212
1) Pre-requisites: Use `uv` to install a Python version compatible with TorchJD and to pin it to the
1313
`torchjd` folder. From the root of the `torchjd` repo, run:
1414
```bash
15-
uv python install 3.13.3
16-
uv python pin 3.13.3
15+
uv python install 3.14.0
16+
uv python pin 3.14.0
1717
```
1818

1919
2) Create a virtual environment and install the project in it. From the root of `torchjd`, run:

docs/source/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:end-before: <!-- end installation -->
66
```
77

8-
Note that `torchjd` requires Python 3.10, 3.11, 3.12 or 3.13 and `torch>=2.0`.
8+
Note that `torchjd` requires Python 3.10, 3.11, 3.12, 3.13 or 3.14 and `torch>=2.0`.
99

1010
Some aggregators (CAGrad and Nash-MTL) have additional dependencies that are not included by default
1111
when installing `torchjd`. To install them, you can use:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ classifiers = [
2929
"Programming Language :: Python :: 3.11",
3030
"Programming Language :: Python :: 3.12",
3131
"Programming Language :: Python :: 3.13",
32+
"Programming Language :: Python :: 3.14",
3233
"Topic :: Scientific/Engineering",
3334
"Topic :: Scientific/Engineering :: Artificial Intelligence",
3435
]

0 commit comments

Comments
 (0)