Skip to content
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

import tomli as tomllib for docs builds before Python 3.11 #219

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

zacharyburnett
Copy link
Collaborator

@zacharyburnett zacharyburnett commented Mar 9, 2023

tomli is implemented read-only as tomllib in Python 3.11

@zacharyburnett zacharyburnett self-assigned this Mar 9, 2023
Copy link
Collaborator

@WilliamJamieson WilliamJamieson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not need to change, instead the import in the conf.py needs to be modified to tomllib, see main...WilliamJamieson:bugfix/toml

@zacharyburnett zacharyburnett changed the title make tomli hard dependency for docs import tomli as tomllib for docs builds before Python 3.11 Mar 9, 2023
@WilliamJamieson
Copy link
Collaborator

Could you fix the code-style?

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (9f84606) 93.54% compared to head (0d5a192) 93.54%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #219   +/-   ##
=======================================
  Coverage   93.54%   93.54%           
=======================================
  Files           4        4           
  Lines         124      124           
=======================================
  Hits          116      116           
  Misses          8        8           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@WilliamJamieson WilliamJamieson merged commit c87ae34 into spacetelescope:main Apr 7, 2023
@zacharyburnett zacharyburnett deleted the tomli_docs branch April 7, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants