Skip to content

Commit

Permalink
chore: Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 6, 2024
1 parent 912c8c7 commit b68f010
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
10 changes: 5 additions & 5 deletions duties.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def material_insiders() -> Iterator[bool]: # noqa: D103
yield False


below_312 = sys.version_info < (3, 12)
skip_docs_reason = pyprefix("Building docs is not supported on Python 3.12, skipping")
below_314 = sys.version_info < (3, 14)
skip_docs_reason = pyprefix("Building docs is not supported on Python 3.14, skipping")


@duty
Expand All @@ -73,7 +73,7 @@ def check_quality(ctx: Context) -> None:
)


@duty(skip_if=not below_312, skip_reason=skip_docs_reason)
@duty(skip_if=not below_314, skip_reason=skip_docs_reason)
def check_docs(ctx: Context) -> None:
"""Check if the documentation builds correctly."""
Path("htmlcov").mkdir(parents=True, exist_ok=True)
Expand Down Expand Up @@ -104,7 +104,7 @@ def check_api(ctx: Context, *cli_args: str) -> None:
)


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


@duty(skip_if=not below_312, skip_reason=skip_docs_reason)
@duty(skip_if=not below_314, skip_reason=skip_docs_reason)
def docs_deploy(ctx: Context, *, force: bool = False) -> None:
"""Deploy the documentation to GitHub pages.
Expand Down
31 changes: 16 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,21 @@ dev = [
"tomli>=2.0; python_version < '3.11'",

# docs gallery
"pydeps>=1.12; python_version < '3.13'",
"diagrams>=0.21; python_version < '3.13'",
"rich>=12.3; python_version < '3.13'",
"matplotlib>=3.5; python_version < '3.13'",
"pydeps>=1.12; python_version < '3.14'",
"diagrams>=0.21; python_version < '3.14'",
"rich>=12.3; python_version < '3.14'",
"matplotlib>=3.5; python_version < '3.14'",
"numpy>=1.24.4; python_version < '3.13'",
"textual>=0.67; python_version < '3.13'",
"pytermgui>=6.3; python_version < '3.13'",
"pipdeptree>=2.6; python_version < '3.13'",
"pip>=24; python_version < '3.13'",
"pygments>=2.15; python_version < '3.13'",
"drawsvg>=2.3; python_version < '3.13'",
"hyperbolic>=2.0; python_version < '3.13'",
"qrcode>=7.4; python_version < '3.13'",
"plotly>=5.22; python_version < '3.13'",
"pandas>=2.2; python_version < '3.13'",
"chalk-diagrams>=0.2; python_version < '3.13'",
"numpy>=2.1; python_version >= '3.13' and python_version < '3.14'",
"textual>=0.67; python_version < '3.14'",
"pytermgui>=6.3; python_version < '3.14'",
"pipdeptree>=2.6; python_version < '3.14'",
"pip>=24; python_version < '3.14'",
"pygments>=2.15; python_version < '3.14'",
"drawsvg>=2.3; python_version < '3.14'",
"hyperbolic>=2.0; python_version < '3.14'",
"qrcode>=7.4; python_version < '3.14'",
"plotly>=5.22; python_version < '3.14'",
"pandas>=2.2; python_version < '3.14'",
"chalk-diagrams>=0.2; python_version < '3.14'",
]

0 comments on commit b68f010

Please sign in to comment.