Skip to content

Commit

Permalink
Update Python version in Read The Docs configuration
Browse files Browse the repository at this point in the history
The python.version key in .readthedocs.yaml is deprecated. The
recommended way is now build.tools.python. The Python version is
also updated to Python 3.11 to be able to build documentation with
modern language features, for instance for typing.
  • Loading branch information
koenvervloesem authored and abravalheri committed Jan 23, 2023
1 parent 9d28f46 commit c926dd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ sphinx:
formats:
- pdf

build:
os: ubuntu-22.04
tools:
python: "3.11"

python:
version: 3.8
install:
- requirements: docs/requirements.txt
- {path: ., method: pip}
6 changes: 5 additions & 1 deletion src/pyscaffold/templates/rtd_cfg.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ sphinx:
formats:
- pdf

build:
os: ubuntu-22.04
tools:
python: "3.11"

python:
version: 3.8
install:
- requirements: docs/requirements.txt
- {path: ., method: pip}

0 comments on commit c926dd7

Please sign in to comment.