-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix --site-packages
flag is not recognized
#3352
Conversation
`site_packages` argument in `cli` function always set to false because `--site-packages` flag was defined in global state (https://github.com/pypa/pipenv/blob/97657b2797b8a8f045776470d74add6048a95b67/pipenv/cli/options.py#L62). Fixes pypa#3351
Thanks for this. It is because Lines 265 to 267 in 8707fe5
We should also check options with Lines 62 to 81 in 8707fe5
BTW, it will be nice if you also include tests for this. Thanks! |
I checked that |
To be honest we just need a thing that tests every CLI flag and makes sure it makes it through to the corresponding function |
Yes, it will be nice to test the behavior as well. :D |
Test added in f81e861. |
awesome, thank you so much for handling this! 🍰 |
Thanks! |
The issue
#3351
site_packages
argument incli
function always set to false because--site-packages
flag was defined in the global state (pipenv/pipenv/cli/options.py
Line 62 in 97657b2
The fix
Remove
site_packages
argument formcli
function and make usestate.site_packages
.The checklist
news/
directory to describe this fix with the extension.bugfix
,.feature
,.behavior
,.doc
..vendor
. or.trivial
(this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.