-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Handling --upgrade-strategy parameter for editable installs #6648
Comments
Ah, you'd want to specify arguments/options differently. Right now, your invocation expands to:
However, editable expects an argument. A different invocation that will work:
Or even:
Cheers! |
I know how it works and I know how to "work around". This is why I've noted the The issue is error message — problem with such invocation is definitely not "upgrade-strategy should either be a path to a local project or a VCS url". Am I wrong here? |
@3lnc No; I misunderstood what you were saying the first time. Thanks for the clarification. :) Changing the language to This issue is a good starting point for anyone who wants to help out with pip's development -- it's simple and the process of fixing this should be a good introduction to pip's development workflow. |
Hi @pradyunsg , newbie here, I would like to take this up as my first issue! Is it okay to simply test like so in
But it seems a bit messy, should I try to change how the arguments are parsed? I am not sure how though. Any guidance would be helpful! |
Hi @enigma0160! No worries! We don't want to special case Feel free to ask me if you have any questions. :) |
So the correction I suggested before is fine? That is checking |
No.
Yes. We'd want to change the following error: pip/src/pip/_internal/req/constructors.py Lines 111 to 115 in 6ac468e
And change the argument passed to the error to be equivalent to: '{} is not a valid editable requirement it should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).'.format(editable_req) Note that, above, I'm using The way we're transitioning between the two formats is, when we make other improvements to that bit of code (like change the error message here), we also change the syntax. That way we avoid the churn caused by a full-codebase change to switch between the two styles, since this doesn't add any value. |
Oh yeah, sorry, didn`t think of that!
|
I was reading through the contributors manual, what kind of a NEWS file should I create for this? |
Yep.
I'd say name it ".bugfix". Thus, you'd want to add a
|
Okay and thanks a lot for all the help and for putting up with my silly questions! |
Looks like the tests are failing because of the change in the phrasing. |
@pradyunsg Is there anything else that I need to do in this, just wondering since its been a couple of days. |
Environment
Description
Handling for simultaneously providing
-Ue
&--upgrade-strategy
may be misleading.How to Reproduce
Installing/upgrading package in editable mod with:
pip install -Ue --upgrade-strategy eager .
Output
-e
is eager for path/url argument, in addition to that, seems that there's name clutch for handling such case, output is:ERROR: --upgrade-strategy should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+
The text was updated successfully, but these errors were encountered: