Skip to content

Commit

Permalink
automate readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhindes committed Jan 24, 2022
1 parent ffe3fd6 commit 341e656
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 58 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# .readthedocs.yml

version: 2

sphinx:
configuration: docs/conf.py

python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs
105 changes: 54 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,28 @@ exclude = ["nidaqmx/tests"]

[tool.poetry.dependencies]
python = "^3.7"
# Need two version blocks to match numpy's changing version requirements.
numpy = [
{version = "1.21.5", python = "~3.7"},
{version = "^1.22", python = "^3.8"}
{version="1.21.5", python = "~3.7"},
{version="^1.22", python = "^3.8"}
]
six = "^1.16"
# This functionality was merged into python stdlib beginning in 3.8
importlib_metadata = {version = "^4.10", python="~3.7" }
importlib_metadata = {version="^4.10", python="~3.7"}
# Documentation, must be in main dependencies (but optional) list for
# readthedocs integration.
# See https://github.com/readthedocs/readthedocs.org/issues/4912.
Sphinx = {version="^4.4", optional=true}
sphinx_rtd_theme = {version="^1.0", optional=true}

[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme"]

[tool.poetry.dev-dependencies]
# Test
pytest = "^6.2"
pykka = "^3.0"

# Documentation
Sphinx = "^4.4"
sphinx_rtd_theme = "^1.0"

[build-system]
requires = ["poetry>=1.1.12"]
build-backend = "poetry.masonry.api"

0 comments on commit 341e656

Please sign in to comment.