-
-
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
Clarify docs and help messages on cli commands #2175
Comments
How Pipenv manage things can be generally thought in a linear manner:
There are three kinds of commands: essential (lock and sync, noted in the above graph), shorthands (combination of essential commands), and utilities (not related to essential commands, but make things easier to work with a project). Shorthands:
Utilities:
Pull requests on the help messages are welcomed. |
@uranusjr Regarding |
yes of course, pipenv manages virtualenvs. Everything involved is about virtualenvs. It finds the module in your virtualenv and opens it in an editor. That's all there is to it. |
Ah the way I phrased the question was ambiguous. I didn't mean to ask whether This result has implications for certain workflows with pipenv. Some users might prefer if This isn't the workflow I use normally, but I believe it's not uncommon. I hope that clears up my question and why I was asking. Cheers! |
@uranusjr Thanks for the detailed overview. That's quite helpful. |
@apnewberry No problem at all. I’m quite bad at literature and writing help messages however, so it would be awesome if you could help incorporating them into the actual documentation and help output. I’d say you’re not the only one having this question. |
Is that right? |
Yes, they are correct in general. Two minor technical details:
Really those are technical details, but better to do them absolutely right than risk giving people wrong impressions. |
What do you mean by "sync won't care": in I tried testing it but couldn't really understand what was supposed to happen in the pip usage of this option either (see pypa/pip#2897). |
Yes. Well, not passed, it’s an environment variable that pip picks up automatically. Pipenv does not do anything with that flag. If I understand it correctly, |
Excited pipenv user here. I don't understand what several of the commands do. Here is the output of
pipenv
:lock
"Generates Pipfile.lock." Is it doing that based on the current environment, or based on what's specified in the Pipfile, or some other thing? Sometimes it seems to be accessing the internet, which is altogether unexpected.Does
open
open the editor with the virtualenv bin directory prepended to the PATH? Or something else?install
"Installs provided packages". What are "provided packages"? Do they include the ones in my Pipfile? If no arguments are given, it installs "all" packages; which "all" are you talking about: in the Pipfile, Pipfile.lock, current active environment?Which of these commands modify my environment? Which modify my Pipfile? Which modify my Pipfile.lock?
Could the cli help text and documentation clear this up, please?
Thank you for all your work on pipenv.
The text was updated successfully, but these errors were encountered: