Skip to content

Commit

Permalink
Make docs dependencies a group
Browse files Browse the repository at this point in the history
Same as all other groups. Now we do not have to carry docs extras
around.
  • Loading branch information
amolenaar committed Feb 3, 2024
1 parent d4d21ef commit 9cbd555
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 41 deletions.
12 changes: 6 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ build:
os: ubuntu-20.04
tools:
python: "3.9"
jobs:
pre_install:
- python -m pip install --constraint=.github/constraints.txt poetry
- poetry config virtualenvs.create false
post_install:
- poetry install --with docs
sphinx:
configuration: docs/conf.py
python:
install:
- method: pip
path: .
extra_requirements:
- docs
59 changes: 28 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.8"
exceptiongroup = "^1.0.0"
sphinx = { version = ">=4.3,<7.2", optional = true }
furo = { version = ">=2022,<2025", optional = true }

[tool.poetry.dev-dependencies]
pytest = "^8.0"
pytest-cov = "^4.1"

[tool.poetry.extras]
docs = [ "sphinx", "furo" ]
[tool.poetry.group.docs]
optional=true

[tool.poetry.group.docs.dependencies]
sphinx = ">=4.3,<8.0"
furo = ">=2022,<2025"

[tool.pytest.ini_options]
testpaths = [
Expand Down

0 comments on commit 9cbd555

Please sign in to comment.