python_deploy: update pip prior to refresh
Packages updated via PyPI require a recent version of Pip to perform the "dry run" installation used to determine upstream version info. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -394,6 +394,7 @@ class AppDeploy(BaseDeploy):
|
||||
self.pip_version = pip_utils.MIN_PIP_VERSION
|
||||
else:
|
||||
self.notify_status("Pip version up to date")
|
||||
self.pip_version = pip_ver.pip_version
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception as e:
|
||||
|
||||
@@ -258,6 +258,7 @@ class PythonDeploy(AppDeploy):
|
||||
assert self.pip_cmd is not None
|
||||
pip_args = f"install -U --quiet --dry-run --no-deps --report - {norm_name}"
|
||||
pip_exec = pip_utils.AsyncPipExecutor(self.pip_cmd, self.server)
|
||||
await self._update_pip(pip_exec)
|
||||
resp = await pip_exec.call_pip_with_response(pip_args)
|
||||
data: Dict[str, Any] = json_wrapper.loads(resp)
|
||||
install_data: List[Dict[str, Any]] = data.get("install", [])
|
||||
|
||||
Reference in new issue
Block a user