pyupio / dparse

A parser for Python dependency files
MIT License
61 stars 23 forks source link

Use the modern tomli/tomllib to parse TOML files #62

Closed mgorny closed 1 year ago

mgorny commented 1 year ago

Replace the unmaintained toml package with the modern combination of built-in tomllib in Python 3.11+, and its drop-in replacement tomli for older Python versions. This provides full and correct support for TOML 1.0 that toml does not provide. Unfortunately, they do not support overriding dict class but that does not seem to be a major problem, given that TOML tables are not ordered according to the specification.

oz123 commented 1 year ago

I would be very happy if this is merged, as it will allow us to drop toml from the vendored dependencies we ship to our pipenv users.

mgorny commented 1 year ago

Thank you!