From 62e77e7348907b15e4e685462f39738af8ae8a7e Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 16 Nov 2021 08:17:52 -0700 Subject: [PATCH] docs: use conda for RTD Add GDAL to our ReadTheDocs build. Adds a RTD environment file to use in ReadTheDocs because you can't combine conda and pip deps in the readthedocs config. Fixes #207. --- .readthedocs.environment.yml | 29 +++++++++++++++++++++++++++++ .readthedocs.yml | 13 +++++++------ 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .readthedocs.environment.yml diff --git a/.readthedocs.environment.yml b/.readthedocs.environment.yml new file mode 100644 index 00000000..6d9f8287 --- /dev/null +++ b/.readthedocs.environment.yml @@ -0,0 +1,29 @@ +name: stactools +channels: + - conda-forge + - defaults +dependencies: + - gdal + - pip + - rasterio~=1.2 + - pip: + - codespell + - coverage + - flake8 + - ipython + - jupyter + - lxml-stubs + - mypy + - nbsphinx + - pylint + - sphinx + - sphinx-autobuild + - sphinx-click + - sphinxcontrib-fulltoc + - sphinxcontrib-napoleon + - types-certifi + - types-orjson + - types-python-dateutil + - types-requests + - yapf + - . \ No newline at end of file diff --git a/.readthedocs.yml b/.readthedocs.yml index 612b4008..d9802666 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,9 +13,10 @@ sphinx: formats: - pdf -python: - version: 3.8 - install: - - method: pip - path: . - - requirements: requirements-dev.txt +build: + os: ubuntu-20.04 + tools: + python: mambaforge-4.10 + +conda: + environment: .readthedocs.environment.yml