From b52c9e6f8b89d1f672c6b7852a513af4aeb52f58 Mon Sep 17 00:00:00 2001 From: Asher Norland Date: Sun, 12 Mar 2023 04:06:29 -0400 Subject: [PATCH] Fix SCM Lower --- cppython/builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cppython/builder.py b/cppython/builder.py index 532b1b4..a47949a 100644 --- a/cppython/builder.py +++ b/cppython/builder.py @@ -86,10 +86,11 @@ def extract_scm_version(self, path: Path) -> str: """ group = "SCM" + group_lower = group.lower() scm_types: list[type[SCM]] = [] - if not (entries := list(metadata.entry_points(group=f"cppython.{group}"))): + if not (entries := list(metadata.entry_points(group=f"cppython.{group_lower}"))): raise PluginError("No SCM plugin found") # Filter entries @@ -98,7 +99,7 @@ def extract_scm_version(self, path: Path) -> str: if not issubclass(plugin_type, SCM): self.logger.warning( f"Found incompatible plugin. The '{resolve_name(plugin_type)}' plugin must be an instance of" - f" '{group}'" + f" '{group_lower}'" ) else: scm_types.append(plugin_type)