Skip to content

Consider switching from toml to tomli #59

Closed

Description

@sobolevn

toml was last released on 02.11.2020: https://pypi.org/project/toml/#history
There are multiple known bugs: https://github.com/uiri/toml/issues

Maintainer is not supporting their project: uiri/toml#361

Multiple big projects like mypy, black, typeshed have already switched.

The transition seems to be rather simple: basically swap import toml with import tomli and use a proper encoding when calling loads.

Related: https://www.python.org/dev/peps/pep-0680/

If this is something you think should be done, I can send a PR.

Activity

  1. hugovk commented on Mar 20, 2022

    @hugovk
    Member

    PEP 680 has been accepted and will be in Python 3.11 🎉

    I think it would be a good idea to switch from from toml to tomli, it will make it easier to switch to the stdlib tomllib at some point in the future.

  2. DanielNoord commented on Jul 8, 2022

    @DanielNoord
    Contributor

    Sorry @sobolevn, I didn't notice the last sentence of your post. Not sure if you were already working on this, but I have created a PR which fixes this in #67.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions