From 17d04429b78d32607f5680a1cc9b7330c0e2925a Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Sun, 2 Jul 2023 08:16:56 -0700 Subject: [PATCH] Install package on rtd --- .readthedocs.yaml | 5 ++++- setup.py | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 894b38d0..a124b7ca 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -28,4 +28,7 @@ sphinx: # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html python: install: - - requirements: requirements/doc.txt + - method: pip + path: . + extra_requirements: + - doc diff --git a/setup.py b/setup.py index 4825254e..e7bec9fb 100644 --- a/setup.py +++ b/setup.py @@ -65,6 +65,11 @@ def read(fname): for req in read("requirements/test.txt").split("\n") if not req.startswith("#") ], + "doc": [ + req + for req in read("requirements/doc.txt").split("\n") + if not req.startswith("#") + ], }, package_data={ "numpydoc": [