pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

New branch, removes empty flag in SVN install command. Fixes SVN inst…

Open rsilver23 opened this issue 10 months ago • 9 comments

…alls

Thank you for contributing to Pipenv!

The issue

This branch fixes pipenv install of SVN repos. Pipenv was adding and extra empty argument when the verbosity flag was <= 0. This empty string was causing an error with SVN checkout commands.

The fix

This pull request removes the empty flag from the command arguments when the verbosity is not set.

rsilver23 avatar Oct 24 '23 20:10 rsilver23

@rjsilver If you can check the ruff lint and add a news fragment, I may be able to include this in tonight's release.

matteius avatar Oct 24 '23 21:10 matteius

Actually I am pushing a fix to the ruff lint to main -- has nothing to do with this PR, but a news fragment would be good.

matteius avatar Oct 24 '23 21:10 matteius

Hey Matt,

Thanks for looking at this so quickly, is there documentation for how to do the news fragment? I'm unfamiliar with this method.

Thanks, Ryne


From: Matt Davis @.> Sent: Tuesday, October 24, 2023 3:25 PM To: pypa/pipenv @.> Cc: Ryne Joseph Silver @.>; Author @.> Subject: Re: [pypa/pipenv] New branch, removes empty flag in SVN install command. Fixes SVN inst… (PR #5993)

@rjsilverhttps://github.com/rjsilver If you can check the ruff lint and add a news fragment, I may be able to include this in tonight's release.

— Reply to this email directly, view it on GitHubhttps://github.com/pypa/pipenv/pull/5993#issuecomment-1778064905, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHZTOVZ5QQMIXFYLGIDP2WTYBAW5DAVCNFSM6AAAAAA6OJHK4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYGA3DIOJQGU. You are receiving this because you authored the thread.Message ID: @.***>

rsilver23 avatar Oct 24 '23 21:10 rsilver23

@rsilver23 Basically create a file in the news directory 5993.bugfix.rst and explain the correction. Helpful to first run pre-commit install so that the linter will check your news file when you check it in.

matteius avatar Oct 24 '23 21:10 matteius

@rjsilver oh hey -- there is a problem I just noticed, which is you are modifying the pip internals. We don't want to do that, if there was truly a reason to do so, we would provide a patch, but I think in this case you mentioned it is something to do with click?

matteius avatar Oct 24 '23 22:10 matteius

@rjsilver I wonder if https://github.com/pypa/pip/issues/11050 is related?

matteius avatar Oct 24 '23 22:10 matteius

@matteius https://github.com/pypa/pip/issues/11050 definitely looks related

rsilver23 avatar Oct 24 '23 22:10 rsilver23

@matteius looks like this code already exists in a patch. Do you have a better recommendation where to put this?

rsilver23 avatar Oct 24 '23 22:10 rsilver23

@rsilver23 So we vendor in pip to pipenv and we have some patches that we apply after the fact. This feels like a case where pip itself would accept this patch, and the original PR that fixes it was tagged with needs a rebase. Perhaps you could open a new PR against pip -- the problem is, if I merge this as-is, the next time we vendor in a new version of pip it would get overwritten.

matteius avatar Oct 24 '23 22:10 matteius

Hi! FYI the original PR opened into pip repo and mentioned here has been merged.

devsagul avatar Apr 19 '24 16:04 devsagul

You mean this one? https://github.com/pypa/pip/pull/11051? As soon as there is new pip release, this will lend in pipenv too!

oz123 avatar Apr 19 '24 18:04 oz123

That is great to hear -- we already regular vendor in pip, so I will close this PR as the plan is to go with the update in pip.

matteius avatar Apr 23 '24 15:04 matteius