From e04b6327b0dc56328ae27cf1dfde285c2c60f66f Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Tue, 12 Nov 2024 16:19:26 -0500 Subject: [PATCH] Revert "parse version specifiers of the form ^x in min version checks" This reverts commit 43b82f53cc8c145e16ef7734d7a2b57b324543c8. --- .github/scripts/get_min_versions.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/scripts/get_min_versions.py b/.github/scripts/get_min_versions.py index a8cf272ab9..8df28865ae 100644 --- a/.github/scripts/get_min_versions.py +++ b/.github/scripts/get_min_versions.py @@ -78,11 +78,6 @@ def get_minimum_version(package_name: str, spec_string: str) -> Optional[str]: spec_string = re.sub( rf"\^{x}\.(\d+)\.(\d+)", rf">={x}.\1.\2,<{x+1}", spec_string ) - # Rewrite occurrences of ^x to >=x.0.0,={x}.0.0,<{x+1}.0.0", spec_string - ) spec_set = SpecifierSet(spec_string) all_versions = get_pypi_versions(package_name)