Skip to content

why require tomli on Python 3.11/3.12? #2101

@matrey

Description

@matrey

The most recent release adds a dependency on tomli for Python < 3.13

https://github.com/confluentinc/confluent-kafka-python/blob/master/requirements/requirements.txt reads

tomli; python_version < "3.13"

2 questions about that:

1/ seems like only 2 places in code need toml capabilities:

  • docs/conf.py
  • tools/wheels/install-macos-python-required-by-cibuildwheel.py

But neither seem relevant to "runtime", end user use?

2/ Why < 3.13?

tomllib is shipped in standard lib since 3.11

cf https://docs.python.org/3/library/tomllib.html

tomllib — Parse TOML files
Added in version 3.11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueHelpful tag for inviting new users to contributepriority:highMaintainer triage tag for indicating high impact or criticality issuesquestionA question about how to use or about expected behavior of the librarysize:smallMaintainer triage tag for indicating change required is particularly small

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions