29
29
30
30
- name : Install dependencies
31
31
run : |
32
- python -m pip install --upgrade pip setuptools wheel
33
- python -m pip --no-cache-dir --quiet install --upgrade --pre ".[all,test]"
32
+ python -m pip install uv
33
+ uv pip install --system --upgrade pip setuptools wheel
34
+ uv pip --no-cache --quiet install --system --upgrade --pre ".[all,test]"
34
35
python -m pip list
35
36
36
37
- name : List release candidates, alpha, and beta releases
@@ -57,14 +58,14 @@ jobs:
57
58
with :
58
59
python-version : ${{ matrix.python-version }}
59
60
60
- # Use nightly SciPy wheels from Anaconda's PyPI
61
- # c.f. https://twitter.com/ralfgommers/status/1419917265781334025
62
61
- name : Install dependencies
63
62
run : |
64
- python -m pip install --upgrade pip setuptools wheel
65
- python -m pip --no-cache-dir --quiet install --upgrade ".[all,test]"
66
- python -m pip uninstall --yes scipy
67
- python -m pip install --upgrade --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
63
+ python -m pip install uv
64
+ uv pip install --system --upgrade pip setuptools wheel
65
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
66
+ uv pip uninstall --system scipy
67
+ # uv wants to upgrade dependencies (numpy) to a dev release too, so don't --upgrade
68
+ uv pip install --system --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
68
69
python -m pip list
69
70
70
71
- name : Test with pytest
@@ -87,11 +88,12 @@ jobs:
87
88
python-version : ${{ matrix.python-version }}
88
89
- name : Install dependencies
89
90
run : |
90
- python -m pip install --upgrade pip setuptools wheel
91
- python -m pip --no-cache-dir --quiet install --upgrade ".[all,test]"
92
- python -m pip uninstall --yes iminuit
93
- python -m pip install --upgrade cython
94
- python -m pip install --upgrade git+https://github.com/scikit-hep/iminuit.git
91
+ python -m pip install uv
92
+ uv pip install --system --upgrade pip setuptools wheel
93
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
94
+ uv pip uninstall --system iminuit
95
+ uv pip install --system --upgrade cython
96
+ uv pip install --system --upgrade git+https://github.com/scikit-hep/iminuit.git
95
97
python -m pip list
96
98
- name : Test with pytest
97
99
run : |
@@ -113,10 +115,11 @@ jobs:
113
115
python-version : ${{ matrix.python-version }}
114
116
- name : Install dependencies
115
117
run : |
116
- python -m pip install --upgrade pip setuptools wheel
117
- python -m pip --no-cache-dir --quiet install --upgrade ".[all,test]"
118
- python -m pip uninstall --yes uproot
119
- python -m pip install --upgrade git+https://github.com/scikit-hep/uproot5.git
118
+ python -m pip install uv
119
+ uv pip install --system --upgrade pip setuptools wheel
120
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
121
+ uv pip uninstall --system uproot
122
+ uv pip install --system --upgrade git+https://github.com/scikit-hep/uproot5.git
120
123
python -m pip list
121
124
- name : Test with pytest
122
125
run : |
@@ -140,16 +143,18 @@ jobs:
140
143
141
144
- name : Install dependencies
142
145
run : |
143
- python -m pip install --upgrade pip setuptools wheel
144
- python -m pip --no-cache-dir --quiet install --upgrade ".[all,test]"
145
- python -m pip uninstall --yes matplotlib
146
- # Need to use --extra-index-url as dependencies aren't on scientific-python-nightly-wheels package index.
146
+ python -m pip install uv
147
+ uv pip install --system --upgrade pip setuptools wheel
148
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
149
+ uv pip uninstall --system matplotlib
150
+ # Need to use --extra-index-url as all dependencies aren't on scientific-python-nightly-wheels package index.
147
151
# Need to use --pre as dev releases will need priority over stable releases.
148
- python -m pip install \
149
- --upgrade \
152
+ # Note that uv and pip differ on --extra-index-url priority
153
+ # c.f. https://github.com/scientific-python/upload-nightly-action/issues/76
154
+ uv pip install --system \
150
155
--pre \
151
- --index-url https://pypi.anaconda. org/scientific-python-nightly-wheels/ simple \
152
- --extra-index-url https://pypi.org/simple/ \
156
+ --index-url https://pypi.org/simple/ \
157
+ --extra-index-url https://pypi.anaconda. org/scientific-python-nightly-wheels/simple \
153
158
matplotlib
154
159
155
160
- name : List installed Python packages
@@ -175,10 +180,11 @@ jobs:
175
180
python-version : ${{ matrix.python-version }}
176
181
- name : Install dependencies
177
182
run : |
178
- python -m pip install --upgrade pip setuptools wheel
179
- python -m pip --no-cache-dir --quiet install --upgrade ".[all,test]"
180
- python -m pip uninstall --yes pytest
181
- python -m pip install --upgrade git+https://github.com/pytest-dev/pytest.git
183
+ python -m pip install uv
184
+ uv pip install --system --upgrade pip setuptools wheel
185
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
186
+ uv pip uninstall --system pytest
187
+ uv pip install --system --upgrade git+https://github.com/pytest-dev/pytest.git
182
188
python -m pip list
183
189
- name : Test with pytest
184
190
run : |
0 commit comments