]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3-hypothesis: revert back to 6.46.11
authorChen Qi <Qi.Chen@windriver.com>
Thu, 18 Aug 2022 03:13:05 +0000 (20:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Aug 2022 14:48:52 +0000 (15:48 +0100)
commit37c5b171d7de25b131e77b80d37f8481308bd6fe
tree443c994f5c57725c0bc9d500f7ef41e11a4e5cb5
parentdf312a4c8ad84a9d12c4eec94d48a66420c8988b
python3-hypothesis: revert back to 6.46.11

This package was broken since it was upgraded to 6.48, because
it started using 'exceptiongroup' since then, which is missing
in any meta layer. On target, when importing hypothesis, we meet
the following error:

  Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/hypothesis/internal/compat.py", line 18, in <module>
  BaseExceptionGroup = BaseExceptionGroup
  NameError: name 'BaseExceptionGroup' is not defined. Did you mean: 'BaseException'?
  ModuleNotFoundError: No module named 'exceptiongroup'

The related codes as below:
try:
    BaseExceptionGroup = BaseExceptionGroup
    ExceptionGroup = ExceptionGroup  # pragma: no cover
except NameError:
    from exceptiongroup import (
        BaseExceptionGroup as BaseExceptionGroup,
        ExceptionGroup as ExceptionGroup,
    )

We can see that it tries to use ExceptionGroup and falls back to
use an import from exceptiongroup module.

Looking at the https://github.com/agronholm/exceptiongroup, it says:
"""
This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.
"""

So instead of adding a new recipe for exception group, it might be
better to revert to a working version and wait for python 3.11 to release.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb [moved from meta/recipes-devtools/python/python3-hypothesis_6.54.1.bb with 91% similarity]