Skip to content

Commit

Permalink
docs: use conda for RTD
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gadomski committed Nov 18, 2021
1 parent f64e884 commit 62e77e7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .readthedocs.environment.yml
Original file line number Diff line number Diff line change
@@ -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
- .
13 changes: 7 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62e77e7

Please sign in to comment.