From c2fb0e4e96955172f93c45498d07cfcaa878537e Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 29 Apr 2023 11:58:41 +0200 Subject: [PATCH] chore: update to virtualenv<20.22.0 virtualenv>=20.22.0 can't create python 3.6 environments. --- bin/update_virtualenv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/update_virtualenv.py b/bin/update_virtualenv.py index a0072406..c4c70f29 100755 --- a/bin/update_virtualenv.py +++ b/bin/update_virtualenv.py @@ -53,6 +53,10 @@ def git_ls_remote_versions(url) -> list[VersionTuple]: if version.is_prerelease: log.info("Ignoring pre-release %r", str(version)) continue + # Do not upgrade past 20.22.0 to keep python 3.6 compat + if version >= Version("20.22.0"): + log.info("Ignoring %r which is not compatible with python 3.6", str(version)) + continue versions.append(VersionTuple(version, version_string)) except InvalidVersion: log.warning("Ignoring ref %r", ref)