Skip to content
Discussion options

You must be logged in to vote

I don't personally use Poetry but if you're writing your pyproject.toml file by hand, I think you would add this to your development dependencies like this:

[tool.poetry.dependencies]
python = "^3.10"
textual = ">=0.11.0"

[tool.poetry.group.dev.dependencies]
pytest = "^5.2"
textual = {extras = ["dev"], version = ">=0.11.0"}

It looks like the proper way to define a dev dependencies group since Poetry 1.2.0 is [tool.poetry.group.dev.dependencies] - it warns that the dev-dependencies notation will soon be deprecated.

P.S. You might want to specify a newer version of pytest as version 5.2 was released back in 2019. The caret requirements would not allow any versions 6.0.0 or newer.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sauljabin
Comment options

Answer selected by sauljabin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants