From 389f81164354aa658bcfc7c83e9115d9fbda9f0e Mon Sep 17 00:00:00 2001 From: Merel Theisen Date: Mon, 8 Jul 2024 14:45:05 +0100 Subject: [PATCH 1/2] Bump doc requirements for successful build Signed-off-by: Merel Theisen --- .../docs/source/conf.py | 2 +- .../{{ cookiecutter.repo_name }}/pyproject.toml | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/kedro/templates/project/{{ cookiecutter.repo_name }}/docs/source/conf.py b/kedro/templates/project/{{ cookiecutter.repo_name }}/docs/source/conf.py index b0382b6735..d3d2b1201f 100644 --- a/kedro/templates/project/{{ cookiecutter.repo_name }}/docs/source/conf.py +++ b/kedro/templates/project/{{ cookiecutter.repo_name }}/docs/source/conf.py @@ -76,7 +76,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = "en" # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. diff --git a/kedro/templates/project/{{ cookiecutter.repo_name }}/pyproject.toml b/kedro/templates/project/{{ cookiecutter.repo_name }}/pyproject.toml index 229c537803..f22a91242f 100644 --- a/kedro/templates/project/{{ cookiecutter.repo_name }}/pyproject.toml +++ b/kedro/templates/project/{{ cookiecutter.repo_name }}/pyproject.toml @@ -14,17 +14,18 @@ dynamic = ["dependencies", "version"] [project.optional-dependencies] docs = [ - "docutils<0.18.0", - "sphinx~=3.4.3", - "sphinx_rtd_theme==0.5.1", + "docutils<0.21", + "sphinx>=5.3,<7.3", + "sphinx_rtd_theme==2.0.0", "nbsphinx==0.8.1", - "sphinx-autodoc-typehints==1.11.1", - "sphinx_copybutton==0.3.1", + "sphinx-autodoc-typehints==1.20.2", + "sphinx_copybutton==0.5.2", "ipykernel>=5.3, <7.0", - "Jinja2<3.1.0", - "myst-parser~=0.17.2", + "Jinja2<3.2.0", + "myst-parser>=1.0,<2.1" ] + [tool.setuptools.dynamic] dependencies = {file = "requirements.txt"} version = {attr = "{{ cookiecutter.python_package }}.__version__"} From d06b13f2b8dfcec2579586a5b6ca5924843309ba Mon Sep 17 00:00:00 2001 From: Merel Theisen Date: Mon, 8 Jul 2024 15:04:20 +0100 Subject: [PATCH 2/2] Bump doc dependencies in tests as well Signed-off-by: Merel Theisen --- tests/framework/cli/test_starters.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/framework/cli/test_starters.py b/tests/framework/cli/test_starters.py index 5d00fa5401..00f851978a 100644 --- a/tests/framework/cli/test_starters.py +++ b/tests/framework/cli/test_starters.py @@ -197,15 +197,15 @@ def _assert_requirements_ok( expected = { "optional-dependencies": { "docs": [ - "docutils<0.18.0", - "sphinx~=3.4.3", - "sphinx_rtd_theme==0.5.1", + "docutils<0.21", + "sphinx>=5.3,<7.3", + "sphinx_rtd_theme==2.0.0", "nbsphinx==0.8.1", - "sphinx-autodoc-typehints==1.11.1", - "sphinx_copybutton==0.3.1", + "sphinx-autodoc-typehints==1.20.2", + "sphinx_copybutton==0.5.2", "ipykernel>=5.3, <7.0", - "Jinja2<3.1.0", - "myst-parser~=0.17.2", + "Jinja2<3.2.0", + "myst-parser>=1.0,<2.1", ] } }