diff mbox series

[05/37] python3-pytest: clean up RDEPENDS

Message ID 20240723145137.74198-5-ross.burton@arm.com
State Accepted, archived
Commit 0aee9aa7b70667fefe898f6a9019a82b004da391
Headers show
Series [01/37] python3: add dependency on -compression to -core | expand

Commit Message

Ross Burton July 23, 2024, 2:51 p.m. UTC
These dependencies are only used in development:
- attrs
- setuptools

These dependencies are obsolete:
- atomicwrites removed 7.2.0
- importlib-metadata removed in 5.1.0
- more-itertools removed 6.1.0
- pathlib2 removed 6.2.2
- py removed in 7.2
- six removed in 5.0.0
- tomllib not needed as we have Python 3.11+
- wcwidth removed in 6.0.0

This removals now means that python3-xml has to be added explicitly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-devtools/python/python3-pytest_8.2.2.bb | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

Comments

Joao Marcos Costa July 24, 2024, 9:11 a.m. UTC | #1
Hello, Ross

On 7/23/24 16:51, Ross Burton wrote:
> These dependencies are only used in development:
> - attrs
> - setuptools
>
> These dependencies are obsolete:
> - atomicwrites removed 7.2.0
> - importlib-metadata removed in 5.1.0
> - more-itertools removed 6.1.0
> - pathlib2 removed 6.2.2
> - py removed in 7.2
> - six removed in 5.0.0
> - tomllib not needed as we have Python 3.11+
> - wcwidth removed in 6.0.0

[...]

There are a few errors potentially related to tomllib removal in the 
autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6836/steps/13/logs/stdio

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6659/steps/13/logs/stdio

Could you please take a look at them? Thanks!
Ross Burton July 24, 2024, 11:03 a.m. UTC | #2
> On 24 Jul 2024, at 10:11, Joao Marcos Costa <joaomarcos.costa@bootlin.com> wrote:
> There are a few errors potentially related to tomllib removal in the autobuilder:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6836/steps/13/logs/stdio
> https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6659/steps/13/logs/stdio
> Could you please take a look at them? Thanks!

Yes, v3 sent for the pytest recipe.

The cleanup was removing toml and tomli libraries from dependencies and I obviously got confused with tomllib (which is a core library) which is why this broke.

Ross
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-pytest_8.2.2.bb b/meta/recipes-devtools/python/python3-pytest_8.2.2.bb
index 531f40df81d..a5f6f7358bf 100644
--- a/meta/recipes-devtools/python/python3-pytest_8.2.2.bb
+++ b/meta/recipes-devtools/python/python3-pytest_8.2.2.bb
@@ -12,22 +12,13 @@  DEPENDS += "python3-setuptools-scm-native"
 inherit update-alternatives pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += " \
-    python3-atomicwrites \
-    python3-attrs \
+    python3-xml \
     python3-debugger \
     python3-doctest \
-    python3-importlib-metadata \
     python3-iniconfig \
     python3-json \
-    python3-more-itertools \
     python3-packaging \
-    python3-pathlib2 \
     python3-pluggy \
-    python3-py \
-    python3-setuptools \
-    python3-six \
-    python3-tomllib \
-    python3-wcwidth \
 "
 
 ALTERNATIVE:${PN} += "py.test pytest"