From eb6bf826eb778081ad46b93489eb40f6e03b8104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Cardao?= Date: Fri, 7 Jun 2024 11:39:37 +0200 Subject: [PATCH] Fix e3-pypi-closure name comparison Before this patch, if you had a requirement like 'Django==2.2', the version constraint would be ignored because the code was trying to compare 'Django' == 'django' Now we don't have to worry about character case in this comparison, which corrects the problem. --- src/e3/python/pypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e3/python/pypi.py b/src/e3/python/pypi.py index 13cfe17c..bdcaba61 100644 --- a/src/e3/python/pypi.py +++ b/src/e3/python/pypi.py @@ -341,7 +341,7 @@ def add_constraint(self, requirement: Requirement) -> None: """ logging.debug(f"Apply constraint: {str(requirement)}") # Check if requirement applies to that package - if canonicalize_name(requirement.name) != self.name: + if canonicalize_name(requirement.name) != canonicalize_name(self.name): return # Check platforms