Skip to content

Commit e67d5da

Browse files
committed
Only use pytorch repo for pytorch
1 parent 6259441 commit e67d5da

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/test-coverage.yml

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
uses: actions/setup-python@v5
9494
with:
9595
python-version: '3.12'
96+
check-latest: true
9697

9798
- name: Install uv
9899
run: |

py-polars/pyproject.toml

+10
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,13 @@ exclude_lines = [
285285
"if TYPE_CHECKING:",
286286
"from typing_extensions import ",
287287
]
288+
289+
[[tool.uv.index]]
290+
name = "pytorch"
291+
url = "https://download.pytorch.org/whl/cpu"
292+
explicit = true
293+
294+
[tool.uv.sources]
295+
torch = [
296+
{ index = "pytorch", marker = "python_version < '3.1.3' or sys_platform != 'win32'" },
297+
]

py-polars/requirements-ci.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Packages that we require for unit tests that run on CI
33
# (installable via `make requirements-all`)
44
# -------------------------------------------------------
5-
--extra-index-url https://download.pytorch.org/whl/cpu
65
torch; python_version < '3.13' or platform_system != 'Windows' # torch provides no wheel for Python 3.13 on Windows
76
jax[cpu]
87
pyiceberg>=0.7.1

0 commit comments

Comments
 (0)