-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Deprecate --index/--no-index in pip-compile #1130
Conversation
4bf5906
to
620a40a
Compare
Codecov Report
@@ Coverage Diff @@
## master #1130 +/- ##
=======================================
Coverage 99.49% 99.50%
=======================================
Files 36 36
Lines 2773 2802 +29
Branches 328 331 +3
=======================================
+ Hits 2759 2788 +29
Misses 8 8
Partials 6 6
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
324edf6
to
e6eac99
Compare
I've just thought about the case when |
1c28092
to
f9018c3
Compare
As a follow up of the twitter thread I wonder what do you think about the deprecation technique in this PR? |
Looks about right! In our project, we decided not to use |
I wonder what would you think before we merge this?
Especially for this case. |
Nice work! Three notes/questions:
I say either throw an error, or prefer the right-most flag (not necessarily the not-deprecated one).
Why bother with a
but aren't we trying to warn about things that are currently deprecated, to be unsupported/removed in the future? The Python docs describe their own
Then the description of their
We are really targeting our users here, although the line between "users" and "Python developers" is not so obvious for a project like this. I think what we're going for is a much better fit with Python's
Note that this is not ignored by default as the other two are. Seeing this at the warnings docs made it clear that the conceptual classifications have changed pretty recently, making
|
Thanks for the analysis as always and sorry for the delayed answer. Regarding the docs:
With
|
In favor of `--emit-index-url/--no-emit-index-url`
f5a0185
to
3211b94
Compare
Refactor to
Mutual exclusiv addressed in 3211b94. But now there is a problem with |
58bee31
to
acae7bf
Compare
I came up with the solution acae7bf. What do you think? |
@AndydeCleyre kindly ping |
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.
Looks good. As usual, I'm no Click expert, but if this fills the gap needed, 👍 .
Can you add a note to the has_args
docstring about its behavior regarding presence of the negative counterparts to args (--no-...
)?
Also still prefer "mutually exclusive"
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.
Excellent, thanks! All systems go, as far as I'm concerned.
Thanks! I believe |
To avoid ambiguity of
pip-sync --no-index
.Resolves #373.
Changelog-friendly one-liner: Deprecate
--index/--no-index
in favor of--emit-index-url/--no-emit-index-url
options inpip-compile
.Contributor checklist