From 01411d9f30d9d2c3a70908008436e8b42d60640e Mon Sep 17 00:00:00 2001 From: c-bata Date: Mon, 14 Aug 2023 20:07:09 +0900 Subject: [PATCH 1/2] Add .readthedocs.yml --- .readthedocs.yaml | 18 ++++++++++++++++++ pyproject.toml | 7 +++++++ requirements.txt | 6 +----- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..e86f1127 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,18 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +sphinx: + configuration: docs/conf.py + +formats: all + +python: + install: + - method: pip + path: . + extra_requirements: + - docs \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index be4a18e0..6be5efcb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,13 @@ dependencies = [ ] dynamic = ["version"] +[project.optional-dependencies] +docs = [ + "streamlit", + "sphinx", + "sphinx_rtd_theme", +] + [project.scripts] optuna-dashboard = "optuna_dashboard._cli:main" diff --git a/requirements.txt b/requirements.txt index 492d883e..59a9c586 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,8 +18,4 @@ boto3 moto[s3] # visual regression tests -pytest-playwright - -# docs -sphinx -sphinx_rtd_theme \ No newline at end of file +pytest-playwright \ No newline at end of file From 60d6406d5c0cceb055bf24d4b3e7f4fc148308e6 Mon Sep 17 00:00:00 2001 From: c-bata Date: Mon, 14 Aug 2023 20:34:36 +0900 Subject: [PATCH 2/2] Add boto3 to readthedocs deps --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 6be5efcb..d9c0082c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ dynamic = ["version"] [project.optional-dependencies] docs = [ + "boto3", "streamlit", "sphinx", "sphinx_rtd_theme",