From f7b3526cf0250525ae6fb4207946f9ca5935d34a Mon Sep 17 00:00:00 2001 From: Fabian Jankowski Date: Sun, 6 Aug 2023 12:37:30 +0200 Subject: [PATCH] Move documentation tools into separate extras. Request them for readthedocs. --- .readthedocs.yaml | 9 ++++++++- setup.py | 6 ++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9cfe617..7d02044 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -29,4 +29,11 @@ sphinx: # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html # python: # install: -# - requirements: docs/requirements.txt \ No newline at end of file +# - requirements: docs/requirements.txt + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/setup.py b/setup.py index ef5263e..c0128cb 100644 --- a/setup.py +++ b/setup.py @@ -59,12 +59,14 @@ def get_long_description(): "black", "cibuildwheel", "Cython >= 3.0.0", - "myst-parser", "pytest", "pytest-cov", - "sphinx", "twine", ], + "docs": [ + "myst-parser", + "sphinx", + ], }, ext_modules=[ Extension(