Skip to content

Add python-arch support - #1079

Merged
eifinger merged 2 commits into
mainfrom
zb/setup-uv-python-arch-20260930
Oct 7, 2026
Merged

eifinger merged 2 commits into
mainfrom
zb/setup-uv-python-arch-20260930

Conversation

@zanieb

@zanieb zanieb commented Sep 30, 2026

Copy link
Copy Markdown
Member

Windows ARM64 jobs may need x64 Python independently of their Python version pin. Add python-arch to export UV_PYTHON_ARCH for subsequent steps and include the selected architecture in the uv and managed-Python cache keys. The input takes precedence over an inherited environment value, and unsupported uv versions fail before environment creation.

Requires a uv release with UV_PYTHON_ARCH support.

@eifinger eifinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good aside from a implicit style violation

Comment thread src/utils/inputs.ts Outdated
Comment on lines +152 to +154
export function resolvePythonArch(pythonArch: string): string {
return pythonArch || process.env.UV_PYTHON_ARCH || "";
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the established convention that other files access inputs only via the loadInputs() function and that env vars get resolved through it. Is there a reason we need to export this ENV var resolution function?

@eifinger eifinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@eifinger eifinger added the enhancement New feature or request label Oct 7, 2026
@eifinger
eifinger marked this pull request as ready for review October 7, 2026 07:03
@eifinger
eifinger merged commit b06acff into main Oct 7, 2026
92 checks passed
@eifinger
eifinger deleted the zb/setup-uv-python-arch-20260930 branch October 7, 2026 07:03
Doridian pushed a commit to FoxDenHome/core that referenced this pull request Oct 9, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [https://github.com/astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v10.2.0` → `v10.3.0` |

---

### Release Notes

<details>
<summary>astral-sh/setup-uv (https://github.com/astral-sh/setup-uv)</summary>

### [`v10.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0): 🌈 Add Python architecture selection

[Compare Source](astral-sh/setup-uv@v10.2.0...v10.3.0)

#### Changes

This release adds the `python-arch` input to select a Python architecture independently of the Python version. With `uv` 0.13.0 or later, set `python-arch: x86_64` to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for `uv` releases through 0.13.0.

- Use macOS 15 runners for tests [@&#8203;charliermarsh](https://github.com/charliermarsh) ([#&#8203;1081](astral-sh/setup-uv#1081))

#### 🚀 Enhancements

- Add `python-arch` support [@&#8203;zanieb](https://github.com/zanieb) ([#&#8203;1079](astral-sh/setup-uv#1079))

#### 🧰 Maintenance

- chore: update known checksums for 0.13.0 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1089](astral-sh/setup-uv#1089))
- chore: update known checksums for 0.12.24 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1084](astral-sh/setup-uv#1084))
- chore: update known checksums for 0.12.23 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1082](astral-sh/setup-uv#1082))
- chore: update known checksums for 0.12.22 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1080](astral-sh/setup-uv#1080))
- chore: update known checksums for 0.12.21 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1078](astral-sh/setup-uv#1078))
- chore: update known checksums for 0.12.20 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1076](astral-sh/setup-uv#1076))
- chore: update known checksums for 0.12.19 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1068](astral-sh/setup-uv#1068))
- chore: update known checksums for 0.12.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1065](astral-sh/setup-uv#1065))

#### ⬆️ Dependency updates

- chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;1077](astral-sh/setup-uv#1077))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNDguNiIsInVwZGF0ZWRJblZlciI6IjQ0LjE0OC42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.foxden.network/FoxDen/core/pulls/189
luketainton pushed a commit to luketainton/luke_rsu that referenced this pull request Oct 10, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v10.2.0` → `v10.3.0` |

---

### Release Notes

<details>
<summary>astral-sh/setup-uv</summary>

### [`v10.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0): 🌈 Add Python architecture selection

[Compare Source](astral-sh/setup-uv@v10.2.0...v10.3.0)

##### Changes

This release adds the `python-arch` input to select a Python architecture independently of the Python version. With `uv` 0.13.0 or later, set `python-arch: x86_64` to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for `uv` releases through 0.13.0.

- Use macOS 15 runners for tests [@&#8203;charliermarsh](https://github.com/charliermarsh) ([#&#8203;1081](astral-sh/setup-uv#1081))

##### 🚀 Enhancements

- Add `python-arch` support [@&#8203;zanieb](https://github.com/zanieb) ([#&#8203;1079](astral-sh/setup-uv#1079))

##### 🧰 Maintenance

- chore: update known checksums for 0.13.0 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1089](astral-sh/setup-uv#1089))
- chore: update known checksums for 0.12.24 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1084](astral-sh/setup-uv#1084))
- chore: update known checksums for 0.12.23 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1082](astral-sh/setup-uv#1082))
- chore: update known checksums for 0.12.22 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1080](astral-sh/setup-uv#1080))
- chore: update known checksums for 0.12.21 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1078](astral-sh/setup-uv#1078))
- chore: update known checksums for 0.12.20 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1076](astral-sh/setup-uv#1076))
- chore: update known checksums for 0.12.19 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1068](astral-sh/setup-uv#1068))
- chore: update known checksums for 0.12.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1065](astral-sh/setup-uv#1065))

##### ⬆️ Dependency updates

- chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;1077](astral-sh/setup-uv#1077))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNDkuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE0OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/repos/rsu/pulls/57
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
luketainton pushed a commit to luketainton/repos_pypilot that referenced this pull request Oct 10, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v10.2.0` → `v10.3.0` |

---

### Release Notes

<details>
<summary>astral-sh/setup-uv</summary>

### [`v10.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0): 🌈 Add Python architecture selection

[Compare Source](astral-sh/setup-uv@v10.2.0...v10.3.0)

##### Changes

This release adds the `python-arch` input to select a Python architecture independently of the Python version. With `uv` 0.13.0 or later, set `python-arch: x86_64` to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for `uv` releases through 0.13.0.

- Use macOS 15 runners for tests [@&#8203;charliermarsh](https://github.com/charliermarsh) ([#&#8203;1081](astral-sh/setup-uv#1081))

##### 🚀 Enhancements

- Add `python-arch` support [@&#8203;zanieb](https://github.com/zanieb) ([#&#8203;1079](astral-sh/setup-uv#1079))

##### 🧰 Maintenance

- chore: update known checksums for 0.13.0 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1089](astral-sh/setup-uv#1089))
- chore: update known checksums for 0.12.24 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1084](astral-sh/setup-uv#1084))
- chore: update known checksums for 0.12.23 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1082](astral-sh/setup-uv#1082))
- chore: update known checksums for 0.12.22 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1080](astral-sh/setup-uv#1080))
- chore: update known checksums for 0.12.21 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1078](astral-sh/setup-uv#1078))
- chore: update known checksums for 0.12.20 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1076](astral-sh/setup-uv#1076))
- chore: update known checksums for 0.12.19 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1068](astral-sh/setup-uv#1068))
- chore: update known checksums for 0.12.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1065](astral-sh/setup-uv#1065))

##### ⬆️ Dependency updates

- chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;1077](astral-sh/setup-uv#1077))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNDkuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE0OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/repos/pypilot/pulls/488
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
luketainton pushed a commit to luketainton/repos_labmcp that referenced this pull request Oct 10, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v10.2.0` → `v10.3.0` |

---

### Release Notes

<details>
<summary>astral-sh/setup-uv</summary>

### [`v10.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0): 🌈 Add Python architecture selection

[Compare Source](astral-sh/setup-uv@v10.2.0...v10.3.0)

##### Changes

This release adds the `python-arch` input to select a Python architecture independently of the Python version. With `uv` 0.13.0 or later, set `python-arch: x86_64` to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for `uv` releases through 0.13.0.

- Use macOS 15 runners for tests [@&#8203;charliermarsh](https://github.com/charliermarsh) ([#&#8203;1081](astral-sh/setup-uv#1081))

##### 🚀 Enhancements

- Add `python-arch` support [@&#8203;zanieb](https://github.com/zanieb) ([#&#8203;1079](astral-sh/setup-uv#1079))

##### 🧰 Maintenance

- chore: update known checksums for 0.13.0 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1089](astral-sh/setup-uv#1089))
- chore: update known checksums for 0.12.24 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1084](astral-sh/setup-uv#1084))
- chore: update known checksums for 0.12.23 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1082](astral-sh/setup-uv#1082))
- chore: update known checksums for 0.12.22 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1080](astral-sh/setup-uv#1080))
- chore: update known checksums for 0.12.21 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1078](astral-sh/setup-uv#1078))
- chore: update known checksums for 0.12.20 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1076](astral-sh/setup-uv#1076))
- chore: update known checksums for 0.12.19 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1068](astral-sh/setup-uv#1068))
- chore: update known checksums for 0.12.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1065](astral-sh/setup-uv#1065))

##### ⬆️ Dependency updates

- chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;1077](astral-sh/setup-uv#1077))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNDkuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE0OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/repos/labmcp/pulls/75
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
luketainton pushed a commit to luketainton/actions_gha-workflows that referenced this pull request Oct 10, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v10.2.0` → `v10.3.0` |

---

### Release Notes

<details>
<summary>astral-sh/setup-uv</summary>

### [`v10.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0): 🌈 Add Python architecture selection

[Compare Source](astral-sh/setup-uv@v10.2.0...v10.3.0)

##### Changes

This release adds the `python-arch` input to select a Python architecture independently of the Python version. With `uv` 0.13.0 or later, set `python-arch: x86_64` to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for `uv` releases through 0.13.0.

- Use macOS 15 runners for tests [@&#8203;charliermarsh](https://github.com/charliermarsh) ([#&#8203;1081](astral-sh/setup-uv#1081))

##### 🚀 Enhancements

- Add `python-arch` support [@&#8203;zanieb](https://github.com/zanieb) ([#&#8203;1079](astral-sh/setup-uv#1079))

##### 🧰 Maintenance

- chore: update known checksums for 0.13.0 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1089](astral-sh/setup-uv#1089))
- chore: update known checksums for 0.12.24 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1084](astral-sh/setup-uv#1084))
- chore: update known checksums for 0.12.23 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1082](astral-sh/setup-uv#1082))
- chore: update known checksums for 0.12.22 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1080](astral-sh/setup-uv#1080))
- chore: update known checksums for 0.12.21 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1078](astral-sh/setup-uv#1078))
- chore: update known checksums for 0.12.20 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1076](astral-sh/setup-uv#1076))
- chore: update known checksums for 0.12.19 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1068](astral-sh/setup-uv#1068))
- chore: update known checksums for 0.12.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;1065](astral-sh/setup-uv#1065))

##### ⬆️ Dependency updates

- chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;1077](astral-sh/setup-uv#1077))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNDkuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE0OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tainton.uk/actions/gha-workflows/pulls/130
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants