From 94aa7a470ae29125555235fcc8299aef90b153a8 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Sat, 1 Jul 2023 17:56:19 -0700 Subject: [PATCH] Use rtd template (old method is deprecated) --- .readthedocs.yaml | 31 +++++++++++++++++++++++++++++++ RELEASE.rst | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..894b38d0 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,31 @@ +# Read the Docs configuration file for Sphinx projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + # You can also specify other tool versions: + # nodejs: "19" + # rust: "1.64" + # golang: "1.19" + +# Build documentation in the "doc/" directory with Sphinx +sphinx: + configuration: doc/conf.py + +# Optionally build your docs in additional formats such as PDF and ePub +# formats: +# - pdf +# - epub + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: requirements/doc.txt diff --git a/RELEASE.rst b/RELEASE.rst index 09dea52e..f4390f02 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -46,7 +46,7 @@ Process - Publish on PyPi:: git clean -fxd - pip install build wheel twine + pip install --upgrade build wheel twine python -m build --sdist --wheel twine upload -s dist/*