Skip to content

Commit 8bbc96e

Browse files
committed
Add system test
1 parent e311024 commit 8bbc96e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,20 @@ jobs:
15821582
- name: "Validate global Python install"
15831583
run: python ./scripts/check_system_python.py --uv ./uv.exe
15841584

1585+
# NB: Run this last, we are modifying the registry
1586+
- name: "Test PEP 514 registration"
1587+
run: |
1588+
./uv.exe python install --preview 3.11
1589+
./uv.exe python install --preview 3.12
1590+
./uv.exe python install --preview 3.13
1591+
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1592+
py --list-paths
1593+
./uv.exe python uninstall --preview 3.11
1594+
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1595+
py --list-paths
1596+
./uv.exe python uninstall --preview --all
1597+
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1598+
15851599
system-test-windows-python-313:
15861600
timeout-minutes: 10
15871601
needs: build-binary-windows

crates/uv/src/commands/python/install.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ pub(crate) async fn install(
337337
&mut errors,
338338
)?;
339339

340-
#[cfg(windows)]
341-
{
342-
if preview.is_enabled() {
340+
if preview.is_enabled() {
341+
#[cfg(windows)]
342+
{
343343
uv_python::windows_registry::create_registry_entry(installation, &mut errors)?;
344344
}
345345
}

0 commit comments

Comments
 (0)