Skip to contentSkip to conversation

package/python-pytest: remove runtime dependency on python-toml

PATCH In review Arnout Vandecappelle 2 participants 2 messages Feb 2, 2023 – Feb 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-pytest: remove runtime dependency on python-toml

Since version 7.2 [1], with Python 3.11+ pytest no longer uses tomli to parse pyproject.toml but instead uses tomllib which is part of Python itself [2]. Note that toml was replaced with tomli in version 7.0, so the dependency was anyway incorrect.

Note that tomllib is unconditionally installed as part of Python 3.11, there is no PYTHON3_LIBTOML option or anything like that that needs to be selected.

[1] https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23
[2] https://github.com/pytest-dev/pytest/pull/9741

---
I can't be bother with sending a patch changing toml to tomli for 2022.11 - it's going EOL in two months anyway, and apparently nobody noticed...

---
 package/python-pytest/Config.in | 1 -
 1 file changed, 1 deletion(-)
package/python-pytest/Config.in +0 -1
index c3956c76d2..9bbc9ea2d2 100644
@@ -5,7 +5,6 @@ config BR2_PACKAGE_PYTHON_PYTEST
 	select BR2_PACKAGE_PYTHON_PACKAGING # runtime
 	select BR2_PACKAGE_PYTHON_PLUGGY # runtime
 	select BR2_PACKAGE_PYTHON_PY # runtime
-	select BR2_PACKAGE_PYTHON_TOML # runtime
 	select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
 	help
 	  pytest is a framework that makes building simple and scalable
Signature · 6 lines
2.39.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Arnout Vandecappelle

Since version 7.2 [1], with Python 3.11+ pytest no longer uses tomli to parse pyproject.toml but instead uses tomllib which is part of Python itself [2]. Note that toml was replaced with tomli in version 7.0, so the dependency was anyway incorrect.

Quoted 8 lines

Note that tomllib is unconditionally installed as part of Python 3.11, there is no PYTHON3_LIBTOML option or anything like that that needs to be selected.

[1] https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23
[2] https://github.com/pytest-dev/pytest/pull/9741

Quoted 23 lines

---
I can't be bother with sending a patch changing toml to tomli for 2022.11 - it's going EOL in two months anyway, and apparently nobody noticed...

---
 package/python-pytest/Config.in | 1 -
 1 file changed, 1 deletion(-)
package/python-pytest/Config.in +0 -2
index c3956c76d2..9bbc9ea2d2 100644
@@ -5,7 +5,6 @@ config BR2_PACKAGE_PYTHON_PYTEST
        select BR2_PACKAGE_PYTHON_PACKAGING # runtime
        select BR2_PACKAGE_PYTHON_PLUGGY # runtime
        select BR2_PACKAGE_PYTHON_PY # runtime
-       select BR2_PACKAGE_PYTHON_TOML # runtime
        select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
        help
          pytest is a framework that makes building simple and scalable
--

2.39.1

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot