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

Python: Honour --strip-extras flag of pip-compile #4439

Merged
merged 1 commit into from Nov 23, 2021

Commits on Nov 22, 2021

  1. Python: Honour --strip-extras flag of pip-compile

    The `--strip-extras` flag of `pip-compile` is useful to generate
    contstraints files (instead of the more traditional requirements files)
    from some `constraints.in` file.
    
    Constraints files can't have extras markers on the packages (this
    wouldn't make much sense indeed), hence they need to be stripped. Since
    `pip-tools` 6.2.0 this is supported by using the `--strip-extras` flag.
    
    This commit adds this as a 'recognized' flag: if it's found in an
    existing `foo.txt` file, it will be passed to `pip-compile` when some
    `foo.in` file is updated.
    
    See: dependabot#3974 (comment)
    See: dependabot#3974 (comment)
    See: jazzband/pip-tools#1300 (comment)
    NicolasT committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    2cf1980 View commit details
    Browse the repository at this point in the history