You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NormalizePkgName normalizes the package name based on pep-0426
6
-
funcNormalizePkgName(namestring) string {
7
-
// The package names don't use `_`, `.` or upper case, but dependency names can contain them.
8
-
// We need to normalize those names.
9
-
// cf. https://peps.python.org/pep-0426/#name
10
-
name=strings.ToLower(name) // e.g. https://github.com/python-poetry/poetry/blob/c8945eb110aeda611cc6721565d7ad0c657d453a/poetry.lock#L819
11
-
name=strings.ReplaceAll(name, "_", "-") // e.g. https://github.com/python-poetry/poetry/blob/c8945eb110aeda611cc6721565d7ad0c657d453a/poetry.lock#L50
12
-
name=strings.ReplaceAll(name, ".", "-") // e.g. https://github.com/python-poetry/poetry/blob/c8945eb110aeda611cc6721565d7ad0c657d453a/poetry.lock#L816
0 commit comments