Can't add dev dependency with `poetry add --dev` if [tool.poetry.dev-dependencies] doesn't exist
See original GitHub issueHere’s the command I’m running:
poetry add --dev mkdocs
[KeyError]
add [-D|--dev] [--optional] [--allow-prereleases] [--dry-run] [--] <name> (<name>)…
Also tried poetry add mkdocs --dev
, with the same result.
Using poetry 0.8.5 on Windows.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Commands | Documentation | Poetry - Python dependency ...
The add command adds required packages to your pyproject.toml and installs them. If you do not specify a version constraint, poetry will choose...
Read more >A Poetic Apology. Or Why Should You Use Poetry to Manage…
In this document, we'll introduce yet another tool, Poetry, and make an argument about why you should probably add it to your own...
Read more >Poetry - The Blue Book
Poetry is a command line program that helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack...
Read more >Dependency Management With Python Poetry
Start a new Poetry project; Add Poetry to an existing project ... 10python = "^3.9" 11 12[tool.poetry.dev-dependencies] 13pytest = "^5.2" 14 ...
Read more >Python poetry - how to install optional dependencies?
You need to add a tool.poetry.extras group to your pyproject.toml if you ... when packaging the project but development dependencies do not ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed in commit 2e36b03. This was made possible by changing the TOML library used by Poetry.
It will land in the next bugfix release.
Release
0.11.3
is out!