diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 94147e3932bd6716c6137b62f79474b29fbce329..b6a37df90124d8b94ee4554a60982461bd4ff5ee 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -261,8 +261,8 @@ def normalize_package_name(requirement: str) -> str: if not match: return "" - # pipdeptree needs lowercase and dash instead of underscore as separator - return match.group(1).lower().replace("_", "-") + # pipdeptree needs lowercase and dash instead of underscore or period as separator + return match.group(1).lower().replace("_", "-").replace(".", "-") def comment_requirement(req: str) -> bool: