-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix RTD configuration #145
Conversation
Ignore `.venv` and `.idea` directories.
In this way, they can easily installed by using `pip install --editable=.[docs]`.
They are needed to satisfy the dependencies of `cartopy` and friends.
I tried to re-run the RTD job three times, but it always runs into a timeout. Let's try later again. ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. |
I've just submitted a support request to RTD. Dear lovely Read the Docs team, first things first, I wish you an excellent new year. We are in the progress of adding the documentation of Herbie [1] to Read the Docs, but, after believing we got everything in place with [2], we are running into timeouts on the build process, like outlined at [3]. We can't make any sense of that, so we are humbly asking if you have any suggestions for us? With kind regards, [1] https://github.com/blaylockbk/Herbie |
Thanks for asking rtd support. Another dependency Herbie has that can't be installed with pure pip is cfgrib, which requires eccodes. |
This might help us...looks like rtd lets us specify a conda environment. |
Hi Brian, while I admit Conda is absolutely needed to keep ones sanity in non-Linux environments, Conda environments are not cheap to install 1. Those CI jobs will happen to run so often that I believe it really makes a difference not wasting resources, and I think the same applies to our obligation to care about the resources at RTD. At GH-139, I've deliberately chosen to not use Conda to run the tests on a Linux environment, for the same reasons 2. With those dependencies, Herbie would install and run its test suite without issues on GHA. Herbie/.github/workflows/tests-python.yml Lines 57 to 60 in 899fb5f
With the most recent update to this patch, I've also added those dependencies to the RTD configuration. Lines 14 to 16 in 7394517
With kind regards, Footnotes
|
e449903
to
c4df623
Compare
Hi again. 3ffd4f7 may have improved the situation. [1] shows a successful build, and the HTML documentation can be inspected at [2]. [1] https://readthedocs.org/projects/herbie/builds/19130539/ |
Wonderful! It's good to see the docs again. It sure was nice that I didn't have to build the docs myself. Thank you for tracking down the unexpected issues and figuring out how to address them. This really helps Herbie feel more "grown up". Now I'll take a look at the other tasks you brought up 👍🏻 again, thank you! |
This is a followup patch to GH-142, incorporating some learnings from GH-139, and from coddingtonbear/python-measurement#77. Thank you, @codingjoe.
Other than some refactorings, the patch hopefully fixes the RTD build, by installing the
libeccodes-dev
andlibgeos-dev
distribution packages, in order to satisfy the installation ofcartopy
and friends.