Minimal example of readthedocs configuration for conda

python
Published

May 27, 2020

Prompted by the announced better support of conda in readthedocs, more memory! I setup a Python package with conda to automatically build the documentation on readthedocs.

I had some trouble because I couldn’t find a minimal example that gives all the necessary configuration options, for example if python / install is not provided, the project is not even built.

See these files on Gist

version: 2
conda:
environment: docs/environment.yml
build:
image: latest
# This part is necessary otherwise the project is not built
python:
version: 3.7
install:
- method: pip
path: .
# By default readthedocs does not checkout git submodules
submodules:
include: all
name: readthedocs
dependencies:
- python=3.7
- astropy
- numpy
- cython
- matplotlib
- pytest
- scipy
view raw environment.yml hosted with ❤ by GitHub