From 4c07eba8b7315e9e783ddd10879dfc7cc89e0970 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sun, 15 Sep 2024 08:24:38 +0800 Subject: [PATCH] module name shoule be normalized as package name --- src/hatch_cython/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hatch_cython/plugin.py b/src/hatch_cython/plugin.py index 43c3737..367188a 100644 --- a/src/hatch_cython/plugin.py +++ b/src/hatch_cython/plugin.py @@ -59,7 +59,7 @@ def normalize_glob(self, pattern: str): @property @memo def dir_name(self): - return self.options.src if self.options.src is not None else self.metadata.name + return self.options.src if self.options.src is not None else re.sub(r"[-_.]+", "-", self.metadata.name).lower() @property @memo