Skip to content

Commit e8cfe05

Browse files
Update the archive name of build of Python for Windows (#1632)
* Update the archive name of build of Python for Windows * Create 1630.bugfix.md * Update index * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update index * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update test_standalone_interpreter.py * Update test_standalone_interpreter.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2146ab6 commit e8cfe05

8 files changed

+7
-6
lines changed

changelog.d/1630.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the archive name of build of Python for Windows

src/pipx/standalone_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"musl": ["x86_64_v3-unknown-linux-musl-install_only.tar.gz"],
4141
},
4242
},
43-
"Windows": {"AMD64": ["x86_64-pc-windows-msvc-shared-install_only.tar.gz"]},
43+
"Windows": {"AMD64": ["x86_64-pc-windows-msvc-install_only.tar.gz"]},
4444
}
4545

4646
GITHUB_API_URL = "https://api.github.com/repos/indygreg/python-build-standalone/releases/latest"

testdata/standalone_python_index_20240107.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

testdata/standalone_python_index_20240224.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

testdata/standalone_python_index_20250317.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

testdata/standalone_python_index_20250409.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def mocked_github_api(monkeypatch, root):
3131
Fixture to replace the github index with a local copy,
3232
to prevent unit tests from exceeding github's API request limit.
3333
"""
34-
with open(root / "testdata" / "standalone_python_index_20240107.json") as f:
34+
with open(root / "testdata" / "standalone_python_index_20250317.json") as f:
3535
index = json.load(f)
3636
monkeypatch.setattr(standalone_python, "get_or_update_index", lambda _: index)
3737

tests/test_standalone_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_prune_unused_standalone_interpreters(pipx_temp_env, monkeypatch, mocked
112112
def test_upgrade_standalone_interpreter(pipx_temp_env, root, monkeypatch, capsys):
113113
monkeypatch.setattr(shutil, "which", mock_which)
114114

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

@@ -126,7 +126,7 @@ def test_upgrade_standalone_interpreter(pipx_temp_env, root, monkeypatch, capsys
126126
]
127127
)
128128

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

0 commit comments

Comments
 (0)