Closed wylliec closed 5 months ago
Thanks @wylliec for suggesting this!
Indeed I see that the toml
dependency for jupyterlab
is "tomli;python_version<\"3.11\""
, it would be great to use the same dependencies for jupytext
.
Hi @wylliec , would you mind to confirm that the PR above is what you were suggesting? Thanks!
Looks good to me! Thanks for making this change.
The
tomli
package is faster and more standards compliant than thetoml
package.tomli
is fully compatible with TOML v1.0.0, whiletoml
is not.tomli
is the fastest pure Python parser at 2.4x as fast astoml
.tomli
is used by major packages likejupyterlab
andpytest
.tomli
is even included in the Python Standard Library astomllib
starting in Python 3.11.The change should be straightforward. Replace all
import toml
withimport tomli
, and replace alltoml.load
withtomli.load
.tomli
is hosted on PyPI at https://pypi.org/project/tomli/