Returns the maximum build tools version from a list of build tools versions. It uses the :meth:`build_tools_version_sort_key` function to canonicalize the version strings and then returns the maximum version.
(
build_tools_versions: list,
)
| 162 | |
| 163 | |
| 164 | def max_build_tool_version( |
| 165 | build_tools_versions: list, |
| 166 | ) -> str: |
| 167 | """ |
| 168 | Returns the maximum build tools version from a list of build tools |
| 169 | versions. It uses the :meth:`build_tools_version_sort_key` function to |
| 170 | canonicalize the version strings and then returns the maximum version. |
| 171 | """ |
| 172 | |
| 173 | return max(build_tools_versions, key=build_tools_version_sort_key) |
| 174 | |
| 175 | |
| 176 | def patch_wheel_setuptools_logging(): |