Skip to content

Commit

Permalink
Add docs and test extras
Browse files Browse the repository at this point in the history
This makes it easier to install just documentation or test dependencies
without installing all dev dependencies.
  • Loading branch information
carlwgeorge committed Dec 20, 2024
1 parent 00c9262 commit 95f04e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ documentation = "https://pyiso8601.readthedocs.io/en/latest/"

[tool.poetry.dependencies]
python = ">=3.7,<4.0"
pytest = { version = "*", optional = true }
hypothesis = { version = "*", optional = true }
pytz = { version = "*", optional = true }
Sphinx = { version = "*", optional = true }

[tool.poetry.group.dev.dependencies]
mypy = "*"
Expand All @@ -22,6 +26,10 @@ Sphinx = "*"
changelog-manager = "*"
ruff = "*"

[tool.poetry.extras]
docs = ["Sphinx"]
test = ["pytest", "hypothesis", "pytz"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit 95f04e2

Please sign in to comment.