Skip to content

Commit bef6d34

Browse files
committed
move torch to extras_require for optional install
1 parent 69b4a05 commit bef6d34

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
pip install jaxlib
3030
pip install -r requirements/requirements-core.txt
3131
pip install -r requirements/requirements-docs.txt
32-
pip install .
32+
pip install .\[torch\]
3333
3434
- name: Build Documentation
3535
run: |

requirements/requirements-core.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ numpy>=1.20
33
colorlog
44
pyyaml
55
jax>=0.3.13
6-
jaxlib
7-
torch
6+
jaxlib

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
packages=find_packages(),
3434
include_package_data=True,
3535
pacakge_data={"s2fft": ["default-logging-config.yaml"]},
36+
extras_require={"torch": ["torch"]},
3637
)

0 commit comments

Comments
 (0)