mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Use pip-system-certs when checking Anki versions
This commit is contained in:
parent
e511d63b7e
commit
ca0459d8ee
2 changed files with 5 additions and 0 deletions
|
@ -650,6 +650,7 @@ fn fetch_versions(state: &State) -> Result<Vec<String>> {
|
|||
let mut cmd = Command::new(&state.uv_path);
|
||||
cmd.current_dir(&state.uv_install_root)
|
||||
.args(["run", "--no-project", "--no-config", "--managed-python"])
|
||||
.args(["--with", "pip-system-certs"])
|
||||
.arg(&versions_script);
|
||||
|
||||
let output = match cmd.utf8_output() {
|
||||
|
|
|
@ -5,6 +5,10 @@ import json
|
|||
import sys
|
||||
import urllib.request
|
||||
|
||||
import pip_system_certs.wrapt_requests
|
||||
|
||||
pip_system_certs.wrapt_requests.inject_truststore()
|
||||
|
||||
|
||||
def main():
|
||||
"""Fetch and return all versions from PyPI, sorted by upload time."""
|
||||
|
|
Loading…
Reference in a new issue