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

feat(pip): support env var interpolation #6648

Merged
merged 3 commits into from Jul 7, 2020
Merged

feat(pip): support env var interpolation #6648

merged 3 commits into from Jul 7, 2020

Commits on Jul 2, 2020

  1. feat(pip): support env var interpolation

    As of Pip v10+, environment variables are supported in requirements.txt
    files and will be automatically interpolated. This changeset allows
    Renovate to parse registry URLs conforming to that syntax properly and
    follow the same approach, eg. by interpolating the environment variables
    in the same way as would pip.
    
    Note that interpolating env vars is hidden behind the trustLevel=high
    flag, as described in the Renovate docs: https://github.com/renovatebot/renovate/blob/d70b8c1f2fa999be9684a8ca5da3dda8cd2392ab/docs/usage/self-hosted-configuration.md#trustlevel
    
    Additionally, we unconditionally strip `"` characters from the same
    registryUrls as those are optional in the pip spec (with no behavioural
    impact) but cause lookup errors for Renovate.
    TheKevJames committed Jul 2, 2020
    Copy the full SHA
    ce87974 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2020

  1. Copy the full SHA
    423817a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. Copy the full SHA
    eed9b08 View commit details
    Browse the repository at this point in the history