Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Gracefully handle invalid python_requires when finding minversion (
#37317) python_requires must follow the specification defined in: https://packaging.python.org/en/latest/specifications/version-specifiers/#id5 In the event that a package version specifies a `python_requires` that does not match that spec, execution terminates with an InvalidSpecifier exception. This commit makes it so that we catch and log the exception, ignoring the version that has the invalid python version specifier. An alternative solution could have been to attempt to correct the version specifier (e.g. '>= 3.5.*' is invalid, but it'd be trivial to correct it to '>=3.5'). But that would potentially invite a complexity that costs more than it's worth.
- Loading branch information