Skip to content

Commit

Permalink
readthedocs config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhill1 committed Nov 27, 2023
1 parent bb8fe3f commit f834a9b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
)

0 comments on commit f834a9b

Please sign in to comment.