python-pytest: upgrade 3.4.2 -> 5.1.1
PATCH 1/1 python-pytest: upgrade 3.4.2 -> 5.1.1
Refresh patch: 0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
Remove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
---
.../recipes-devtools/python/python-pytest.inc | 8 +--
...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------
.../python-pytest/pytest_version_fix.patch | 51 -------------------
...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0
...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0
5 files changed, 24 insertions(+), 71 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch
rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb => python-pytest_5.1.1.bb} (100%)
rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)meta-python/recipes-devtools/python/python-pytest.inc +4 -4
@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2" -SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] = "117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5" +SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] = "c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88" SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \ - file://pytest_version_fix.patch " + " inherit update-alternatives
meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch +20 -16
@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:00 2001 -From: Derek Straka <[email protected]> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001 +From: Yuan Chao <[email protected]> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file for setuptools-scm
@@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created Upstream-Status: Inappropriate [oe specific] Signed-off-by: Derek Straka <[email protected]> + +Signed-off-by: Yuan Chao <[email protected]> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ + def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +
meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch deleted +0 -51
51 lines not on this page · raw message
meta-python/recipes-devtools/python/python-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb +0 -0
meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb +0 -0
Signature · 1 line
2.17.1
Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'atomicwrites' 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'atomicwrites' 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#
Please prove a recipe for the missing module.
Regards,
Chanakya
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
Refresh patch: 0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
Remove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
---
.../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------
.../python-pytest/pytest_version_fix.patch | 51 -------------------
...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0 ...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0
5 files changed, 24 insertions(+), 71 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch
rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb => python-pytest_5.1.1.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)meta-python/recipes-devtools/python/python-pytest.inc +4 -4
@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2" -SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] = "117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5" +SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] = "c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88" SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \ - file://pytest_version_fix.patch " + " inherit update-alternatives
meta-python/recipes-devtools/python/python-pytest/0001-setup.py-re renamed from meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch +0 -0
+++ move-the-setup_requires-for-setuptools-scm.patch
@@ -1,7 +1,7 @@
-From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:00 2001 -From: Derek Straka <[email protected]>
-Date: Tue, 19 Dec 2017 11:36:39 -0500
-Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001 +From: Yuan Chao <[email protected]>
+Date: Wed, 28 Aug 2019 16:12:27 +0900
+Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for
setuptools-scm
The setup_requires argument forces the download of the egg file for setuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Yuan Chao <[email protected]>
---
- setup.py | 1 -
- 1 file changed, 1 deletion(-)
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
-index 3eb38ef..1163202 100644
+index adbafb5..75fdd09 100644
--- a/setup.py
+++ b/setup.py
-@@ -82,7 +82,6 @@ def main():
- keywords="test unittest",
- cmdclass={'test': PyTest},
- # the following should be enabled for release
-- setup_requires=['setuptools-scm'],
- python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
- install_requires=install_requires,
- extras_require=extras_require,
+@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [
+ def main():
+ setup(
+ use_scm_version={"write_to": "src/_pytest/_version.py"},
+- setup_requires=["setuptools-scm", "setuptools>=40.0"],
++ setup_requires=["setuptools>=40.0"],
+ package_dir={"": "src"},
+ extras_require={+ "testing": [
--
-2.7.4
+2.17.1
+
meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch deleted +0 -50
50 lines not on this page · raw message
meta-python/recipes-devtools/python/python-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb +0 -0
meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb +0 -0
--
2.17.1
Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
Chao
Quoted 298 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by Yuan Chao <[email protected]>--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 ------------------- ...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0 ...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0 5 files changed, 24 insertions(+), 71 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb =>python-pytest_5.1.1.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remove-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remove-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remove-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-re +++ move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +3
-0+From: Yuan Chao <[email protected]> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by Derek Straka <[email protected]>meta-python/recipes-devtools/python/python-pytest.inc +16
-12+ +Signed-off-by: Yuan Chao <[email protected]> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ + def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patc h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patc h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patc h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-11@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <[email protected]> - -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command
-@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],meta-python/recipes-devtools/python/python-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb +0
-0meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb +0
-1--2.17.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya
-----Original Message-----
From: Yuan, Chao [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
Chao
Quoted 307 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by Yuan Chao <[email protected]>--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 ------------------- ...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0 ...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0 5 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb => python-pytest_5.1.1.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +3
-0+From: Yuan Chao <[email protected]> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by Derek Straka <[email protected]>meta-python/recipes-devtools/python/python-pytest.inc +15
-12+ +Signed-off-by: Yuan Chao <[email protected]> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-11@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <[email protected]> - -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],(quoted diff) +0
-0a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb(quoted diff) +0
-0a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb --
2.17.1--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu, please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
In the future, please runtime test all your changes to prevent this from happening from again. We all depend on these packages working.
Quoted 342 lines · Chanakya
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya-----Original Message-----
From: Yuan, Chao [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
ChaoQuoted 33 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: FileQuoted 10 lines
"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 24 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: FileQuoted 10 lines
"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 224 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by Yuan Chao <[email protected]>--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 ------------------- ...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0 ...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0 5 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb => python-pytest_5.1.1.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +3
-0+From: Yuan Chao <[email protected]> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by Derek Straka <[email protected]>meta-python/recipes-devtools/python/python-pytest.inc +15
-12+ +Signed-off-by: Yuan Chao <[email protected]> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-11@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <[email protected]> - -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb --
2.17.1Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
I see new patches on the mailing list. Thank you.
Quoted 355 lines · Tim Orling
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu, please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
In the future, please runtime test all your changes to prevent this from happening from again. We all depend on these packages working.
Quoted 344 lines · Chanakya
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya-----Original Message-----
From: Yuan, Chao [mailto:[email protected]]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
ChaoQuoted 14 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
Quoted 7 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent calllast):
Quoted 12 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: FileQuoted 10 lines
"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 24 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: FileQuoted 10 lines
"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 70 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by Yuan Chao <[email protected]>--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 ------------------- ...pytest_3.4.2.bb => python-pytest_5.1.1.bb} | 0 ...ytest_3.4.2.bb => python3-pytest_5.1.1.bb} | 0 5 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb => python-pytest_5.1.1.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb => python3-pytest_5.1.1.bb} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"Quoted 2 lines
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch\
Quoted 152 lines
meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +3
-0+From: Yuan Chao <[email protected]> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by Derek Straka <[email protected]>meta-python/recipes-devtools/python/python-pytest.inc +15
-12+ +Signed-off-by: Yuan Chao <[email protected]> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-11@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <[email protected]> - -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb --
2.17.1Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hello Chao,
Looks like there are multiple runtime modules missing. Here is the log with the latest packages:
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# 02:30:39 ERRR0/v3rn test_rt_smoke.py#_test @hxj7-eced: evaluation errored
I think all missing runtime module should be tested prior to upgrade of pytest version.
Regards,
Chanakya
From: Tim Orling [mailto:[email protected]]
Sent: Wednesday, September 11, 2019 7:40 PM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
I see new patches on the mailing list. Thank you.
On Wed, Sep 11, 2019 at 7:38 PM Tim Orling <[email protected]<mailto:[email protected]>> wrote:
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu, please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
In the future, please runtime test all your changes to prevent this from happening from again. We all depend on these packages working.
On Tue, Sep 10, 2019 at 1:25 PM Koppolu, Chanakya <[email protected]<mailto:[email protected]>> wrote:
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya
-----Original Message-----
From: Yuan, Chao [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
Chao
Quoted 301 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2
-> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To: [email protected]<mailto:[email protected]>
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 ->
5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by Yuan Chao <[email protected]<mailto:[email protected]>>--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 ------------------- ...pytest_3.4.2.bb<http://pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} | 0 ...ytest_3.4.2.bb<http://ytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} | 0 5 files changed, 24 insertions(+), 71 deletions(-) delete mode100644
meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p
atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb<http://python-pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb<http://python3-pytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} (100%)meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4<file:///\\LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4>" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2<file:///\\LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2>"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch<file:///\\0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch> \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch<file:///\\pytest_version_fix.patch> " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]<mailto:[email protected]>> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +3
-0+From: Yuan Chao <[email protected]<mailto:[email protected]>> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]meta-python/recipes-devtools/python/python-pytest.inc +15
-12+ +Signed-off-by: Yuan Chao <[email protected]<mailto:[email protected]>> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-11@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <[email protected]<mailto:[email protected]>> - -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://python-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb> similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://python-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb> diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://python3-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb> similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://python3-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb> --
2.17.1
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hello Chao,
Any update on adding the missing module 'importlib_metadata' and testing for any more missing modules for the pytest upgrade?
Regards,
Chanakya
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koppolu, Chanakya
Sent: Thursday, September 12, 2019 5:59 PM
To: Tim Orling <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
Hello Chao,
Looks like there are multiple runtime modules missing. Here is the log with the latest packages:
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# 02:30:39 ERRR0/v3rn test_rt_smoke.py#_test @hxj7-eced: evaluation errored
I think all missing runtime module should be tested prior to upgrade of pytest version.
Regards,
Chanakya
From: Tim Orling [mailto:[email protected]]
Sent: Wednesday, September 11, 2019 7:40 PM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
I see new patches on the mailing list. Thank you.
On Wed, Sep 11, 2019 at 7:38 PM Tim Orling <[email protected]<mailto:[email protected]>> wrote:
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu, please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
In the future, please runtime test all your changes to prevent this from happening from again. We all depend on these packages working.
On Tue, Sep 10, 2019 at 1:25 PM Koppolu, Chanakya <[email protected]<mailto:[email protected]>> wrote:
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya
-----Original Message-----
From: Yuan, Chao [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1
Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
Chao
Quoted 326 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]<mailto:[email protected]>>; [email protected]<mailto:openembedded-devel@li sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From:
[email protected]<mailto:openembedded- [email protected]> [mailto:[email protected]<mailto:opene [email protected]>] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To:
[email protected]<mailto:openembedded-devel@li sts.openembedded.org>
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by: Yuan Chao <[email protected]<mailto:[email protected]>>
--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 -------------------...pytest_3.4.2.bb<http://pytest_3.4.2.bb> =>
python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} | 0 ...ytest_3.4.2.bb<http://ytest_3.4.2.bb>
=> python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} | 05 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb<http://pyt hon-pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb<http://py thon3-pytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4<file:///\\LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4>" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2<file:///\\LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2>"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch<file:///\\0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch> \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch<file:///\\pytest_version_fix.patch> " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]<mailto:[email protected]>> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +4
-0+From: Yuan Chao +<[email protected]<mailto:[email protected]>> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by: Derek Straka
<[email protected]<mailto:[email protected]>>meta-python/recipes-devtools/python/python-pytest.inc +16
-12+ +Signed-off-by: Yuan Chao +<[email protected]<mailto:[email protected]>> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-8@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster<[email protected]<mailto:[email protected]>>
meta-python/recipes-devtools/python/python-pytest.inc +0
-3- -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://py thon-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://py thon-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://pyth on-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://pyth on-pytest_5.1.1.bb>
diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://p ython3-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://p ython3-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://pyt hon3-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://pyt hon3-pytest_5.1.1.bb>
--
2.17.1
Quoted 7 lines
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:Openembedded-devel@li sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Yuan
I see that the issue is not fully fixed yet as seen here
https://github.com/openembedded/meta-openembedded/issues/144
Please see if this can be fixed as soon as possible, or we have to revert these recipes, I will wait for your response
Thanks
-Khem
Quoted 458 lines · Chanakya
Hello Chao,
Any update on adding the missing module '
importlib_metadata' and testing for any more missing modules for the pytest upgrade?Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koppolu, Chanakya
Sent: Thursday, September 12, 2019 5:59 PM
To: Tim Orling <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello Chao,
Looks like there are multiple runtime modules missing. Here is the log with the latest packages:
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last): 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import register_assert_rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module> 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import importlib_metadata 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named 'importlib_metadata' 02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# 02:30:39 ERRR0/v3rn test_rt_smoke.py#_test @hxj7-eced: evaluation erroredI think all missing runtime module should be tested prior to upgrade of pytest version.
Regards,
ChanakyaFrom: Tim Orling [mailto:[email protected]]
Sent: Wednesday, September 11, 2019 7:40 PM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1I see new patches on the mailing list. Thank you.
On Wed, Sep 11, 2019 at 7:38 PM Tim Orling <[email protected]<mailto:[email protected]>> wrote:
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu, please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.In the future, please runtime test all your changes to prevent this from happening from again. We all depend on these packages working.
On Tue, Sep 10, 2019 at 1:25 PM Koppolu, Chanakya <[email protected]<mailto:[email protected]>> wrote:
Hi Chao,I tried your new patch and it doesn't fix the issue. I still see the same module('atomicwrites') missing in python modules.
Regards,
Chanakya-----Original Message-----
From: Yuan, Chao [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it again.
Regards,
ChaoQuoted 326 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]<mailto:[email protected]>>; [email protected]<mailto:openembedded-devel@li sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module> 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No modulenamed 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From:
[email protected]<mailto:openembedded- [email protected]> [mailto:[email protected]<mailto:opene [email protected]>] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To:
[email protected]<mailto:openembedded-devel@li sts.openembedded.org>
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by: Yuan Chao <[email protected]<mailto:[email protected]>>
--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 +++++++------ .../python-pytest/pytest_version_fix.patch | 51 -------------------...pytest_3.4.2.bb<http://pytest_3.4.2.bb> =>
python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} | 0 ...ytest_3.4.2.bb<http://ytest_3.4.2.bb>
=> python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} | 05 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.p atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb<http://pyt hon-pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb<http://py thon3-pytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} (100%)
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4<file:///\\LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4>" +LIC_FILES_CHKSUM = "file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2<file:///\\LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2>"
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"
SRC_URI_append= "
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch<file:///\\0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch> \meta-python/recipes-devtools/python/python-pytest.inc +1
-1- file://pytest_version_fix.patch<file:///\\pytest_version_fix.patch> " + " inherit update-alternativesdiff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-remo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- +++ re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +1
-3-From: Derek Straka <[email protected]<mailto:[email protected]>> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for +From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python-pytest.inc +4
-0+From: Yuan Chao +<[email protected]<mailto:[email protected]>> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by: Derek Straka
<[email protected]<mailto:[email protected]>>meta-python/recipes-devtools/python/python-pytest.inc +16
-12+ +Signed-off-by: Yuan Chao +<[email protected]<mailto:[email protected]>> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-8@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster<[email protected]<mailto:[email protected]>>
meta-python/recipes-devtools/python/python-pytest.inc +0
-3- -Index: pytest-3.2.2/setup.py -===================================================================
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://py thon-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://py thon-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://pyth on-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://pyth on-pytest_5.1.1.bb>
diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://p ython3-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://p ython3-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://pyt hon3-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://pyt hon3-pytest_5.1.1.bb>
--
2.17.1Quoted 7 lines
--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:Openembedded-devel@li sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Raj, Chanakya
I'm trying to fix this.
It will take times since it has to add some new recipe.
Regards,
Yuan
Quoted 633 lines
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, September 19, 2019 3:27 AM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Yuan
I see that the issue is not fully fixed yet as seen here
https://github.com/openembedded/meta-openembedded/issues/144Please see if this can be fixed as soon as possible, or we have to revert these recipes, I will wait for your response
Thanks
-KhemQuoted 4 lines · Chanakya
Hello Chao,
Any update on adding the missing module '
importlib_metadata' and testingfor any more missing modules for the pytest upgrade?
Quoted 14 lines
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koppolu, Chanakya
Sent: Thursday, September 12, 2019 5:59 PM
To: Tim Orling <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Quoted 3 lines
Hello Chao,
Looks like there are multiple runtime modules missing. Here is the log with the
latest packages:
Quoted 2 lines
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last):
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_mainQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: "
__main__",mod_spec)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 85, in_run_codeQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console:
exec(code, run_globals)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewriteQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import
importlib_metadataQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named '
importlib_metadata'Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_mainQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: "
__main__",mod_spec)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 85, in_run_codeQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console:
exec(code, run_globals)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewriteQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import
importlib_metadataQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named '
importlib_metadata'Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#
Quoted 1 line
02:30:39 ERRR0/v3rn test_rt_smoke.py#_test @hxj7-eced: evaluation
errored
Quoted 2 lines
I think all missing runtime module should be tested prior to upgrade of pytest
version.
Quoted 15 lines
Regards,
ChanakyaFrom: Tim Orling [mailto:[email protected]]
Sent: Wednesday, September 11, 2019 7:40 PM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1I see new patches on the mailing list. Thank you.
On Wed, Sep 11, 2019 at 7:38 PM Tim Orling
Quoted 1 line · <[email protected]<mailto:[email protected]>> wrote:
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu,
please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
Quoted 2 lines
In the future, please runtime test all your changes to prevent this from
happening from again. We all depend on these packages working.
Quoted 2 lines
On Tue, Sep 10, 2019 at 1:25 PM Koppolu, Chanakya
Quoted 3 lines · <[email protected]<mailto:[email protected]>> wrote:
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same
module('atomicwrites') missing in python modules.
Quoted 11 lines
Regards,
Chanakya-----Original Message-----
From: Yuan, Chao [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>;[email protected]<mailto:openembedded-devel @li
Quoted 7 lines
sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it
again.
Quoted 11 lines
Regards,
ChaoQuoted 7 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]<mailto:[email protected]>>;[email protected]<mailto:openembedded-devel @
Quoted 32 lines
Quoted 32 lines
li
sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_testQuoted 8 lines
Quoted 8 lines
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 26 lines
Quoted 26 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: Nomodule named 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_testQuoted 8 lines
Quoted 8 lines
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewrite
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 12 lines
Quoted 12 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: Nomodule named 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Quoted 8 lines
Quoted 8 lines
Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From:[email protected]<mailto:openembedde
Quoted 2 lines
Quoted 2 lines
[mailto:[email protected]<mailto:ope
Quoted 5 lines
Quoted 5 lines
ne [email protected]>] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To:[email protected]<mailto:openembedded-devel @
Quoted 38 lines
Quoted 38 lines
li
sts.openembedded.org>
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by: Yuan Chao <[email protected]<mailto:[email protected]>>
--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 ++++++++------ .../python-pytest/pytest_version_fix.patch | 51 -------------------...pytest_3.4.2.bb<http://pytest_3.4.2.bb> =>
python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} | 0 ...ytest_3.4.2.bb<http://ytest_3.4.2.bb>
=> python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} | 05 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix .p
atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb<http://p yt
hon-pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb<http:// py
thon3-pytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} (100%)Quoted 11 lines
meta-python/recipes-devtools/python/python-pytest.inc line 4
Quoted 11 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4<file:///\\LICENSE;m d5=c39b24965f4aef64222cb35de9d47cc4>"
Quoted 2 lines
meta-python/recipes-devtools/python/python-pytest.inc line 6
Quoted 2 lines
meta-python/recipes-devtools/python/python-pytest.inc +1
-0+LIC_FILES_CHKSUM ="file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2<file:///\\LICENSE;m d5=640061b8cee64b308a4d2f9f556c12f2>"
Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc line 7
Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc line 10
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc line 12
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-0SRC_URI_append = "file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch<file:/ //\\0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch> \
Quoted 1 line
meta-python/recipes-devtools/python/python-pytest.inc line 13
Quoted 1 line
meta-python/recipes-devtools/python/python-pytest.inc +0
-1-file://pytest_version_fix.patch<file:///\\pytest_version_fix.patch> "
Quoted 4 lines
Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc +1
-0+ "inherit update-alternatives
Quoted 13 lines
meta-python/recipes-devtools/python/python-pytest.inc line 1
Quoted 13 lines
diff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-re mo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-re mo ve-t he-setup_requires-for-setuptools-scm.patch
index06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py-re mo ve-t he-setup_requires-for-setuptools-scm.patch
+++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup.p +++ y- re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 1700:00:00
Quoted 76 lines
Quoted 76 lines
2001
meta-python/recipes-devtools/python/python-pytest.inc +0
-3-From: Derek Straka <[email protected]<mailto:[email protected]>> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requiresfor
+Fromff784f4803ab33f5e3389e40d038d52d1e211843Mon Sep 17 00:00:00 2001meta-python/recipes-devtools/python/python-pytest.inc +4
-0+From: Yuan Chao +<[email protected]<mailto:[email protected]>> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg file forsetuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by: Derek Straka
<[email protected]<mailto:[email protected]>>meta-python/recipes-devtools/python/python-pytest.inc +16
-12+ +Signed-off-by: Yuan Chao +<[email protected]<mailto:[email protected]>> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version_f ix
.patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version_f ix
.patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_f ix
.patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-4@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abfQuoted 8 lines
meta-python/recipes-devtools/python/python-pytest.inc
Quoted 8 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-4- -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster<[email protected]<mailto:[email protected]>>
meta-python/recipes-devtools/python/python-pytest.inc +0
-2- -Index: pytest-3.2.2/setup.py-===============================================================
Quoted 75 lines
Quoted 75 lines
====
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http:// py
thon-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http:// py
thon-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http://py th
on-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http://py th
on-pytest_5.1.1.bb>
diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http:/ /p
ython3-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http:/ /p
ython3-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http://p yt
hon3-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http://p yt
hon3-pytest_5.1.1.bb>
--
2.17.1Quoted 4 lines
Quoted 4 lines
--
_______________________________________________
Openembedded-devel mailing list[email protected]<mailto:Openembedded-devel @
Quoted 11 lines
Quoted 4 lines
li
sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list[email protected]<mailto:Openembedded-devel @li
Quoted 12 lines
sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Raj, Chanakya
I have sent a group of patch to fix this issue,
please try it again.
Regards,
Yuan
Quoted 711 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Yuan, Chao
Sent: Thursday, September 19, 2019 9:10 AM
To: Khem Raj <[email protected]>; Koppolu, Chanakya <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Raj, Chanakya
I'm trying to fix this.
It will take times since it has to add some new recipe.Regards,
YuanQuoted 221 lines
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, September 19, 2019 3:27 AM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao/袁 超 <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Hi Yuan
I see that the issue is not fully fixed yet as seen here
https://github.com/openembedded/meta-openembedded/issues/144Please see if this can be fixed as soon as possible, or we have to revert these recipes, I will wait for your response
Thanks
-KhemQuoted 5 lines · Chanakya
Hello Chao,
Any update on adding the missing module '
importlib_metadata' and testingfor any more missing modules for the pytest upgrade?
Quoted 14 lines
Regards,
Chanakya-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koppolu, Chanakya
Sent: Thursday, September 12, 2019 5:59 PM
To: Tim Orling <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Quoted 4 lines
Hello Chao,
Looks like there are multiple runtime modules missing. Here is the log with the
latest packages:
Quoted 2 lines
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last):
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_mainQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: "
__main__",mod_spec)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 85, in_run_codeQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console:
exec(code, run_globals)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewriteQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import
importlib_metadataQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named '
importlib_metadata'Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_mainQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: "
__main__",mod_spec)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/runpy.py", line 85, in_run_codeQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console:
exec(code, run_globals)Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import
register_assert_rewriteQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import rewrite
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion import util
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/assertion/util.py", line 5, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import _pytest._code
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/__init__.py", line 2, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .code import Code # noqa
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/_pytest/_code/code.py", line 18, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import pluggy
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/__init__.py", line 16, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from .manager import PluginManager, PluginValidationError
Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "
/usr/lib64/python3.7/site-packages/pluggy/manager.py", line 6, in <module>Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: import
importlib_metadataQuoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: No module named '
importlib_metadata'Quoted 1 line
02:30:39 ERRR2/v3rnE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#
Quoted 1 line
02:30:39 ERRR0/v3rn test_rt_smoke.py#_test @hxj7-eced: evaluation
errored
Quoted 3 lines
I think all missing runtime module should be tested prior to upgrade of pytest
version.
Quoted 15 lines
Regards,
ChanakyaFrom: Tim Orling [mailto:[email protected]]
Sent: Wednesday, September 11, 2019 7:40 PM
To: Koppolu, Chanakya <[email protected]>
Cc: Yuan, Chao <[email protected]>; [email protected]
Subject: Re: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1I see new patches on the mailing list. Thank you.
On Wed, Sep 11, 2019 at 7:38 PM Tim Orling
Quoted 2 lines · <[email protected]<mailto:[email protected]>> wrote:
We are missing ${PYTHON_PN}-atomicwrites recipe in meta-python. Fujitsu,
please provide recipe for this missing RDEPENDS and runtime test future upgrades. You have broken functionality for others with your upgrade.
Quoted 3 lines
In the future, please runtime test all your changes to prevent this from
happening from again. We all depend on these packages working.
Quoted 2 lines
On Tue, Sep 10, 2019 at 1:25 PM Koppolu, Chanakya
<[email protected]<mailto:[email protected]>>
Quoted 17 lines · wrote:
Quoted 4 lines
Hi Chao,
I tried your new patch and it doesn't fix the issue. I still see the same
module('atomicwrites') missing in python modules.
Quoted 11 lines
Regards,
Chanakya-----Original Message-----
From: Yuan, Chao [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, September 10, 2019 1:55 AM
To: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>;[email protected]<mailto:openembedded-devel
Quoted 5 lines
@li
Quoted 4 lines
sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 -> 5.1.1Quoted 17 lines
Quoted 4 lines
Hi Chanakya,
I have sent a patch(based on pytest 5.1.2) for this runtime error, please try it
again.
Quoted 11 lines
Regards,
ChaoQuoted 7 lines
-----Original Message-----
From: Koppolu, Chanakya <[email protected]<mailto:[email protected]>>
Sent: Saturday, September 7, 2019 8:04 AM
To: Yuan, Chao/袁 超 <[email protected]<mailto:[email protected]>>;[email protected]<mailto:openembedded-devel
Quoted 81 lines
@
Quoted 35 lines
Quoted 35 lines
li
sts.openembedded.org>
Subject: RE: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2
-> 5.1.1Hello,
This pytest upgrade patch fails to test missing runtime modules. Our recent Yocto build from upstream found that the pytest fails to execute due to a missing module. Here is the error report:
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# python3 -m pytest /tests/smoke/ |& tee smoke_test.log02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: cat smoke_test.log 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: Traceback (most recent call last): 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewriteQuoted 8 lines
Quoted 8 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py" ,
line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importrewrite
Quoted 28 lines
Quoted 28 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: Nomodule named 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~# Traceback (most recent call last):
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 193, in_run_module_as_main02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: "__main__", mod_spec) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: exec(code, run_globals) 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: File"
/usr/lib64/python3.7/site-packages/pytest.py", line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importregister_assert_rewriteQuoted 8 lines
Quoted 8 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/__init__.py" ,
line 6, in <module>
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: from _pytest.assertion importQuoted 22 lines
rewrite
Quoted 20 lines
Quoted 20 lines
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: File "/usr/lib64/python3.7/site-packages/_pytest/assertion/rewrite.py", line 20, in <module>02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: import atomicwrites 02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test @hxj7-eced|jfsrtse02/mbt-02a: console: ModuleNotFoundError: Nomodule named 'atomicwrites'
02:24:14 ERRR2/jtnsE#1 test_rt_smoke.py#_test
@hxj7-eced|jfsrtse02/mbt-02a: console: root@intel-corei7-64:~#Please prove a recipe for the missing module.
Regards,
Chanakya-----Original Message-----
From:[email protected]<mailto:openembedde
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
[mailto:[email protected]<mailto:ope
Quoted 5 lines
Quoted 5 lines
ne [email protected]>] On Behalf Of Yuan Chao
Sent: Wednesday, August 28, 2019 12:38 AM
To:[email protected]<mailto:openembedded-devel
Quoted 59 lines
@
Quoted 42 lines
Quoted 42 lines
li
sts.openembedded.org>
Subject: [oe] [meta-python] [PATCH] python-pytest: upgrade 3.4.2 ->
5.1.1Refresh patch:
0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patchRemove patch: pytest_version_fix.patch since this is not used.
License update: Copyright year updated to 2019
Signed-off-by: Yuan Chao <[email protected]<mailto:[email protected]>>
--- .../recipes-devtools/python/python-pytest.inc | 8 +-- ...he-setup_requires-for-setuptools-scm.patch | 36 ++++++++------ .../python-pytest/pytest_version_fix.patch | 51 -------------------...pytest_3.4.2.bb<http://pytest_3.4.2.bb> =>
python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} | 0 ...ytest_3.4.2.bb<http://ytest_3.4.2.bb>
=> python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} | 05 files changed, 24 insertions(+), 71 deletions(-) delete mode100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_f ix
.p
atch rename meta-python/recipes-devtools/python/{python-pytest_3.4.2.bb<http:/ /p
yt
hon-pytest_3.4.2.bb> => python-pytest_5.1.1.bb<http://python-pytest_5.1.1.bb>} (100%) rename meta-python/recipes-devtools/python/{python3-pytest_3.4.2.bb<http:
//
py
thon3-pytest_3.4.2.bb> => python3-pytest_5.1.1.bb<http://python3-pytest_5.1.1.bb>} (100%)Quoted 11 lines
meta-python/recipes-devtools/python/python-pytest.inc line 4
Quoted 11 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,13 +1,13 @@ SUMMARY = "Simple powerful teting with python" HOMEPAGE = "http://pytest.org" LICENSE = "MIT" -LIC_FILES_CHKSUM ="file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4<file:///\\LICENSE ;m
d5=c39b24965f4aef64222cb35de9d47cc4>"Quoted 2 lines
meta-python/recipes-devtools/python/python-pytest.inc line 6
Quoted 2 lines
meta-python/recipes-devtools/python/python-pytest.inc +1
-0+LIC_FILES_CHKSUM =Quoted 8 lines
"file://LICENSE;md5=640061b8cee64b308a4d2f9f556c12f2<file:///\\LICENSE ;m
d5=640061b8cee64b308a4d2f9f556c12f2>"Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc line 7
Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-2-SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56" -SRC_URI[sha256sum] ="
117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"Quoted 4 lines
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc line 10
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc +2
-0+SRC_URI[md5sum] = "662313b4f539f5b66d2fb77791458e82" +SRC_URI[sha256sum] ="
c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"Quoted 28 lines
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc line 12
Quoted 3 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-0SRC_URI_append = "file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patc h<file:/ //\\0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch> \
Quoted 1 line
meta-python/recipes-devtools/python/python-pytest.inc line 13
Quoted 1 line
meta-python/recipes-devtools/python/python-pytest.inc +0
-1-file://pytest_version_fix.patch<file:///\\pytest_version_fix.patch> "
Quoted 4 lines
Quoted 4 lines
meta-python/recipes-devtools/python/python-pytest.inc +1
-0+ "inherit update-alternatives
Quoted 14 lines
Quoted 13 lines
diff --git a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- re mo ve-t he-setup_requires-for-setuptools-scm.patch b/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- re mo ve-t he-setup_requires-for-setuptools-scm.patch index
06dfcdfc6..c29fb12de100644
---
a/meta-python/recipes-devtools/python/python-pytest/0001-setup.py- re mo ve-t he-setup_requires-for-setuptools-scm.patch +++ b/meta-python/recipes-devtools/python/python-pytest/0001-setup +++ .p
+++ y- re move-the-setup_requires-for-setuptools-scm.patchmeta-python/recipes-devtools/python/python-pytest.inc line 1
Quoted 1 line
meta-python/recipes-devtools/python/python-pytest.inc +0
-1@@ -1,7 +1,7 @@ -From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 1700:00:00
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
2001
meta-python/recipes-devtools/python/python-pytest.inc +0
-3-From: Derek Straka <[email protected]<mailto:[email protected]>> -Date: Tue, 19 Dec 2017 11:36:39 -0500 -Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requiresfor
+Fromff784f4803ab33f5e3389e40d038d52d1e211843Mon Sep 1700:00:00
Quoted 73 lines
Quoted 73 lines
Quoted 73 lines
2001
meta-python/recipes-devtools/python/python-pytest.inc +4
-0+From: Yuan Chao +<[email protected]<mailto:[email protected]>> +Date: Wed, 28 Aug 2019 16:12:27 +0900 +Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for setuptools-scm The setup_requires argument forces the download of the egg filefor setuptools-scm @@ -12,21 +12,25 @@ file and in the release tarball it is already correctly created
Upstream-Status: Inappropriate [oe specific]Signed-off-by: Derek Straka
<[email protected]<mailto:[email protected]>>meta-python/recipes-devtools/python/python-pytest.inc +16
-12+ +Signed-off-by: Yuan Chao +<[email protected]<mailto:[email protected]>> --- - setup.py | 1 - - 1 file changed, 1 deletion(-) + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 3eb38ef..1163202 100644 +index adbafb5..75fdd09 100644 --- a/setup.py +++ b/setup.py -@@ -82,7 +82,6 @@ def main(): - keywords="test unittest", - cmdclass={'test': PyTest}, - # the following should be enabled for release -- setup_requires=['setuptools-scm'], - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - install_requires=install_requires, - extras_require=extras_require, +@@ -19,7 +19,7 @@ INSTALL_REQUIRES = [ def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools>=40.0"], + package_dir={"": "src"}, + extras_require={ + "testing": [ -- -2.7.4 +2.17.1 +diff --git a/meta-python/recipes-devtools/python/python-pytest/pytest_version _f
ix
.patc
h b/meta-python/recipes-devtools/python/python-pytest/pytest_version _f
ix
.patc
h
deleted file mode 100644
index b373d93e8..000000000
---
a/meta-python/recipes-devtools/python/python-pytest/pytest_version _f
ix
.patc
h
+++/dev/nullmeta-python/recipes-devtools/python/python-pytest.inc +0
-4@@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abfQuoted 9 lines
Quoted 8 lines
meta-python/recipes-devtools/python/python-pytest.inc
Quoted 8 lines
meta-python/recipes-devtools/python/python-pytest.inc +0
-4- -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster<[email protected]<mailto:[email protected]>>
meta-python/recipes-devtools/python/python-pytest.inc +0
-2- -Index: pytest-3.2.2/setup.py-===============================================================
Quoted 83 lines
Quoted 83 lines
Quoted 83 lines
====
----pytest-3.2.2.orig/setup.py
-+++pytest-3.2.2/setup.py
-@@ -1,5 +1,6 @@
- import os
- import sys
-+import re
- import setuptools
- importpkg_resources
- from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [
- with open('README.rst') as fd:meta-python/recipes-devtools/python/python-pytest.inc +0
-28- long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],diff --git a/meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http:
//
py
thon-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http:
//
py
thon-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python-pytest_3.4.2.bb<http:// py
th
on-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python-pytest_5.1.1.bb<http:// py
th
on-pytest_5.1.1.bb>
diff --git a/meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http :/
/p
ython3-pytest_3.4.2.bb> b/meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http :/
/p
ython3-pytest_5.1.1.bb>
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pytest_3.4.2.bb<http:/ /p
yt
hon3-pytest_3.4.2.bb> rename to meta-python/recipes-devtools/python/python3-pytest_5.1.1.bb<http:/ /p
yt
hon3-pytest_5.1.1.bb>
--
2.17.1Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
--
_______________________________________________
Openembedded-devel mailing list[email protected]<mailto:Openembedded-devel
Quoted 13 lines
@
Quoted 11 lines
Quoted 4 lines
li
sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list[email protected]<mailto:Openembedded-devel
Quoted 14 lines
@li
Quoted 12 lines
sts.openembedded.org>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel