Source

pypi-metadata / utils / package.py

1
2
3
4
5
from mini_pkg_resources import safe_name

def normalize_package_name(n):
    "Return lower-cased version of safe_name of n."
    return safe_name(n).lower()