-
-
Notifications
You must be signed in to change notification settings - Fork 424
bump RTD to py39 #2730
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
Merged
Merged
bump RTD to py39 #2730
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,28 @@ | ||
| version: 2 | ||
|
|
||
| python: | ||
| # Revise build version once more dependencies support python 3.9+ | ||
| version: 3.8 | ||
| system_packages: false | ||
| install: | ||
| - method: pip | ||
| path: . | ||
| extra_requirements: | ||
| - docs | ||
| build: | ||
| os: "ubuntu-20.04" | ||
| tools: | ||
| python: "mambaforge-4.10" | ||
|
|
||
| conda: | ||
| environment: docs/rtd_environment.yaml | ||
|
|
||
| sphinx: | ||
| fail_on_warning: true | ||
| configuration: docs/conf.py | ||
| builder: html | ||
| configuration: docs/conf.py | ||
| fail_on_warning: true | ||
|
|
||
| # Install regular dependencies. | ||
| # Then, install special pinning for RTD. | ||
| python: | ||
| system_packages: false | ||
| install: | ||
| - method: pip | ||
| path: . | ||
| extra_requirements: | ||
| - docs | ||
| - all | ||
|
|
||
| # Don't build any extra formats | ||
| formats: [] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -302,7 +302,7 @@ def test_mast_service_request(patch_post): | |
| def test_resolve_object(patch_post): | ||
| m103_loc = mast.Mast.resolve_object("M103") | ||
| print(m103_loc) | ||
| assert m103_loc.separation(SkyCoord("23.34086 60.658", unit='deg')).value == 0 | ||
| assert round(m103_loc.separation(SkyCoord("23.34086 60.658", unit='deg')).value, 10) == 0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this change included in this RTD config PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
|
|
||
| def test_login_logout(patch_post): | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| name: rtd311 | ||
| channels: | ||
| - conda-forge | ||
| - defaults | ||
| dependencies: | ||
| - python=3.11 | ||
| - pip | ||
| - graphviz |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to not rely on any conda stuff for CI. Do you plan to have this temporarily, or this is now our solution for docs builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question. I did this because it seemed the most direct way to get RTD to build again. I'm totally happy to return to a non-conda approach. I was unable to figure one out - graphviz specifically caused problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And did you find out why it stopped working the first place? As grapviz wasn't really causing issues recently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error started appearing spontaneously:
https://readthedocs.org/projects/astroquery/builds/20444648/
"Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2n 7 Dec 2017. See: urllib3/urllib3#2168)"
My best read was that there is a problem caused by using old python3.8. We then had to upgrade to the new RTD configuration system, and then that caused problems with graphviz until I switched to the astropy conda-based version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeap, but graphviz can be installed into the image directly without adding conda into the picture. #2732 should fix it.