Skip to content

Commit 8412a20

Browse files
committed
Fix tox.ini for installing test deps on darwin
1 parent 8e4efdb commit 8412a20

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ passenv =
8383
commands =
8484
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
8585
pip install 'apache-airflow==2.9.3' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.9.3/constraints-3.8.txt"
86-
pip install 'torch==2.0.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
87-
pip install 'torchvision==0.15.2+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8886
pip install 'dill>=0.3.8'
89-
9087
pytest {posargs}
91-
deps = .[test]
88+
deps =
89+
.[test]
90+
torch==2.0.1 ; sys_platform == 'darwin'
91+
torchvision==0.15.2 ; sys_platform == 'darwin'
92+
torch==2.0.1+cpu ; sys_platform != 'darwin'
93+
torchvision==0.15.2+cpu ; sys_platform != 'darwin'
94+
--find-links 'https://download.pytorch.org/whl/torch_stable.html'
9295
depends =
9396
{py38,py39,py310,p311}: clean
9497

0 commit comments

Comments
 (0)