-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add support and CI testing for Python 3.8 #113
Conversation
Thanks @hugovk! It's probably best to wait until we can get conda-forge binaries for everything and test that it actually works :) Alternatively, we could add a configuration script to |
Add the |
Yep, I think it's best to wait, they'll add them soon enough. |
@hugovk I enabled the 3.8 builds on CI since conda-forge already has all our dependencies on 3.8. Let's see if everything passes 🤞 |
No yet, I guess. We can try rebuilding in a while as we wait for the conda-forge migration to finish. |
That would imply that either a runtime or test dependency is missing on Mac/Windows. Would love to know what’s missing to see what we need to fix. |
@dopplershift the runtime dependencies are fine since the pooch feedstock was already rebuilt for 3.8 on conda-forge. The problem are the development dependencies. This is the output from the Travis Linux build:
Azure Mac:
and Azure Windows (surprisingly the shortest one 😮):
So it seems that our use of Sphinx 1.8.5 is causing trouble. I tried updating but the RTD theme is still not rendering numpydoc arguments correctly with newer sphinx. |
Yeah, unfortunately on conda-forge, only sphinx>=2 is a noarch package, meaning it doesn't need rebuilding for Python versions. 1.8.5 has only been built for up to 3.7. I've not noticed any problems with our doc builds and Sphinx 2. Do you have an example, or better yet, an upstream issue to point to? |
This was made with 1.8.5: And this is the result of 2.2.1: I remember chasing this down a while ago and it seemed like it was a weird compatibility issue between sphinx_rtd_theme, numpydoc, and sphinx 2. At the time, I just pinned sphinx and moved on. There seems to be some recent work towards fixing this in readthedocs/sphinx_rtd_theme#766 so it might get resolved soon. I have yet to try one of the workarounds in that issue, though. |
Interesting. We don't have that problem with Sphinx 2 on MetPy, but we have pinned to a custom version of sphinx_rtd_theme in order to support the version chooser. So I guess you may be able to get something reasonable with a new sphinx and an older sphinx_rtd_theme? Just food for thought. Ugh, what a mess. |
Yeah, I noticed that. I prefer the old look but it's no good to keep using an old sphinx. I'll try pinning the theme and see what happens. Thanks, Ryan! |
Ha of course it wasn't that simple. sphinx_rtd_theme isn't available on conda-forge for 3.7 in those versions. Buuuut, it turns out that using It looks different but not necessarily worse. Bonus that this works with the most recent sphinx and rtd theme. I'd be fine with this if it means we can stop pinning sphinx to 1.8.5. Any contradictory opinions? cc @santisoler |
I think it even looks better with |
🎉 all builds passing! Merging this in. Thanks @hugovk and everyone for all the help! |
Released on 2019-10-14 🎉
Not yet available on Azure Pipelines:
Nor Conda, so "Linux - Python 3.8" is left out from Travis CI for now:
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.