Skip to content

Commit 3814c2a

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

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/workflows/test-coverage.yml

Lines changed: 1 addition & 0 deletions
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

Lines changed: 10 additions & 0 deletions
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

Lines changed: 0 additions & 1 deletion
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

py-polars/tests/unit/operations/test_interpolate_by.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def test_interpolate_by_trailing_nulls(dataset: str) -> None:
164164

165165
@given(data=st.data(), x_dtype=st.sampled_from([pl.Date, pl.Float64]))
166166
def test_interpolate_vs_numpy(data: st.DataObject, x_dtype: pl.DataType) -> None:
167+
# Testing this function
167168
if x_dtype == pl.Float64:
168169
by_strategy = st.floats(
169170
min_value=-1e150,

0 commit comments

Comments
 (0)