diff options
author | Geoff Parker <geoffrey.parker@arthrex.com> | 2022-11-28 14:32:33 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-11-29 14:07:52 -0800 |
commit | 0844ca9af97621a6adca289572fd57f7d15433d5 (patch) | |
tree | 2fb6da793910782436f9d4a0ad68906c6bcb8041 /meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch | |
parent | 4091a12ef94a5ede27d4c303d0eb2741499bb00f (diff) | |
download | meta-openembedded-0844ca9af97621a6adca289572fd57f7d15433d5.tar.gz |
python3-yappi: upgrade 1.3.6 -> 1.4.0, python 3.11 compatible
Update to 1.4.0 for python 3.11 compatibilty
Add patch to add upstream commit added after the release of 1.4.0
tarball. Adds python 3.11 to setup.py
Update 0001-Fix-imports-for-ptest.patch for patch fuzz and
removed hunk already in 1.4.0.
Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch b/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch index fa58897e68..274f6f527b 100644 --- a/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch +++ b/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch | |||
@@ -8,10 +8,9 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | |||
8 | tests/test_asyncio.py | 2 +- | 8 | tests/test_asyncio.py | 2 +- |
9 | tests/test_asyncio_context_vars.py | 2 +- | 9 | tests/test_asyncio_context_vars.py | 2 +- |
10 | tests/test_functionality.py | 2 +- | 10 | tests/test_functionality.py | 2 +- |
11 | tests/test_gevent.py | 2 +- | ||
12 | tests/test_hooks.py | 2 +- | 11 | tests/test_hooks.py | 2 +- |
13 | tests/test_tags.py | 2 +- | 12 | tests/test_tags.py | 2 +- |
14 | 6 files changed, 6 insertions(+), 6 deletions(-) | 13 | 5 files changed, 6 insertions(+), 6 deletions(-) |
15 | 14 | ||
16 | --- a/tests/test_asyncio.py | 15 | --- a/tests/test_asyncio.py |
17 | +++ b/tests/test_asyncio.py | 16 | +++ b/tests/test_asyncio.py |
@@ -23,7 +22,7 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | |||
23 | +from .utils import YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io | 22 | +from .utils import YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io |
24 | 23 | ||
25 | 24 | ||
26 | @asyncio.coroutine | 25 | async def async_sleep(sec): |
27 | --- a/tests/test_asyncio_context_vars.py | 26 | --- a/tests/test_asyncio_context_vars.py |
28 | +++ b/tests/test_asyncio_context_vars.py | 27 | +++ b/tests/test_asyncio_context_vars.py |
29 | @@ -5,7 +5,7 @@ import contextvars | 28 | @@ -5,7 +5,7 @@ import contextvars |
@@ -3870,17 +3869,6 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | |||
3870 | + # import sys;sys.argv = ['', 'BasicUsage.test_run_as_script'] | 3869 | + # import sys;sys.argv = ['', 'BasicUsage.test_run_as_script'] |
3871 | + # import sys;sys.argv = ['', 'MultithreadedScenarios.test_subsequent_profile'] | 3870 | + # import sys;sys.argv = ['', 'MultithreadedScenarios.test_subsequent_profile'] |
3872 | + unittest.main() | 3871 | + unittest.main() |
3873 | --- a/tests/test_gevent.py | ||
3874 | +++ b/tests/test_gevent.py | ||
3875 | @@ -4,7 +4,7 @@ import yappi | ||
3876 | import gevent | ||
3877 | from gevent.event import Event | ||
3878 | import threading | ||
3879 | -from utils import ( | ||
3880 | +from .utils import ( | ||
3881 | YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io, | ||
3882 | burn_io_gevent | ||
3883 | ) | ||
3884 | --- a/tests/test_hooks.py | 3872 | --- a/tests/test_hooks.py |
3885 | +++ b/tests/test_hooks.py | 3873 | +++ b/tests/test_hooks.py |
3886 | @@ -5,7 +5,7 @@ import unittest | 3874 | @@ -5,7 +5,7 @@ import unittest |