From 0f24009e0ef8fe8b9c50b8c2dd0bce1c04e8c078 Mon Sep 17 00:00:00 2001 From: Lann Date: Wed, 13 May 2020 10:25:41 -0400 Subject: [PATCH] Document dependency specficiation extras --- docs/docs/dependency-specification.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docs/dependency-specification.md b/docs/docs/dependency-specification.md index f826332eb71..2a9110313ae 100644 --- a/docs/docs/dependency-specification.md +++ b/docs/docs/dependency-specification.md @@ -136,6 +136,17 @@ poetry add https://example.com/my-package-0.1.0.tar.gz ``` +## Dependency `extras` + +You can specify [PEP-508 Extras](https://www.python.org/dev/peps/pep-0508/#extras) +for a dependency: + +```toml +[tool.poetry.dependencies] +gunicorn = { version = "^20.0", extras = ["gevent"] } +``` + + ## Python restricted dependencies You can also specify that a dependency should be installed only for specific Python versions: