-
Notifications
You must be signed in to change notification settings - Fork 274
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
Convert to using tomli #3830
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
@henryiii Thanks for the issue -- and I agree, this is the right thing to do. Do you happen to know if there is an idiomatic way to handle it for existing installations that may already have |
Sadly, yes: https://github.com/pypa/build/blob/5d711b4cb24b2d9ed0884a5a9ba54252440899a2/src/build/__init__.py#L44-L49 Though otherwise the PyPA completely moved over to tomli for pip, setuptools, etc (except for build, we needed to keep it as bootstrappable as possible so that abomination is still in there). Do you happen know what non-optional requirements in install_requires are actually optional? |
(That's going to be extra fun once it has a |
@henryiii I was about to say "none", but after a more carful check I think I was aware of PEP 680 being accepted and the
I'm curious what's the gain we expect here ? Why not just move from a hard dependency to another ? |
I'd highly recommend the hard dependency. There's not much here: Ahh, it looks like a lot got added for 4.0. And 3.x doesn't support matplotlib 3.5. Okay. :/ |
Is IPython actually required? |
I thought it was, but I don't see it being imported at the top-level in any module actually. |
The library currently depends on the dead "toml" library, instead of the "tomli" library (which was just accepted into the stdlib as "tomllib" for Python 3.11. It should be a really easy swap; it's almost the same API as toml, it just expects binary files instead of unicode ones if using
toml{i,lib}.load
.loads
is the same. Writing is a separate library.Working on pyodide at pyodide/pyodide#2234 and don't want to have to port a dead library.
The text was updated successfully, but these errors were encountered: