Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve support for PEP-440 direct references #22

Merged
merged 1 commit into from
Apr 21, 2020

Commits on Apr 16, 2020

  1. Improve support for PEP-440 direct references

    With this change we allow for PEP-508 string for file dependencies
    to use PEP-440 direct reference using the file URI scheme (RFC-8089).
    
    Note that this implementation will not allow non RFC-8089 file path
    references. In order to allow for sdist to be portable in sane use
    cases, we ensure that relative path dependencies do not use the
    file URI scheme, but preserve path if relative or directories.
    
    In addition to file resource, directory dependencies now support
    the same scheme.
    
    References:
    - https://www.python.org/dev/peps/pep-0508/#backwards-compatibility
    - https://www.python.org/dev/peps/pep-0440/#direct-references
    - https://tools.ietf.org/html/rfc8089
    - https://discuss.python.org/t/what-is-the-correct-interpretation-of-path-based-pep-508-uri-reference/2815/11
    abn committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    953d3c7 View commit details
    Browse the repository at this point in the history