From bf93b56a7bf0fc6c88508438b2c58452ef0775ef Mon Sep 17 00:00:00 2001
From: Carl George <carl@george.computer>
Date: Fri, 6 May 2022 15:02:17 -0500
Subject: [PATCH] Add docs and test extras
This makes it easier to install just documentation or test dependencies
without installing all dev dependencies.
---
pyproject.toml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index a2ee476..0814537 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,6 +11,10 @@ documentation = "https://pyiso8601.readthedocs.io/en/latest/"
[tool.poetry.dependencies]
python = ">=3.6.2,<4.0"
+pytest = { version = "^6.2.2", optional = true }
+hypothesis = { version = "^6.1.1", optional = true }
+pytz = { version = "^2021.1", optional = true }
+Sphinx = { version = "^4.2.0", optional = true }
[tool.poetry.dev-dependencies]
mypy = "^0.910"
@@ -24,6 +28,10 @@ pre-commit = "^2.15.0"
nox = "^2021.10.1"
Sphinx = "^4.2.0"
+[tool.poetry.extras]
+docs = ["Sphinx"]
+test = ["pytest", "hypothesis", "pytz"]
+
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
--
2.35.1