Skip to content

Commit e7e31e5

Browse files
committed
docs: Use python 3.7 via conda for readthedocs builds
The typing module in python 3.5 has problems with some type annotations so we need to build with 3.7. RTD doesn't yet support py37 natively but we can get it with conda following an example at readthedocs/readthedocs-docker-images#73
1 parent cb2d897 commit e7e31e5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/conda.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TODO: remove when RTD supports python 3.7 without conda
2+
name: tornado-docs
3+
dependencies:
4+
- python=3.7
5+
- pip:
6+
- sphinx
7+
- sphinx-rtd-theme
8+
- Twisted

readthedocs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# TODO: remove when RTD supports Python 3.7 without conda.
2+
# https://github.com/rtfd/readthedocs-docker-images/pull/73
3+
conda:
4+
file: docs/conda.yml

0 commit comments

Comments
 (0)