Skip to content

Commit

Permalink
Add Python 3.13 support
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Nov 12, 2024
1 parent cdc5199 commit 2dd0c18
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/torch_cpu_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--index-url https://download.pytorch.org/whl/cpu
# torch 2.3.0 on Windows may through a DLL import error, presumably due to the newly introduced dependency to MKL:
# https://github.com/pytorch/pytorch/issues/125109
torch!=2.3.0+cpu
# numpy 2.0 on Windows may be incompatible to torch:
# https://github.com/pytorch/pytorch/issues/128860
numpy<2.0
torch
# Old typing_extensions does not support Python 3.13
# https://github.com/python/typing_extensions/issues/405
typing_extensions>=4.12
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: "pip"
cache-dependency-path: "**/*requirements.txt"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

name: "Python ${{ matrix.python }}"
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "windows-2022"]
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

name: "${{ matrix.os }} / Python ${{ matrix.python }}"
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 2dd0c18

Please sign in to comment.