FS#76172 - [python-tox] Missing toml -> tomli dependency change in 3.26.0-1

Attached to Project: Community Packages
Opened by Florian Bruhin (The-Compiler) - Tuesday, 11 October 2022, 12:00 GMT
Last edited by Filipe Laíns (FFY00) - Wednesday, 12 October 2022, 05:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Filipe Laíns (FFY00)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

According to the upstream changelog: https://tox.wiki/en/latest/changelog.html

> Use tomllib on Python 3.11 or later and tomli instead of toml library on lower versions

See https://github.com/tox-dev/tox/pull/2463.

However, the 3.26.0 update didn't adjust the dependency, still depending on python-toml:

https://github.com/archlinux/svntogit-community/commit/41ee5daa831af087ba56319172dd6fa7fabdbada

Thus, running tox in a clean environment now fails:

```
Traceback (most recent call last):
[...]
File "/usr/lib/python3.10/site-packages/tox/__init__.py", line 32, in <module>
from .session import cmdline # isort:skip
File "/usr/lib/python3.10/site-packages/tox/session/__init__.py", line 22, in <module>
from tox.config import INTERRUPT_TIMEOUT, SUICIDE_TIMEOUT, TERMINATE_TIMEOUT, parseconfig
File "/usr/lib/python3.10/site-packages/tox/config/__init__.py", line 30, in <module>
import tomli as toml_loader
ModuleNotFoundError: No module named 'tomli'
```
This task depends upon

Closed by  Filipe Laíns (FFY00)
Wednesday, 12 October 2022, 05:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-tox 3.26.0-2

Loading...