Skip to content

Commit bad62e5

Browse files
committed
Force only-managed for all uv invokations
1 parent 2a93bc9 commit bad62e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: Prepare environment
105105
run: |
106-
echo "UV_PYTHON=${{ matrix.python }}" >>$GITHUB_ENV
106+
# Need this since pyproject.toml doesn't apply to $SRC_DIR.
107107
echo "UV_PYTHON_PREFERENCE=only-managed" >>$GITHUB_ENV
108108
109109
case "${{ runner.os }}" in
@@ -122,6 +122,7 @@ jobs:
122122
- name: Install uv
123123
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
124124
with:
125+
python-version: ${{ matrix.python }}
125126
version-file: "pyproject.toml"
126127
enable-cache: false
127128

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ skip-magic-trailing-comma = false
4545

4646
[tool.uv]
4747
required-version = "~=0.9"
48+
python-preference = "only-managed"
4849
package = false

0 commit comments

Comments
 (0)