def safer_best_effort_version(value: str) -> str:
    """Like ``best_effort_version`` but can be used as filename component for wheel"""
    # See bdist_wheel.safer_verion
    # TODO: Replace with only safe_version in the future (no need for best effort)
    return filename_component(best_effort_version(value))
Like ``best_effort_version`` but can be used as filename component for wheel
product/gradle-plugin/src/main/python/setuptools/_normalization.py