forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cachecontrol[filecache] |
22 changes: 22 additions & 0 deletions
22
python/spec/fixtures/requirements/pip_compile_strip_extras.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.10 | ||
# To update, run: | ||
# | ||
# pip-compile --strip-extras --output-file=constraints.txt constraints.in | ||
# | ||
cachecontrol==0.12.10 | ||
# via -r constraints.in | ||
certifi==2021.10.8 | ||
# via requests | ||
charset-normalizer==2.0.7 | ||
# via requests | ||
idna==3.3 | ||
# via requests | ||
lockfile==0.12.2 | ||
# via cachecontrol | ||
msgpack==1.0.2 | ||
# via cachecontrol | ||
requests==2.26.0 | ||
# via cachecontrol | ||
urllib3==1.26.7 | ||
# via requests |