Development Dependencies
Development dependencies are specified in a separate section to differentiate them from main dependencies:
[tool.poetry.dev-dependencies]
pytest = "^6.2.2"
black = "^20.8b1"
Understanding Versions, Ranges, and Constraints in Python Poetry
Managing dependencies is a fundamental aspect of maintaining a Python project. Poetry, a powerful dependency management tool, simplifies this process by providing a clear and concise way to declare, manage, and resolve dependencies. Here we check how to specify dependencies in Poetry, adding, removing, updating dependencies, and the use of versions, ranges, and constraints.