Implement Python as a dependency
If a dist contains Requires-Python metadata, it is converted into a Requirement for the resolver based on whether the Requires-Python is compatible or not. If it is compatible, an ExplicitRequirement is returned to hold the Python information (either sys.version_info, or the user-supplied --python-version). If it is incompatible, a special NoMatchRequirement is returned, which never matches to anything, generating a ResolutionImpossible to report the Python version incompatibility. The --ignore-requires-python flag is implemented as to not return a Requirement for Requires-Python at all.
Showing
想要评论请 注册 或 登录