-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Add --strip-extras
option to pip-compile
for producing constraint compatible output
#1404
Conversation
b5b5c18
to
e0b8a71
Compare
This comment has been minimized.
This comment has been minimized.
if install_requires is None: | ||
install_requires = [] | ||
|
||
if extras_require is None: | ||
extras_require = dict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it's best to use a literal
extras_require = dict() | |
extras_require = {} |
--strip-extras
option to pip-compile
for producing constraint compatible output
I have noticed that when i use pip-compile to create a requirements.txt from a requirements.in for some package it adds sometimes an extra part on the line like
I try to use the pip-compile with the --strip-extras, but i still have this extra part.
my requirements.in looks like
and the package myextra has a setup.py which specifies the extra like the following:
the command i used to create the requirements.txt is:
i am running pip-compile v6.3.0, and pip version v12.2.2. many thanks for your help!!! |
Changelog-friendly one-liner: Add an option for producing constraint-compatible output
Contributor checklist
Fixes: #1300