Skip to content

Commit 4e8257a

Browse files
authored
Fix SCM Lower (#100)
1 parent 3448fb1 commit 4e8257a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cppython/builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ def extract_scm_version(self, path: Path) -> str:
8686
"""
8787

8888
group = "SCM"
89+
group_lower = group.lower()
8990

9091
scm_types: list[type[SCM]] = []
9192

92-
if not (entries := list(metadata.entry_points(group=f"cppython.{group}"))):
93+
if not (entries := list(metadata.entry_points(group=f"cppython.{group_lower}"))):
9394
raise PluginError("No SCM plugin found")
9495

9596
# Filter entries
@@ -98,7 +99,7 @@ def extract_scm_version(self, path: Path) -> str:
9899
if not issubclass(plugin_type, SCM):
99100
self.logger.warning(
100101
f"Found incompatible plugin. The '{resolve_name(plugin_type)}' plugin must be an instance of"
101-
f" '{group}'"
102+
f" '{group_lower}'"
102103
)
103104
else:
104105
scm_types.append(plugin_type)

0 commit comments

Comments
 (0)