Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The versions were broken because instead of installing we simply extended
sys.path
. That way,sphinx
is able to find the correct version, butsetuptools_scm
can't put the version in theMETADATA
file in the installed egg. Instead,pkg_resources.get_distribution("xarray").version
gets its version from a released version ofxarray
that was pulled in by a dependency (hence the old version in the title bar). To fix that, we need to install before building the documentation.However, since RTD installs with
--upgrade --upgrade-strategy=eager
(which upgrades all packages to the most recent version), we can't install using theirpip
method. Thesetuptools
method doesn't work either becausecfgrib
pulls in the most recent released version ofxarray
, andsetuptools
can't seem to overwrite / uninstall previously installed versions. To work around that, this installs using thepip
section in the environment file.