From e7fd057e00495eb7ffac4fdd0ceed5288d0f5401 Mon Sep 17 00:00:00 2001 From: Xu Huan Date: Tue, 22 Feb 2022 17:03:45 +0800 Subject: [PATCH 01/19] python3-alembic upgrade 1.7.5 -> 1.7.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License-Update: year updated to 2022 changelog: =============================================================================== Add a new command alembic ensure_version, which will ensure that the Alembic version table is present in the target database, but does not alter its contents. Pull request courtesy Kai Mueller. Fixed regression where usage of a with_variant() datatype in conjunction with the existing_type option of op.alter_column() under batch mode would lead to an internal exception. Implemented support for recognizing and rendering SQLAlchemy “variant” types going forward into SQLAlchemy 2.0, where the architecture of “variant” datatypes will be changing. Added a rule to the MySQL impl so that the translation between JSON / LONGTEXT is accommodated by autogenerate, treating LONGTEXT from the server as equivalent to an existing JSON in the model. Signed-off-by: Xu Huan Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-alembic_1.7.5.bb => python3-alembic_1.7.6.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-alembic_1.7.5.bb => python3-alembic_1.7.6.bb} (66%) diff --git a/meta-python/recipes-devtools/python/python3-alembic_1.7.5.bb b/meta-python/recipes-devtools/python/python3-alembic_1.7.6.bb similarity index 66% rename from meta-python/recipes-devtools/python/python3-alembic_1.7.5.bb rename to meta-python/recipes-devtools/python/python3-alembic_1.7.6.bb index 131d5d43a01..822b3c02b8a 100644 --- a/meta-python/recipes-devtools/python/python3-alembic_1.7.5.bb +++ b/meta-python/recipes-devtools/python/python3-alembic_1.7.6.bb @@ -1,10 +1,10 @@ DESCRIPTION = "A database migration tool for SQLAlchemy" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c4ece55266dcdd02ce165b1ee0e490bb" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f5a8522010db1a393833988dbe2c7f0b" inherit pypi setuptools3 -SRC_URI[sha256sum] = "7c328694a2e68f03ee971e63c3bd885846470373a5b532cf2c9f1601c413b153" +SRC_URI[sha256sum] = "6c0c05e9768a896d804387e20b299880fe01bc56484246b0dffe8075d6d3d847" PYPI_PACKAGE = "alembic" From 540fa7100b1642108b461d54230feaceb11f78ae Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 22 Feb 2022 14:11:57 +0200 Subject: [PATCH 02/19] python3-distro: Upgrade 1.6.0 -> 1.7.0 Upgrade to release 1.7.0: - Dropped support for EOL Pythons 2.7, 3.4 and 3.5 - Dropped support for LSB and uname back-ends when --root-dir is specified - Moved distro.py to src/distro/distro.py - Documented that distro.version() can return an empty string on rolling releases - Documented support for Python 3.10 - Added official support for Rocky Linux distribution - Added a shebang to distro.py to allow standalone execution - Added support for AIX platforms - Added compliance for PEP-561 - Fixed include_uname parameter oversight - Fixed crash when uname -rs output is empty - Fixed Amazon Linux identifier in distro.id() documentation - Fixed OpenSuse >= 15 support - Fixed encoding issues when opening distro release files - Fixed linux_distribution regression Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-distro_1.6.0.bb => python3-distro_1.7.0.bb} | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-distro_1.6.0.bb => python3-distro_1.7.0.bb} (56%) diff --git a/meta-python/recipes-devtools/python/python3-distro_1.6.0.bb b/meta-python/recipes-devtools/python/python3-distro_1.7.0.bb similarity index 56% rename from meta-python/recipes-devtools/python/python3-distro_1.6.0.bb rename to meta-python/recipes-devtools/python/python3-distro_1.7.0.bb index 8aa22556700..f069234d1be 100644 --- a/meta-python/recipes-devtools/python/python3-distro_1.6.0.bb +++ b/meta-python/recipes-devtools/python/python3-distro_1.7.0.bb @@ -5,8 +5,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" PYPI_PACKAGE = "distro" -SRC_URI[sha256sum] = "83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424" +SRC_URI[sha256sum] = "151aeccf60c216402932b52e40ee477a939f8d58898927378a02abbe852c1c39" inherit pypi setuptools3 +RDEPENDS:${PN} = "\ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-shell \ +" + BBCLASSEXTEND = "native nativesdk" From 0385875f36e05c504926aea5aab2a9a0626005e1 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 22 Feb 2022 14:11:58 +0200 Subject: [PATCH 03/19] python3-click: Upgrade 8.0.3 -> 8.0.4 Upgrade to release 8.0.4: - open_file recognizes Path("-") as a standard stream, the same as the string "-". - The option and argument decorators preserve the type annotation of the decorated function. - A callable default value can customize its help text by overriding __str__ instead of always showing (dynamic). - Fix a typo in the Bash completion script that affected file and directory completion. If this script was generated by a previous version, it should be regenerated. - Fix typing for echo and secho file argument. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/{python3-click_8.0.3.bb => python3-click_8.0.4.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-click_8.0.3.bb => python3-click_8.0.4.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-click_8.0.3.bb b/meta-python/recipes-devtools/python/python3-click_8.0.4.bb similarity index 92% rename from meta-python/recipes-devtools/python/python3-click_8.0.3.bb rename to meta-python/recipes-devtools/python/python3-click_8.0.4.bb index c31d0656730..76f7a8e6522 100644 --- a/meta-python/recipes-devtools/python/python3-click_8.0.3.bb +++ b/meta-python/recipes-devtools/python/python3-click_8.0.4.bb @@ -8,7 +8,7 @@ HOMEPAGE = "http://click.pocoo.org/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8" -SRC_URI[sha256sum] = "410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b" +SRC_URI[sha256sum] = "8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb" inherit pypi setuptools3 ptest From 7151c7c43949f69e47cb98cd6e66342d26d82ae0 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Tue, 22 Feb 2022 11:13:49 -0800 Subject: [PATCH 04/19] python3-wheel: drop; moved to oe-core Because of layer priority, this recipe must be dropped before a build with the new PEP-517 packaging can proceed due to dependency loops. Signed-off-by: Tim Orling Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../packagegroups/packagegroup-meta-python.bb | 1 - .../recipes-devtools/python/python3-wheel_0.37.1.bb | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-wheel_0.37.1.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index 319d49267cc..a8a09b4d56e 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -462,7 +462,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-websockets \ python3-werkzeug \ python3-werkzeug \ - python3-wheel \ python3-whoosh \ python3-wrapt \ python3-wtforms \ diff --git a/meta-python/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta-python/recipes-devtools/python/python3-wheel_0.37.1.bb deleted file mode 100644 index 6c7a31db9e7..00000000000 --- a/meta-python/recipes-devtools/python/python3-wheel_0.37.1.bb +++ /dev/null @@ -1,12 +0,0 @@ -SUMMARY = "The official binary distribution format for Python " -HOMEPAGE = "https://github.com/pypa/wheel" -SECTION = "devel/python" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a0148f94f483f3e1489" - -SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" - -inherit pypi setuptools3 - -BBCLASSEXTEND = "native" - From 7e56acac935608b71b40bdb6ce0b4bb684291fc9 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Tue, 22 Feb 2022 13:15:45 -0800 Subject: [PATCH 05/19] python3-test-generator: drop recipe python3-nose still contains Python 2 code which causes errors in do_compile when using bdist_wheel or PEP-517 packaging. Like nose, test-generator has not been touched since 2016. Drop this recipe unless someone fixes the issues in python3-nose [YOCTO #14638] Signed-off-by: Tim Orling Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../packagegroups/packagegroup-meta-python.bb | 2 -- .../python/python3-test-generator/run-ptest | 3 -- .../python/python3-test-generator_0.1.2.bb | 29 ------------------- 3 files changed, 34 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-test-generator/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-test-generator_0.1.2.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index a8a09b4d56e..d90e6551e77 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -424,7 +424,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-tabulate \ python3-term \ python3-termcolor \ - python3-test-generator \ python3-textparser \ python3-texttable \ python3-thrift \ @@ -535,7 +534,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\ python3-smpplib-ptest \ python3-soupsieve-ptest \ python3-sqlparse-ptest \ - python3-test-generator-ptest \ python3-typeguard-ptest \ python3-ujson-ptest \ python3-u-msgpack-python-ptest \ diff --git a/meta-python/recipes-devtools/python/python3-test-generator/run-ptest b/meta-python/recipes-devtools/python/python3-test-generator/run-ptest deleted file mode 100644 index 5cec7116968..00000000000 --- a/meta-python/recipes-devtools/python/python3-test-generator/run-ptest +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -pytest diff --git a/meta-python/recipes-devtools/python/python3-test-generator_0.1.2.bb b/meta-python/recipes-devtools/python/python3-test-generator_0.1.2.bb deleted file mode 100644 index 7f212ddd87b..00000000000 --- a/meta-python/recipes-devtools/python/python3-test-generator_0.1.2.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "Generator is a helper for generating test methods for nose while still using unittest." -DESCRIPTION = "Python package with modified subclasses of all stdlib XML \ -parsers that prevent any potentially malicious operation." - -LICENSE = "ISC" -LIC_FILES_CHKSUM = "file://LICENSE;md5=041a2bff595d40ccb4b36356f89dab00" - -SRC_URI += " \ - file://run-ptest \ -" - -SRC_URI[md5sum] = "6c69e73ba5b4b3ed62f7bcda071c64f1" -SRC_URI[sha256sum] = "ad5925c814bfe79497b43df096e3bb52c166d1577f7aff160137301676232f4a" - -inherit pypi setuptools3 ptest - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-mock \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -DEPENDS += "python3-nose-native" - -RDEPENDS:${PN} += "python3-six" From cb7ae69c69d8eca0f7bf4fb9a0c61fad040470fc Mon Sep 17 00:00:00 2001 From: Xu Huan Date: Wed, 23 Feb 2022 14:49:55 +0800 Subject: [PATCH 06/19] python3-autobahn: upgrade 21.11.1 -> 22.1.1 Signed-off-by: Xu Huan Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-autobahn_21.11.1.bb => python3-autobahn_22.1.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-autobahn_21.11.1.bb => python3-autobahn_22.1.1.bb} (86%) diff --git a/meta-python/recipes-devtools/python/python3-autobahn_21.11.1.bb b/meta-python/recipes-devtools/python/python3-autobahn_22.1.1.bb similarity index 86% rename from meta-python/recipes-devtools/python/python3-autobahn_21.11.1.bb rename to meta-python/recipes-devtools/python/python3-autobahn_22.1.1.bb index 857862d31b0..f149b1221ef 100644 --- a/meta-python/recipes-devtools/python/python3-autobahn_21.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-autobahn_22.1.1.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://crossbar.io/autobahn" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=97c0bda20ad1d845c6369c0e47a1cd98" -SRC_URI[sha256sum] = "bd6f46315419ca0a5be4109f737410208ad5f19718f67ca6a4a674cc66ca9b18" +SRC_URI[sha256sum] = "17e1b58b6ae1a63ca7d926b1d71bb9e4fd6b9ac9a1a2277d8ee40e0b61f54746" inherit pypi setuptools3 From f8ba30038e6c77c577a61b2f208ba7db782ffc18 Mon Sep 17 00:00:00 2001 From: Xu Huan Date: Wed, 23 Feb 2022 14:49:56 +0800 Subject: [PATCH 07/19] python3-flask: upgrade 2.0.2 -> 2.0.3 changelog: =============================================================================== -The test client's as_tuple parameter is deprecated and will be removed in Werkzeug 2.1. It is now also deprecated in Flask, to be removed in Flask 2.1, while remaining compatible with both in 2.0.x. Use response.request.environ instead. -Fix type annotation for errorhandler decorator. -Revert a change to the CLI that caused it to hide ImportError tracebacks when importing the application. -app.json_encoder and json_decoder are only passed to dumps and loads if they have custom behavior. This improves performance, mainly on PyPy. -Clearer error message when after_this_request is used outside a request context. Signed-off-by: Xu Huan Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/{python3-flask_2.0.2.bb => python3-flask_2.0.3.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-flask_2.0.2.bb => python3-flask_2.0.3.bb} (87%) diff --git a/meta-python/recipes-devtools/python/python3-flask_2.0.2.bb b/meta-python/recipes-devtools/python/python3-flask_2.0.3.bb similarity index 87% rename from meta-python/recipes-devtools/python/python3-flask_2.0.2.bb rename to meta-python/recipes-devtools/python/python3-flask_2.0.3.bb index e3f1df35626..4070fc01280 100644 --- a/meta-python/recipes-devtools/python/python3-flask_2.0.2.bb +++ b/meta-python/recipes-devtools/python/python3-flask_2.0.3.bb @@ -6,7 +6,7 @@ HOMEPAGE = "https://github.com/mitsuhiko/flask/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75" -SRC_URI[sha256sum] = "7b2fb8e934ddd50731893bdcdb00fc8c0315916f9fcd50d22c7cc1a95ab634e2" +SRC_URI[sha256sum] = "e1120c228ca2f553b470df4a5fa927ab66258467526069981b3eb0a91902687d" PYPI_PACKAGE = "Flask" From d5d55848e5a84d82c71e7c2c5185e024d7a09c4d Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 23 Feb 2022 15:17:17 +0200 Subject: [PATCH 08/19] python3-ordered-set: Upgrade 4.0.2 -> 4.1.0 Upgrade to release 4.1.0: - Packaged using flit. Wheels now exist, and setuptools is no longer required. - This package now has a typical package structure, instead of being a single module. The code is in ordered_set/__init__.py instead of ordered_set.py. - There is an ordered_set/py.typed so that type checkers know about the types. - Use the type aliases SetLike[T] and OrderedSetInitializer[T] to simplify some types. - Updated the way overloaded type signatures are written to what MyPy currently expects. - Minimum Python version is 3.7. License-Update: Update years Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-ordered-set/run-ptest | 2 +- ...3-ordered-set_4.0.2.bb => python3-ordered-set_4.1.0.bb} | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) rename meta-python/recipes-devtools/python/{python3-ordered-set_4.0.2.bb => python3-ordered-set_4.1.0.bb} (57%) diff --git a/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest b/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest index f7b9d0907c7..c27a6c3c574 100644 --- a/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest +++ b/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -pytest test.py +pytest test_ordered_set.py diff --git a/meta-python/recipes-devtools/python/python3-ordered-set_4.0.2.bb b/meta-python/recipes-devtools/python/python3-ordered-set_4.1.0.bb similarity index 57% rename from meta-python/recipes-devtools/python/python3-ordered-set_4.0.2.bb rename to meta-python/recipes-devtools/python/python3-ordered-set_4.1.0.bb index 323fe18fd1e..2740b335516 100644 --- a/meta-python/recipes-devtools/python/python3-ordered-set_4.0.2.bb +++ b/meta-python/recipes-devtools/python/python3-ordered-set_4.1.0.bb @@ -1,10 +1,9 @@ SUMMARY = "A MutableSet that remembers its order, so that every entry has an index." HOMEPAGE = "http://github.com/LuminosoInsight/ordered-set" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://MIT-LICENSE;md5=2b36be0d99854aa2ae292a800a7c1d4e" +LIC_FILES_CHKSUM = "file://MIT-LICENSE;md5=3bf5e1ad64c0d99032c3143361fa234e" -SRC_URI[md5sum] = "5d88f3870c32d4868b28c8fe833f7e74" -SRC_URI[sha256sum] = "ba93b2df055bca202116ec44b9bead3df33ea63a7d5827ff8e16738b97f33a95" +SRC_URI[sha256sum] = "694a8e44c87657c59292ede72891eb91d34131f6531463aab3009191c77364a8" inherit pypi setuptools3 ptest @@ -19,5 +18,5 @@ RDEPENDS:${PN}-ptest += " \ " do_install_ptest() { - cp -f ${S}/test.py ${D}${PTEST_PATH}/ + cp -f ${S}/test/test_ordered_set.py ${D}${PTEST_PATH}/ } From c900814d71ba7c11ef24a2d4f20009547b1cf51d Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 23 Feb 2022 15:17:18 +0200 Subject: [PATCH 09/19] python3-bitarray: Upgrade 2.3.6 -> 2.3.7 Upgrade to release 2.3.7: - add optional step argument to `.count()` method - add tests Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-bitarray_2.3.6.bb => python3-bitarray_2.3.7.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-bitarray_2.3.6.bb => python3-bitarray_2.3.7.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-bitarray_2.3.6.bb b/meta-python/recipes-devtools/python/python3-bitarray_2.3.7.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-bitarray_2.3.6.bb rename to meta-python/recipes-devtools/python/python3-bitarray_2.3.7.bb index d4fb6ed76c3..cac003a4fbd 100644 --- a/meta-python/recipes-devtools/python/python3-bitarray_2.3.6.bb +++ b/meta-python/recipes-devtools/python/python3-bitarray_2.3.7.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray" LICENSE = "PSF" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d" -SRC_URI[sha256sum] = "3bfdb59ded15c961e6e3d5b7f167155cda053be2475ea8017461df0b4d820b7d" +SRC_URI[sha256sum] = "4da790ab193e993107f3ff0aebc4f8d6ad5196a19071fbafad16b02898a44fd7" inherit setuptools3 pypi From ec7158e8dabdaa93e35bfa0d612c1210a2e760b1 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 23 Feb 2022 15:17:19 +0200 Subject: [PATCH 10/19] python3-pandas: Upgrade 1.4.0 -> 1.4.1 Upgrade to release 1.4.1: - Regression in Series.mask() with inplace=True and PeriodDtype and an incompatible other coercing to a common dtype instead of raising - Regression in assert_frame_equal() not respecting check_flags=False - Regression in DataFrame.loc() raising ValueError when indexing (getting values) on a MultiIndex with one level - Regression in Series.fillna() with downcast=False incorrectly downcasting object dtype - Regression in api.types.is_bool_dtype() raising an AttributeError when evaluating a categorical Series - Regression in DataFrame.iat() setting values leading to not propagating correctly in subsequent lookups - Regression when setting values with DataFrame.loc() losing Index name if DataFrame was empty before - Regression in join() with overlapping IntervalIndex raising an InvalidIndexError - Regression when setting values with Series.loc() raising with all False indexer and Series on the right hand side - Regression in read_sql() with a DBAPI2 connection that is not an instance of sqlite3.Connection incorrectly requiring SQLAlchemy be installed - Regression in DateOffset when constructing with an integer argument with no keywords (e.g. pd.DateOffset(n)) would behave like datetime.timedelta(days=0) - Fixed segfault in DataFrame.to_json() when dumping tz-aware datetimes in Python 3.10 - Stopped emitting unnecessary FutureWarning in DataFrame.sort_values() with sparse columns - Fixed window aggregations in DataFrame.rolling() and Series.rolling() to skip over unused elements - Fixed builtin highlighters in Styler to be responsive to NA with nullable dtypes - Bug in apply() with axis=1 raising an erroneous ValueError - Reverted performance speedup of DataFrame.corr() for method=pearson to fix precision regression Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/{python3-pandas_1.4.0.bb => python3-pandas_1.4.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-pandas_1.4.0.bb => python3-pandas_1.4.1.bb} (89%) diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.4.0.bb b/meta-python/recipes-devtools/python/python3-pandas_1.4.1.bb similarity index 89% rename from meta-python/recipes-devtools/python/python3-pandas_1.4.0.bb rename to meta-python/recipes-devtools/python/python3-pandas_1.4.1.bb index 9b395440f96..4877194a5c4 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_1.4.0.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_1.4.1.bb @@ -6,7 +6,7 @@ HOMEPAGE = "http://pandas.pydata.org/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=3f23c5c092b74d245d48eeef72bc3fd2" -SRC_URI[sha256sum] = "cdd76254c7f0a1583bd4e4781fb450d0ebf392e10d3f12e92c95575942e37df5" +SRC_URI[sha256sum] = "8db93ec98ac7cb5f8ac1420c10f5e3c43533153f253fe7fb6d891cf5aa2b80d2" inherit pypi setuptools3 From 71f60b36a38b5fe807fc051f925d3e524cf61d03 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 23 Feb 2022 15:17:20 +0200 Subject: [PATCH 11/19] python3-unidiff: Upgrade 0.7.0 -> 0.7.3 Upgrade to release 0.7.3: - Fixed RE_BINARY_DIFF regex to make it a raw string - Fixed issue when parsing git diff header generated with --no-prefix - Improved git added/deleted file detection - Added newline optional param when parsing from_filename Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-unidiff_0.7.0.bb => python3-unidiff_0.7.3.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-unidiff_0.7.0.bb => python3-unidiff_0.7.3.bb} (85%) diff --git a/meta-python/recipes-devtools/python/python3-unidiff_0.7.0.bb b/meta-python/recipes-devtools/python/python3-unidiff_0.7.3.bb similarity index 85% rename from meta-python/recipes-devtools/python/python3-unidiff_0.7.0.bb rename to meta-python/recipes-devtools/python/python3-unidiff_0.7.3.bb index b3013180d10..dd5b0c3eb03 100644 --- a/meta-python/recipes-devtools/python/python3-unidiff_0.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-unidiff_0.7.3.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://github.com/matiasb/python-unidiff" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=4c434b08ef42fea235bb019b5e5a97b3" -SRC_URI[sha256sum] = "91bb13b4969514a400679d9ae5e29a6ffad85346087677f8b5e2e036af817447" +SRC_URI[sha256sum] = "d5f2e53a9a00db3224a8c36349b5380e0e22d1aec6c694b14fb9483ee93c6205" inherit pypi setuptools3 ptest From a3bceca249ac7e1a27f707f833a19966df7fa3f7 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 23 Feb 2022 15:17:21 +0200 Subject: [PATCH 12/19] python3-langtable: Upgrade to release 0.0.57 Upgrade to release 0.0.57: - Get translation changes from CLDR - Add more translations from CLDR - Replace "ibus/cangjie" with "ibus/table:cangjie" - Updates for Sami languages - Updates for Finnish keyboard layouts Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- ...{python3-langtable_0.0.56.bb => python3-langtable_0.0.57.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-langtable_0.0.56.bb => python3-langtable_0.0.57.bb} (86%) diff --git a/meta-python/recipes-devtools/python/python3-langtable_0.0.56.bb b/meta-python/recipes-devtools/python/python3-langtable_0.0.57.bb similarity index 86% rename from meta-python/recipes-devtools/python/python3-langtable_0.0.56.bb rename to meta-python/recipes-devtools/python/python3-langtable_0.0.57.bb index b8f052ea312..39819f43519 100644 --- a/meta-python/recipes-devtools/python/python3-langtable_0.0.56.bb +++ b/meta-python/recipes-devtools/python/python3-langtable_0.0.57.bb @@ -6,7 +6,7 @@ SECTION = "devel/python" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -SRC_URI[sha256sum] = "318af0fd616711ce5cd2a7b11a6761183ba9c1ff76a762919e08d85645fc854b" +SRC_URI[sha256sum] = "6c3c0a6577652c81871cbaf139046e1c88ead8439c585bd83976b3092f57e9d7" inherit pypi setuptools3 python3native From 2e51c372bd70cff124fecf2d0cc54b6e5aac2de1 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 24 Feb 2022 01:45:32 +0200 Subject: [PATCH 13/19] python3-cmd2: Upgrade 2.3.3 -> 2.4.0 Upgrade to release 2.4.0: - Fixed issue where tab completion was quoting argparse flags in some cases. - Added broader exception handling when enabling clipboard functionality via pyperclip. - Added PassThroughException to __init__.py imports. - cmd2 now uses pyreadline3 when running any version of Python on Windows - Improved memory usage in certain use cases of tables (e.g. nested colored tables) - Deleted cmd2.fg and cmd2.bg which were deprecated in 2.3.0. Use cmd2.Fg and cmd2.Bg instead. License-Update: Update years Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/{python3-cmd2_2.3.3.bb => python3-cmd2_2.4.0.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-cmd2_2.3.3.bb => python3-cmd2_2.4.0.bb} (74%) diff --git a/meta-python/recipes-devtools/python/python3-cmd2_2.3.3.bb b/meta-python/recipes-devtools/python/python3-cmd2_2.4.0.bb similarity index 74% rename from meta-python/recipes-devtools/python/python3-cmd2_2.3.3.bb rename to meta-python/recipes-devtools/python/python3-cmd2_2.4.0.bb index d8a4fb5f23d..bc3fedd37e0 100644 --- a/meta-python/recipes-devtools/python/python3-cmd2_2.3.3.bb +++ b/meta-python/recipes-devtools/python/python3-cmd2_2.4.0.bb @@ -1,11 +1,11 @@ SUMMARY = "Extra features for standard library's cmd module" HOMEPAGE = "https://github.com/python-cmd2/cmd2" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=4c527bcb481233ebcb803de975f42701" +LIC_FILES_CHKSUM = "file://LICENSE;md5=209e288518b0668115f58c3929af9ff1" DEPENDS += "${PYTHON_PN}-setuptools-scm-native" -SRC_URI[sha256sum] = "750d7eb04d55c3bc2a413e191bc177856f388102de47d11f2210a35266543640" +SRC_URI[sha256sum] = "090909ab6c8ecee40813cec759e61dd6e70c8227a1a8e96082f5f2b0d394bc77" inherit pypi setuptools3 From d0850ecf0354d64c5fac9b1417d398a5cd3fa951 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 24 Feb 2022 01:45:33 +0200 Subject: [PATCH 14/19] python3-coverage: Upgrade 6.3 -> 6.3.2 Upgrade to release 6.3.2: - Fix: adapt to pypy3.9's decorator tracing behavior. It now traces function decorators like CPython 3.8: both the @-line and the def-line are traced. - Debug: added pybehave to the list of Diagnostics: coverage debug and --debug options - Fix: show an intelligible error message if --concurrency=multiprocessing is used without a configuration file Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-coverage_6.3.bb => python3-coverage_6.3.2.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-coverage_6.3.bb => python3-coverage_6.3.2.bb} (80%) diff --git a/meta-python/recipes-devtools/python/python3-coverage_6.3.bb b/meta-python/recipes-devtools/python/python3-coverage_6.3.2.bb similarity index 80% rename from meta-python/recipes-devtools/python/python3-coverage_6.3.bb rename to meta-python/recipes-devtools/python/python3-coverage_6.3.2.bb index 0ed90281f98..3c6b45705e6 100644 --- a/meta-python/recipes-devtools/python/python3-coverage_6.3.bb +++ b/meta-python/recipes-devtools/python/python3-coverage_6.3.2.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://coverage.readthedocs.io" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93" -SRC_URI[sha256sum] = "987a84ff98a309994ca77ed3cc4b92424f824278e48e4bf7d1bb79a63cfe2099" +SRC_URI[sha256sum] = "03e2a7826086b91ef345ff18742ee9fc47a6839ccd517061ef8fa1976e652ce9" inherit pypi setuptools3 From bf1153096e996e2efb47fdb5fe50e7ab9839b0a3 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Thu, 24 Feb 2022 09:16:37 +0800 Subject: [PATCH 15/19] python3-psutil: fix test failure fix serval failure of "python3 -m psutil.tests" Signed-off-by: Changqing Li Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../0001-fix-failure-test-cases.patch | 197 ++++++++++++++++++ .../python/python3-psutil_5.9.0.bb | 2 + 2 files changed, 199 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-psutil/0001-fix-failure-test-cases.patch diff --git a/meta-python/recipes-devtools/python/python3-psutil/0001-fix-failure-test-cases.patch b/meta-python/recipes-devtools/python/python3-psutil/0001-fix-failure-test-cases.patch new file mode 100644 index 00000000000..34ea03b27f3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-psutil/0001-fix-failure-test-cases.patch @@ -0,0 +1,197 @@ +From 8b4e38958ff8bdbb3ece4796bfa2d3b6f7536f71 Mon Sep 17 00:00:00 2001 +From: Changqing Li +Date: Wed, 23 Feb 2022 11:54:40 +0800 +Subject: [PATCH] fix failure test cases + +The test cases is not robust enough. skip some cases that is +not suitable for all conditions. + +* test_io_counters failed when kernel config CONFIG_TASKSTATS + and CONFIG_TASK_IO_ACCOUNTING are not enable in OE +* test_setup_script failed since oe don't install setup.py +* test_used failed since oe use git source for free, so the version + is 3.3.17-dirty +* test_weird_environ failed since gcc not installed +* test_debug failed since it is designed to run when PSUTIL_DEBUG is set +* test_against_findmnt/test_comparisons/test_disk_partitions_mocked/ + test_disk_partitions is not suitable for Linux nfs boot + +Upstream-Status: Pending + +Signed-off-by: Changqing Li +--- + psutil/tests/test_contracts.py | 1 + + psutil/tests/test_linux.py | 8 ++++++-- + psutil/tests/test_misc.py | 4 ++++ + psutil/tests/test_process.py | 5 +++++ + psutil/tests/test_system.py | 1 + + psutil/tests/test_unicode.py | 4 +++- + 6 files changed, 20 insertions(+), 3 deletions(-) + +diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py +index 7401cc1..bf0fca0 100755 +--- a/psutil/tests/test_contracts.py ++++ b/psutil/tests/test_contracts.py +@@ -172,6 +172,7 @@ class TestAvailProcessAPIs(PsutilTestCase): + def test_rlimit(self): + self.assertEqual(hasattr(psutil.Process, "rlimit"), LINUX or FREEBSD) + ++ @unittest.skip("broken on OE since kernel config maye not be enabled") + def test_io_counters(self): + hasit = hasattr(psutil.Process, "io_counters") + self.assertEqual(hasit, False if MACOS or SUNOS else True) +diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py +index 20e28d2..66b6dda 100755 +--- a/psutil/tests/test_linux.py ++++ b/psutil/tests/test_linux.py +@@ -196,8 +196,9 @@ def get_free_version_info(): + out = sh(["free", "-V"]).strip() + if 'UNKNOWN' in out: + raise unittest.SkipTest("can't determine free version") +- return tuple(map(int, out.split()[-1].split('.'))) +- ++ vlist = out.split()[-1].split('.') ++ vlist[:] = [n.split('-')[0] for n in vlist] ++ return tuple(map(int, vlist)) + + @contextlib.contextmanager + def mock_open_content(for_path, content): +@@ -1289,6 +1290,7 @@ class TestRootFsDeviceFinder(PsutilTestCase): + finder.ask_sys_class_block() + + @unittest.skipIf(GITHUB_ACTIONS, "unsupported on GITHUB_ACTIONS") ++ @unittest.skip("Broken for oe") + def test_comparisons(self): + finder = RootFsDeviceFinder() + self.assertIsNotNone(finder.find()) +@@ -1311,11 +1313,13 @@ class TestRootFsDeviceFinder(PsutilTestCase): + + @unittest.skipIf(not which("findmnt"), "findmnt utility not available") + @unittest.skipIf(GITHUB_ACTIONS, "unsupported on GITHUB_ACTIONS") ++ @unittest.skip("Broken for oe") + def test_against_findmnt(self): + psutil_value = RootFsDeviceFinder().find() + findmnt_value = sh("findmnt -o SOURCE -rn /") + self.assertEqual(psutil_value, findmnt_value) + ++ @unittest.skip("Broken for oe") + def test_disk_partitions_mocked(self): + with mock.patch( + 'psutil._pslinux.cext.disk_partitions', +diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py +index d946eb6..121004a 100755 +--- a/psutil/tests/test_misc.py ++++ b/psutil/tests/test_misc.py +@@ -54,6 +54,8 @@ from psutil.tests import unittest + # =================================================================== + + ++PSUTIL_DEBUG = bool(os.getenv('PSUTIL_DEBUG', 0)) ++ + class TestMisc(PsutilTestCase): + + def test_process__repr__(self, func=repr): +@@ -368,6 +370,7 @@ class TestMisc(PsutilTestCase): + + # XXX: https://github.com/pypa/setuptools/pull/2896 + @unittest.skipIf(APPVEYOR, "temporarily disabled due to setuptools bug") ++ @unittest.skip("OE run this test outof source tree") + def test_setup_script(self): + setup_py = os.path.join(ROOT_DIR, 'setup.py') + if CI_TESTING and not os.path.exists(setup_py): +@@ -401,6 +404,7 @@ class TestMisc(PsutilTestCase): + reload_module(psutil) + self.assertIn("version conflict", str(cm.exception).lower()) + ++ @unittest.skipIf(not PSUTIL_DEBUG, "env PSUTIL_DEBUG not set") + def test_debug(self): + if PY3: + from io import StringIO +diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py +index c9059e3..a34ba3d 100755 +--- a/psutil/tests/test_process.py ++++ b/psutil/tests/test_process.py +@@ -36,6 +36,7 @@ from psutil._compat import PY3 + from psutil._compat import FileNotFoundError + from psutil._compat import long + from psutil._compat import super ++from psutil._compat import which + from psutil.tests import APPVEYOR + from psutil.tests import CI_TESTING + from psutil.tests import GITHUB_ACTIONS +@@ -726,6 +727,7 @@ class TestProcess(PsutilTestCase): + self.assertEqual(' '.join(p.cmdline()), ' '.join(cmdline)) + + @unittest.skipIf(PYPY, "broken on PYPY") ++ @unittest.skipIf(not which("gcc"), "gcc not installed") + def test_long_cmdline(self): + testfn = self.get_testfn() + create_exe(testfn) +@@ -740,6 +742,7 @@ class TestProcess(PsutilTestCase): + assert pyexe.startswith(name), (pyexe, name) + + @unittest.skipIf(PYPY, "unreliable on PYPY") ++ @unittest.skipIf(not which("gcc"), "gcc not installed") + def test_long_name(self): + testfn = self.get_testfn(suffix="0123456789" * 2) + create_exe(testfn) +@@ -750,6 +753,7 @@ class TestProcess(PsutilTestCase): + @unittest.skipIf(SUNOS, "broken on SUNOS") + @unittest.skipIf(AIX, "broken on AIX") + @unittest.skipIf(PYPY, "broken on PYPY") ++ @unittest.skipIf(not which("gcc"), "gcc not installed") + def test_prog_w_funky_name(self): + # Test that name(), exe() and cmdline() correctly handle programs + # with funky chars such as spaces and ")", see: +@@ -1408,6 +1412,7 @@ class TestProcess(PsutilTestCase): + + @unittest.skipIf(not HAS_ENVIRON, "not supported") + @unittest.skipIf(not POSIX, "POSIX only") ++ @unittest.skipIf(not which("gcc"), "gcc not installed") + def test_weird_environ(self): + # environment variables can contain values without an equals sign + code = textwrap.dedent(""" +diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py +index db2cb34..5ee519f 100755 +--- a/psutil/tests/test_system.py ++++ b/psutil/tests/test_system.py +@@ -580,6 +580,7 @@ class TestDiskAPIs(PsutilTestCase): + def test_disk_usage_bytes(self): + psutil.disk_usage(b'.') + ++ @unittest.skip("Broken for oe") + def test_disk_partitions(self): + def check_ntuple(nt): + self.assertIsInstance(nt.device, str) +diff --git a/psutil/tests/test_unicode.py b/psutil/tests/test_unicode.py +index e635726..7ba5b0f 100755 +--- a/psutil/tests/test_unicode.py ++++ b/psutil/tests/test_unicode.py +@@ -86,6 +86,7 @@ from psutil import POSIX + from psutil import WINDOWS + from psutil._compat import PY3 + from psutil._compat import u ++from psutil._compat import which + from psutil.tests import APPVEYOR + from psutil.tests import ASCII_FS + from psutil.tests import CI_TESTING +@@ -156,7 +157,7 @@ def try_unicode(suffix): + # FS APIs + # =================================================================== + +- ++@unittest.skipIf(not which("gcc"), "gcc not installed") + class BaseUnicodeTest(PsutilTestCase): + funky_suffix = None + +@@ -169,6 +170,7 @@ class BaseUnicodeTest(PsutilTestCase): + @serialrun + @unittest.skipIf(ASCII_FS, "ASCII fs") + @unittest.skipIf(PYPY and not PY3, "too much trouble on PYPY2") ++@unittest.skipIf(not which("gcc"), "gcc not installed") + class TestFSAPIs(BaseUnicodeTest): + """Test FS APIs with a funky, valid, UTF8 path name.""" + +-- +2.25.1 + diff --git a/meta-python/recipes-devtools/python/python3-psutil_5.9.0.bb b/meta-python/recipes-devtools/python/python3-psutil_5.9.0.bb index cf3e0b39c87..3df0e5d003e 100644 --- a/meta-python/recipes-devtools/python/python3-psutil_5.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-psutil_5.9.0.bb @@ -6,6 +6,8 @@ SRC_URI[sha256sum] = "869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd inherit pypi setuptools3 +SRC_URI += "file://0001-fix-failure-test-cases.patch" + PACKAGES =+ "${PN}-tests" FILES:${PN}-tests += " \ From 592509dda0569c67a11e119eff10194610c0b609 Mon Sep 17 00:00:00 2001 From: Xu Huan Date: Thu, 24 Feb 2022 14:00:56 +0800 Subject: [PATCH 16/19] python3-imageio: upgrade 2.15.0 -> 2.16.0 changelog: -Fix Read metadata of current frame when iterating + APNG fast path -Feature Improps and immeta -Other Dedicated namespaces for APIs Signed-off-by: Xu Huan Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-imageio_2.15.0.bb => python3-imageio_2.16.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-imageio_2.15.0.bb => python3-imageio_2.16.0.bb} (81%) diff --git a/meta-python/recipes-devtools/python/python3-imageio_2.15.0.bb b/meta-python/recipes-devtools/python/python3-imageio_2.16.0.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-imageio_2.15.0.bb rename to meta-python/recipes-devtools/python/python3-imageio_2.16.0.bb index e3462ee44a2..04d5b9c95e8 100644 --- a/meta-python/recipes-devtools/python/python3-imageio_2.15.0.bb +++ b/meta-python/recipes-devtools/python/python3-imageio_2.16.0.bb @@ -5,7 +5,7 @@ SECTION = "devel/python" LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=7b9bbbb543b6af3e6b53f9b7fb68f71d" -SRC_URI[sha256sum] = "d0d7abb4e5c4044c06fc573233489c4a25582698f93ca94f7bd70b6f4ab172ec" +SRC_URI[sha256sum] = "7f7d8d8e1eb6f8bb1d15e0dd93bee3f72026a4c3b96e9c690e42f403f7bdea3e" inherit pypi setuptools3 From b99a96e921c8840c6a3a86ac29b8a6608a612541 Mon Sep 17 00:00:00 2001 From: Xu Huan Date: Thu, 24 Feb 2022 14:00:57 +0800 Subject: [PATCH 17/19] python3-jdatetime: upgrade 3.8.2 -> 4.0.0 changelog: -Add Add fold attribute to jdatetime.datetime -Change Drop Python < 3.7 support Signed-off-by: Xu Huan Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../{python3-jdatetime_3.8.2.bb => python3-jdatetime_4.0.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-jdatetime_3.8.2.bb => python3-jdatetime_4.0.0.bb} (79%) diff --git a/meta-python/recipes-devtools/python/python3-jdatetime_3.8.2.bb b/meta-python/recipes-devtools/python/python3-jdatetime_4.0.0.bb similarity index 79% rename from meta-python/recipes-devtools/python/python3-jdatetime_3.8.2.bb rename to meta-python/recipes-devtools/python/python3-jdatetime_4.0.0.bb index 67a6ea1f211..f76f2750365 100644 --- a/meta-python/recipes-devtools/python/python3-jdatetime_3.8.2.bb +++ b/meta-python/recipes-devtools/python/python3-jdatetime_4.0.0.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/slashmili/python-jalali" LICENSE = "Python-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=c80be45b33471b4a23cf53d06a8172be" -SRC_URI[sha256sum] = "c685687e3f39e1b9a3ba9c00ed9d8e88603bc8994413e84623e6c5d43214e6f8" +SRC_URI[sha256sum] = "d35baea2ed213e4e87bb840c61637001540bd21e8e4454bd12352b06591ec08e" PYPI_PACKAGE = "jdatetime" From 204363eaec705efb48f7252030d0231575e82650 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 23 Feb 2022 23:36:38 -0800 Subject: [PATCH 18/19] python3-blinker: Migrate to use pytest instead of nose for testing Nose wont work well with python 3.9+ anyway Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- ...se-pytest-instead-of-deprecated-nose.patch | 36 +++++++++++++++++++ .../python/python3-blinker_1.4.bb | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch diff --git a/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch b/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch new file mode 100644 index 00000000000..a04c79b1e0e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch @@ -0,0 +1,36 @@ +From 9750d01118ee59ab174525e30d987065b69c0538 Mon Sep 17 00:00:00 2001 +From: pgajdos +Date: Wed, 8 Jul 2020 15:22:19 +0200 +Subject: [PATCH] use pytest instead of deprecated nose + +Upstream-Status: Submitted [https://github.com/jek/blinker/pull/60] +Signed-off-by: Khem Raj +--- + tests/test_signals.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_signals.py b/tests/test_signals.py +index 9771e40..ccbc35b 100644 +--- a/tests/test_signals.py ++++ b/tests/test_signals.py +@@ -4,7 +4,7 @@ import time + + import blinker + +-from nose.tools import assert_raises ++import pytest + + + jython = sys.platform.startswith('java') +@@ -232,7 +232,7 @@ def test_meta_connect_failure(): + pass + sig = blinker.Signal() + +- assert_raises(TypeError, sig.connect, receiver) ++ pytest.raises(TypeError, sig.connect, receiver) + assert not sig.receivers + assert not sig._by_receiver + assert sig._by_sender == {blinker.base.ANY_ID: set()} +-- +2.35.1 + diff --git a/meta-python/recipes-devtools/python/python3-blinker_1.4.bb b/meta-python/recipes-devtools/python/python3-blinker_1.4.bb index 397fdcfb053..08a961f938b 100644 --- a/meta-python/recipes-devtools/python/python3-blinker_1.4.bb +++ b/meta-python/recipes-devtools/python/python3-blinker_1.4.bb @@ -8,12 +8,12 @@ SRC_URI[sha256sum] = "471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d6 inherit pypi setuptools3 ptest SRC_URI += " \ + file://0001-use-pytest-instead-of-deprecated-nose.patch \ file://run-ptest \ " RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-nose \ " do_install_ptest() { From e051e4f8383692582fc39b699082d1d2382acb6d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 23 Feb 2022 23:47:57 -0800 Subject: [PATCH 19/19] python3-oauthlib: Drop redundant nose dependency Add pytest module dependency for testing nose has been dropped upstream too [1] [1] https://github.com/oauthlib/oauthlib/commit/037453c6f92b502eaae2acafe11161e4bb2e38bb Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb b/meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb index 3e5d957c4ee..e7f7f0b47bc 100644 --- a/meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb @@ -14,7 +14,7 @@ inherit pypi setuptools3 # # Uncomment this line to enable all the optional features. #PACKAGECONFIG ?= "test signedtoken signals rsa" -PACKAGECONFIG[test] = ",,,${PYTHON_PN}-blinker ${PYTHON_PN}-cryptography ${PYTHON_PN}-nose ${PYTHON_PN}-pyjwt" +PACKAGECONFIG[test] = ",,,${PYTHON_PN}-blinker ${PYTHON_PN}-cryptography ${PYTHON_PN}-pytest ${PYTHON_PN}-pyjwt" PACKAGECONFIG[signedtoken] = ",,,${PYTHON_PN}-cryptography ${PYTHON_PN}-pyjwt" PACKAGECONFIG[signals] = ",,,${PYTHON_PN}-blinker" PACKAGECONFIG[rsa] = ",,,${PYTHON_PN}-cryptography"