Skip to content

Commit

Permalink
chore: Update docs dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 16, 2023
1 parent e8330a5 commit 68d49fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions duties.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def material_insiders() -> Iterator[bool]: # noqa: D103
yield False


between_38_310 = (3, 8) <= sys.version_info < (3, 11)
skip_docs_reason = pyprefix("Building docs is not supported on Python 3.7 and 3.11, skipping")
below_312 = sys.version_info < (3, 12)
skip_docs_reason = pyprefix("Building docs is not supported on Python 3.12, skipping")


@duty
Expand Down Expand Up @@ -118,7 +118,7 @@ def check_dependencies(ctx: Context) -> None:
)


@duty(skip_if=not between_38_310, skip_reason=skip_docs_reason)
@duty(skip_if=not below_312, skip_reason=skip_docs_reason)
def check_docs(ctx: Context) -> None:
"""Check if the documentation builds correctly.
Expand Down Expand Up @@ -187,7 +187,7 @@ def clean(ctx: Context) -> None:
ctx.run("find . -name '*.rej' -delete")


@duty(skip_if=not between_38_310, skip_reason=skip_docs_reason)
@duty(skip_if=not below_312, skip_reason=skip_docs_reason)
def docs(ctx: Context, host: str = "127.0.0.1", port: int = 8000) -> None:
"""Serve the documentation (localhost:8000).
Expand All @@ -204,7 +204,7 @@ def docs(ctx: Context, host: str = "127.0.0.1", port: int = 8000) -> None:
)


@duty(skip_if=not between_38_310, skip_reason=skip_docs_reason)
@duty(skip_if=not below_312, skip_reason=skip_docs_reason)
def docs_deploy(ctx: Context) -> None:
"""Deploy the documentation on GitHub pages.
Expand Down
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@ duty = ["duty>=0.10"]
ci-quality = ["markdown-exec[duty,docs,quality,typing,security]"]
ci-tests = ["markdown-exec[duty,tests]"]
docs = [
"black>=23.9",
"markdown-callouts>=0.3",
"markdown-exec>=1.6",
"mkdocs>=1.5",
"mkdocs-coverage>=1.0",
"mkdocs-gen-files>=0.5",
"mkdocs-git-committers-plugin-2>=1.2",
"mkdocs-literate-nav>=0.6",
"mkdocs-material>=9.4",
"mkdocs-minify-plugin>=0.7",
"mkdocstrings[python]>=0.23",
"black>=23.9; python_version < '3.12'",
"markdown-callouts>=0.3; python_version < '3.12'",
"markdown-exec>=1.6; python_version < '3.12'",
"mkdocs>=1.5; python_version < '3.12'",
"mkdocs-coverage>=1.0; python_version < '3.12'",
"mkdocs-gen-files>=0.5; python_version < '3.12'",
"mkdocs-git-committers-plugin-2>=1.2; python_version < '3.12'",
"mkdocs-literate-nav>=0.6; python_version < '3.12'",
"mkdocs-material>=9.4; python_version < '3.12'",
"mkdocs-minify-plugin>=0.7; python_version < '3.12'",
"mkdocstrings[python]>=0.23; python_version < '3.12'",
"tomli>=2.0; python_version < '3.11'",
# gallery dependencies
"toml>=0.10; python_version >= '3.8' and python_version < '3.11'",
"pydeps>=1.12; python_version >= '3.8' and python_version < '3.11'",
"diagrams>=0.21; python_version >= '3.8' and python_version < '3.11'",
"rich>=12.3; python_version >= '3.8' and python_version < '3.11'",
"matplotlib>=3.5; python_version >= '3.8' and python_version < '3.11'",
"numpy>=1.23; python_version >= '3.8' and python_version < '3.11'",
"textual[dev]; python_version >= '3.8' and python_version < '3.11'",
"pytermgui>=6.3; python_version >= '3.8' and python_version < '3.11'",
"pipdeptree>=2.6; python_version >= '3.8' and python_version < '3.11'",
"toml>=0.10; python_version < '3.12'",
"pydeps>=1.12; python_version < '3.12'",
"diagrams>=0.21; python_version < '3.12'",
"rich>=12.3; python_version < '3.12'",
"matplotlib>=3.5; python_version < '3.12'",
"numpy>=1.23; python_version < '3.12'",
"textual; python_version < '3.12'",
"pytermgui>=6.3; python_version < '3.12'",
"pipdeptree>=2.6; python_version < '3.12'",
]
maintain = [
"black>=23.9",
Expand Down

0 comments on commit 68d49fb

Please sign in to comment.