diff --git a/plugins/hatch/hatch_una/hatch_meta.py b/plugins/hatch/hatch_una/hatch_meta.py index 884104c..0d6381e 100644 --- a/plugins/hatch/hatch_una/hatch_meta.py +++ b/plugins/hatch/hatch_una/hatch_meta.py @@ -33,7 +33,7 @@ def update(self, metadata: dict[str, Any]) -> None: # load all third-party dependencies from this internal dependency into the # project.dependencies table dep_deps, _ = util.get_dependencies(dep_path) - dep_deps = [d.strip().replace(" ", "") for d in dep_deps] + dep_deps = [d.strip() for d in dep_deps] add_deps.extend(dep_deps) metadata["dependencies"] = list(set(ext_deps + add_deps)) diff --git a/plugins/hatch/hatch_una/util.py b/plugins/hatch/hatch_una/util.py index 5843d8c..d45ef7e 100644 --- a/plugins/hatch/hatch_una/util.py +++ b/plugins/hatch/hatch_una/util.py @@ -34,7 +34,7 @@ def get_dependencies(path: Path) -> tuple[list[str], list[str]]: if sources[d]["workspace"]: int_deps.append(d) continue - ext_deps.append(d.replace(" ", "")) + ext_deps.append(d) return (ext_deps, int_deps)