From f834a9b47b8c8efce0d7e664f0d12305093e19a8 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Mon, 27 Nov 2023 17:00:14 -0600 Subject: [PATCH] readthedocs config --- .readthedocs.yaml | 24 ++++++++++++++++++++++++ setup.py | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..c1fb963 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,24 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-20.04 + tools: + python: "3.10" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# Optionally declare the Python requirements required to build your docs +python: + install: + - requirements: requirements.txt + - method: pip + path: . + extra_requirements: + - docs \ No newline at end of file diff --git a/setup.py b/setup.py index 7c1d816..05ff043 100644 --- a/setup.py +++ b/setup.py @@ -59,9 +59,10 @@ def read_version(file_path): version = read_version(os.path.join(here, "qbraid_qir/_version.py")) install_requires = read_requirements(os.path.join(here, "requirements.txt")) dev_requires = read_requirements(os.path.join(here, "requirements-dev.txt")) +docs_requires = read_requirements(os.path.join(here, "docs", "requirements.txt")) setup( version=version, install_requires=install_requires, - extras_require={"dev": dev_requires}, + extras_require={"dev": dev_requires, "docs": docs_requires}, )