Skip to content

Commit b92abc5

Browse files
authored
Add Python 3.13 support (#398)
* update * update
1 parent 02fd735 commit b92abc5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/building.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [ubuntu-20.04, macos-14, windows-2019]
14-
python-version: ['3.9', '3.10', '3.11', '3.12']
14+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1515
torch-version: [2.6.0] # [2.5.0]
1616
cuda-version: ['cpu', 'cu118', 'cu121', 'cu124', 'cu126']
1717
exclude:
18+
- torch-version: 2.5.0
19+
python-version: '3.13'
1820
- torch-version: 2.5.0
1921
cuda-version: 'cu126'
2022
- torch-version: 2.6.0

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Note that only `value` comes with autograd support, as `index` is discrete and t
3030

3131
## Installation
3232

33-
### Anaconda
34-
3533
### Binaries
3634

3735
We provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://data.pyg.org/whl).
@@ -297,7 +295,7 @@ pytest
297295
## C++ API
298296

299297
`torch-sparse` also offers a C++ API that contains C++ equivalent of python models.
300-
For this, we need to add `TorchLib` to the `-DCMAKE_PREFIX_PATH` (*e.g.*, it may exists in `{CONDA}/lib/python{X.X}/site-packages/torch` if installed via `conda`):
298+
For this, we need to add `TorchLib` to the `-DCMAKE_PREFIX_PATH` (run `import torch; print(torch.utils.cmake_prefix_path)` to obtain it).
301299

302300
```
303301
mkdir build

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ classifiers =
1111
Programming Language :: Python :: 3.10
1212
Programming Language :: Python :: 3.11
1313
Programming Language :: Python :: 3.12
14+
Programming Language :: Python :: 3.13
1415
Programming Language :: Python :: 3 :: Only
1516

1617
[aliases]

0 commit comments

Comments
 (0)