From: Ben Darnell Date: Sun, 30 Dec 2018 00:57:39 +0000 (-0500) Subject: docs: Use python 3.7 via conda for readthedocs builds X-Git-Tag: v6.0.0b1~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e31e5642ae56da3f768d9829036eab99f0c988;p=thirdparty%2Ftornado.git 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 https://github.com/rtfd/readthedocs-docker-images/pull/73 --- diff --git a/docs/conda.yml b/docs/conda.yml new file mode 100644 index 000000000..e33288db2 --- /dev/null +++ b/docs/conda.yml @@ -0,0 +1,8 @@ +# TODO: remove when RTD supports python 3.7 without conda +name: tornado-docs +dependencies: + - python=3.7 + - pip: + - sphinx + - sphinx-rtd-theme + - Twisted diff --git a/readthedocs.yml b/readthedocs.yml new file mode 100644 index 000000000..e40382080 --- /dev/null +++ b/readthedocs.yml @@ -0,0 +1,4 @@ +# TODO: remove when RTD supports Python 3.7 without conda. +# https://github.com/rtfd/readthedocs-docker-images/pull/73 +conda: + file: docs/conda.yml