Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/1630.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the archive name of build of Python for Windows
2 changes: 1 addition & 1 deletion src/pipx/standalone_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"musl": ["x86_64_v3-unknown-linux-musl-install_only.tar.gz"],
},
},
"Windows": {"AMD64": ["x86_64-pc-windows-msvc-shared-install_only.tar.gz"]},
"Windows": {"AMD64": ["x86_64-pc-windows-msvc-install_only.tar.gz"]},
}

GITHUB_API_URL = "https://api.github.com/repos/indygreg/python-build-standalone/releases/latest"
Expand Down
1 change: 0 additions & 1 deletion testdata/standalone_python_index_20240107.json

This file was deleted.

1 change: 0 additions & 1 deletion testdata/standalone_python_index_20240224.json

This file was deleted.

1 change: 1 addition & 0 deletions testdata/standalone_python_index_20250317.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions testdata/standalone_python_index_20250409.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def mocked_github_api(monkeypatch, root):
Fixture to replace the github index with a local copy,
to prevent unit tests from exceeding github's API request limit.
"""
with open(root / "testdata" / "standalone_python_index_20240107.json") as f:
with open(root / "testdata" / "standalone_python_index_20250317.json") as f:
index = json.load(f)
monkeypatch.setattr(standalone_python, "get_or_update_index", lambda _: index)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_standalone_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_prune_unused_standalone_interpreters(pipx_temp_env, monkeypatch, mocked
def test_upgrade_standalone_interpreter(pipx_temp_env, root, monkeypatch, capsys):
monkeypatch.setattr(shutil, "which", mock_which)

with open(root / "testdata" / "standalone_python_index_20240107.json") as f:
with open(root / "testdata" / "standalone_python_index_20250317.json") as f:
new_index = json.load(f)
monkeypatch.setattr(standalone_python, "get_or_update_index", lambda _: new_index)

Expand All @@ -126,7 +126,7 @@ def test_upgrade_standalone_interpreter(pipx_temp_env, root, monkeypatch, capsys
]
)

with open(root / "testdata" / "standalone_python_index_20240224.json") as f:
with open(root / "testdata" / "standalone_python_index_20250409.json") as f:
new_index = json.load(f)
monkeypatch.setattr(standalone_python, "get_or_update_index", lambda _: new_index)

Expand Down