tox icon indicating copy to clipboard operation
tox copied to clipboard

Use tomllib from the standard library on Python 3.11+

Open hroncok opened this issue 2 years ago • 4 comments

Hey, would you accept a pull request that uses tomllib rom the standard library on Python 3.11+ and fallbacks to tomli, instead of toml?

hroncok avatar Jul 21 '22 14:07 hroncok

I was testing the changes, so I opened a draft PR without a changelog entry to present what change I meant. If acceptable, I'll add the entry. https://github.com/tox-dev/tox/pull/2463

hroncok avatar Jul 21 '22 14:07 hroncok

Looks like tomli never had support for Python 2.7. I am not sure what are the plans about that in the future. tox4 will require Python 3.7 as a minimum, but I don't think it makes a lot of sense to drop support for Python 2.7 for tox 3 anymore.

jugmac00 avatar Jul 22 '22 20:07 jugmac00

I have not thought about that. Will fallback to toml. Not today though.

hroncok avatar Jul 22 '22 21:07 hroncok

Done.

hroncok avatar Jul 24 '22 21:07 hroncok