[PATCH] python3-pytest: Remove dependency on python3-toml


Richard Purdie
 

On Thu, 2023-02-02 at 13:52 +0100, Arnout Vandecappelle wrote:

On 02/02/2023 13:49, Arnout Vandecappelle via lists.openembedded.org wrote:
Since version 7.2.0 [1], pytest uses the "batteries included" tomllib
module for parsing pyproject.toml configuration files [2]. It is
therefore no longer necessary to have python3-toml in RDEPENDS.

[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

Signed-off-by: Arnout Vandecappelle <arnout@...>
---
This patch only applies to kirkstone and langdale branches. On master,
Python 3.11 is used which no longer needs tomli at all. On dunfell,
pytest is still on 5.3.5.
Meh, I copy-pasted the commit message from the kirkstone/langdale patch and
forgot to remove this bit. I assume I don't need to resend for that?
Correct, that won't make it into the applied commit.

Cheers,

Richard


Arnout Vandecappelle <arnout@...>
 

On 02/02/2023 13:49, Arnout Vandecappelle via lists.openembedded.org wrote:
Since version 7.2.0 [1], pytest uses the "batteries included" tomllib
module for parsing pyproject.toml configuration files [2]. It is
therefore no longer necessary to have python3-toml in RDEPENDS.
[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
Signed-off-by: Arnout Vandecappelle <arnout@...>
---
This patch only applies to kirkstone and langdale branches. On master,
Python 3.11 is used which no longer needs tomli at all. On dunfell,
pytest is still on 5.3.5.
Meh, I copy-pasted the commit message from the kirkstone/langdale patch and forgot to remove this bit. I assume I don't need to resend for that?

Regards,
Arnout

---
meta/recipes-devtools/python/python3-pytest_7.2.0.bb | 1 -
1 file changed, 1 deletion(-)
diff --git a/meta/recipes-devtools/python/python3-pytest_7.2.0.bb b/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
index 02fc55fdb0..c4d1c184cf 100644
--- a/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
+++ b/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
@@ -26,7 +26,6 @@ RDEPENDS:${PN}:class-target += " \
${PYTHON_PN}-py \
${PYTHON_PN}-setuptools \
${PYTHON_PN}-six \
- ${PYTHON_PN}-toml \
${PYTHON_PN}-wcwidth \
"


Arnout Vandecappelle <arnout@...>
 

Since version 7.2.0 [1], pytest uses the "batteries included" tomllib
module for parsing pyproject.toml configuration files [2]. It is
therefore no longer necessary to have python3-toml in RDEPENDS.

[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

Signed-off-by: Arnout Vandecappelle <arnout@...>
---
This patch only applies to kirkstone and langdale branches. On master,
Python 3.11 is used which no longer needs tomli at all. On dunfell,
pytest is still on 5.3.5.
---
meta/recipes-devtools/python/python3-pytest_7.2.0.bb | 1 -
1 file changed, 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-pytest_7.2.0.bb b/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
index 02fc55fdb0..c4d1c184cf 100644
--- a/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
+++ b/meta/recipes-devtools/python/python3-pytest_7.2.0.bb
@@ -26,7 +26,6 @@ RDEPENDS:${PN}:class-target += " \
${PYTHON_PN}-py \
${PYTHON_PN}-setuptools \
${PYTHON_PN}-six \
- ${PYTHON_PN}-toml \
${PYTHON_PN}-wcwidth \
"

--
2.39.1