-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Switch toml
TOML library for tomli
#2301
Conversation
Sweet - I am all for this. I've been watching the pip issue and was planning to do this once accepted. It's been verbally so I am happy to go this route too. |
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.
Nice. LGTM especially with the test.toml being loaded with new syntax.
While I agree with Hynek's article, if the maintainer of a library we want to use is explicitly asking us for an upper bound then I think we should respect that. Thanks for your work on tomli, @hukkin. |
e3603fa
to
ec56588
Compare
toml unfortunately has a lack of maintainership issue right now. It's evident by the fact toml only supports TOML v0.5.0. TOML v1.0.0 has been recently released and right now Black crashes hard on its usage. tomli is a brand new parse only TOML library. It supports TOML v1.0.0. Although TBH we're switching to this one mostly because pip is doing the same. *The upper bound was included at the library maintainer's request. Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
ec56588
to
7e1acb7
Compare
Damn, I can't re-approve this. |
Now you can! |
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.
One small step for Black, one giant leap for Python kind.
I totally forgot about this PR after updating it, merging! edit: you can also mark a PR review as stale fyi |
black recently dropped this requirement (psf/black#2301), so this results in an error if this is run with a newer version of black.
toml
unfortunately has a lack of maintainership issue right now. It'sevident by the fact
toml
only supports TOML v0.5.0. TOML v1.0.0 hasbeen recently released and right now Black crashes hard on its usage.
tomli
is a brand new parse only TOML library. It supports TOMLv1.0.0. Although TBH we're switching to this one mostly because
pip is doing the same.
Blocked on pypa/pip#10035, fixes #2280.