Skip to content

Commit 5c75a51

Browse files
committed
Use uv
1 parent 421231f commit 5c75a51

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

.github/workflows/python-upstream.yaml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
with:
5252
python-version: '3.13'
5353

54+
- name: Install uv
55+
uses: astral-sh/setup-uv@v5
56+
5457
- name: Build wheels
5558
uses: PyO3/maturin-action@v1
5659
with:
@@ -60,15 +63,22 @@ jobs:
6063
sccache: 'true'
6164
# manylinux: ${{ matrix.platform.manylinux }} # https://github.com/PyO3/maturin-action/issues/245
6265

63-
- name: mypy
66+
- name: setup
6467
shell: bash
6568
working-directory: icechunk-python
6669
run: |
6770
set -e
6871
python3 -m venv .venv
6972
source .venv/bin/activate
70-
pip install --group upstream
71-
pip install icechunk --find-links dist --force-reinstall
73+
uv pip install --group upstream
74+
uv pip install icechunk --no-deps --find-links dist --force-reinstall
75+
uv pip list
76+
77+
- name: mypy
78+
shell: bash
79+
working-directory: icechunk-python
80+
run: |
81+
set -e
7282
mypy python
7383
7484
- name: Restore cached hypothesis directory
@@ -158,13 +168,27 @@ jobs:
158168
with:
159169
python-version: '3.11'
160170

171+
- name: Install uv
172+
uses: astral-sh/setup-uv@v5
173+
161174
- name: Build wheels
162175
uses: PyO3/maturin-action@v1
163176
with:
164177
working-directory: icechunk/icechunk-python
165178
args: --release --out dist --find-interpreter
166179
sccache: 'true'
167180

181+
- name: setup
182+
shell: bash
183+
working-directory: icechunk/icechunk-python
184+
run: |
185+
set -e
186+
python3 -m venv .venv
187+
source .venv/bin/activate
188+
uv pip install icechunk['upstream'] --find-links dist --force-reinstall
189+
uv pip install pytest-mypy-plugins
190+
uv pip list
191+
168192
- name: pytest
169193
id: status
170194
shell: bash
@@ -173,10 +197,6 @@ jobs:
173197
ICECHUNK_XARRAY_BACKENDS_TESTS: 1
174198
run: |
175199
set -e
176-
python3 -m venv .venv
177-
source .venv/bin/activate
178-
pip install icechunk['upstream'] --find-links dist --force-reinstall
179-
pip install pytest-mypy-plugins
180200
# pass xarray's pyproject.toml so that pytest can find the `flaky` fixture
181201
pytest -c=../../xarray/pyproject.toml -W ignore tests/run_xarray_backends_tests.py
182202

icechunk-python/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ upstream = [
6161
"pytest-cov",
6262
"pytest-asyncio",
6363
"pytest-xdist",
64+
"pytest-reportlog",
6465
"ruff",
6566
"hypothesis",
6667
"pandas-stubs",
6768
"boto3-stubs[s3]",
6869
"termcolor",
69-
"object-store-python @ git+https://github.com/roeap/object-store-python.git",
70+
# "object-store-python @ git+https://github.com/roeap/object-store-python.git", # doesn't work with uv
71+
"object-store-python",
7072
"dask @ git+https://github.com/dask/dask.git",
7173
"distributed @ git+https://github.com/dask/distributed.git",
7274
"xarray @ git+https://github.com/pydata/xarray.git",

0 commit comments

Comments
 (0)