-
Notifications
You must be signed in to change notification settings - Fork 760
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 support for pip-compile's --unsafe-package
flag
#1889
Conversation
I'm torn on the name
|
Yeah :-/ It's unfortunate that pip-compile puts those words in the file. I do think it'd be nice to have an |
948ffbe
to
5a8b22f
Compare
writeln!( | ||
writer, | ||
"{}", | ||
"# The following packages were included while generating the resolution:".green() |
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.
Thank you for implementing the feature!
nit: I was confused by "include" here, maybe The following packages were omitted from the result:
(although maybe omit vs no-emit confuses folks too, so maybe just "excluded")
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.
Good idea -- changed in #1935.
Good feedback from: #1889 (comment)
Summary
In uv, we're going to use
--no-emit-package
for this, to convey that the package will be included in the resolution but not in the output file. It also mirrors flags like--emit-index-url
.We're also including an
--unsafe-package
alias.Closes #1415.