Project description
Poetry: Python packaging and dependency management made easy
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.
Poetry replaces setup.py
, requirements.txt
, setup.cfg
, MANIFEST.in
and Pipfile
with a simple pyproject.toml
based project format.
[tool.poetry] name = "my-package" version = "0.1.0" description = "The description of the package" license = "MIT" authors = [ "Sébastien Eustace " ] repository = "//github.com/python-poetry/poetry" homepage = "//python-poetry.org" # README file[s] are used as the package description readme = ["README.md", "LICENSE"] # Keywords [translated to tags on the package index] keywords = ["packaging", "poetry"] [tool.poetry.dependencies] # Compatible Python versions python = ">=3.8" # Standard dependency with semver constraints aiohttp = "^3.8.1" # Dependency with extras requests = { version = "^2.28", extras = ["security"] } # Version-specific dependencies with prereleases allowed tomli = { version = "^2.0.1", python = "