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

ENH: use stdlib tomllib when available (Python 3.11) #3954

Closed
neutrinoceros opened this issue Jun 1, 2022 · 1 comment · Fixed by #3956
Closed

ENH: use stdlib tomllib when available (Python 3.11) #3954

neutrinoceros opened this issue Jun 1, 2022 · 1 comment · Fixed by #3956
Labels
enhancement Making something better

Comments

@neutrinoceros
Copy link
Member

Bug report

Bug summary

tomli is currently a hard dependency third party, but it's been integrated to the standard library as tomllib and will be available in Python 3.11
Because it's the same underlying implementation, this means we should be able to use tomli as a "backport" of tomllib in Python 3.10 and older as

import sys

if sys.version_info >= (3, 11):
    import tomllib
else:
    import tomli as tomllib

However I'd rather not implement this just now, because Python 3.11 isn't testable yet: we depend on numpy for this. Here's the upstream PR to keep track of numpy/numpy#21308

@neutrinoceros neutrinoceros added the enhancement Making something better label Jun 1, 2022
@neutrinoceros
Copy link
Member Author

neutrinoceros commented Jun 2, 2022

update: numpy just started testing with Python 3.11, next up is kiwi solver (build time requirement, required by setuptools):
nucleic/kiwi#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making something better
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant