-
Notifications
You must be signed in to change notification settings - Fork 2.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
Documentation fix - poetry add with square brackets requires quotes #4844
Comments
This is not related to Poetry, but your shell. ZSH is treating the braces as a special expansion syntax. That being said, a PR adding double quotes would be welcome -- it's safe in all shells, even if the user is not using a shell that does implicit square brace expansion. |
OK sounds good. I'll make a suggestion and PR then. |
@neersighted OK here's a simple docs PR that adds in comment for these shells that have issues. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
A small documentation fix required to make it more intuitive how to install packages with options. An example would be
uvicorn
with dependencies such as `uvicorn[standard]'When using poetry to add this in the default way we get an error
The error such as ...
zsh: no matches found: uvicorn[standard]
. This is on a Mac and using zsh.Calling the
poetry add
but using quotes works just fine.It took me 10 mins to find this little hack as this doesn't seem to be a
pip
requirement. So that others don't have the same hassle, could we make this clear in the documentation please?The poetry documentation here https://python-poetry.org/docs/cli/#add has the following which I think is misleading
My suggestion is
[]
then make sure you use quotes in the name of the package.I'd be happy to do the PR on this but first let me know if you think this is a good idea. I see there are 148 PRs open so not sure if they are getting airtime.
Thanks
Matt
The text was updated successfully, but these errors were encountered: