From 228fbf513d7155cce3e5f6bd7c7c98f70d0f21af Mon Sep 17 00:00:00 2001 From: "David L. Jones" Date: Mon, 2 Mar 2020 20:16:07 -0800 Subject: [PATCH] Change dependencies in the Conda environment. We can remove the dependency on sphinxcontrib, since sphinx.ext.napoleon is already available. This means we can drop conda-forge, which substantially reduces build memory usage (see: readthedocs/readthedocs.org#6742, conda/conda#5003, conda/conda#8650, readthedocs/readthedocs.org#6692). Bump Sphinx to 2.4.0, while we're at it. --- python/docs/conf.py | 2 +- python/docs/environment.yml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/python/docs/conf.py b/python/docs/conf.py index 6aef7e483c..913f012838 100644 --- a/python/docs/conf.py +++ b/python/docs/conf.py @@ -71,7 +71,7 @@ extensions = [ "sphinx.ext.autosummary", "sphinx.ext.ifconfig", "sphinx.ext.intersphinx", - "sphinxcontrib.napoleon", + "sphinx.ext.napoleon", ] # Add any paths that contain templates here, relative to this directory. diff --git a/python/docs/environment.yml b/python/docs/environment.yml index 2c7a8d93ef..0f6390e698 100644 --- a/python/docs/environment.yml +++ b/python/docs/environment.yml @@ -1,12 +1,10 @@ name: protobuf channels: - - conda-forge - defaults dependencies: - - libprotobuf=3.11.2 + - libprotobuf=3.11.4 - make=4.2.1 - pip=19.3.1 - python=3.7.6 - - sphinx=2.3.1 + - sphinx=2.4.0 - sphinx_rtd_theme=0.4.3 - - sphinxcontrib-napoleon=0.7