From d11c3b828f37e20a8b663a7f26d7896d1150aa18 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 24 Jan 2023 18:01:18 +0200 Subject: python3-nocaselist: Upgrade 1.0.6 -> 1.1.0 Upgrade to release 1.1.0: - The default casefolding method on Python 3 was changed from str.lower() to str.casefold(). This changes the matching of the case-insensitive values. This shold normally be an improvement, but in case you find that you are negatively affected by this change, you can go back to the str.lower() method by overriding the NocaseDict.__casefold__() method with a method that calls str.lower(). - Added support for Python 3.11. - Changed the default casefolding method on Python 3 to be str.casefold() in order to improve Unicode support. On Python 2, it remains str.lower(). Added support for user-defined casefolding. - Added support for storing None as a value in a NocaseList. Previously, that was rejected with AttributeError since the casefold method was attempted to be called on the None value. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-nocaselist_1.0.6.bb | 8 -------- .../recipes-devtools/python/python3-nocaselist_1.1.0.bb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-nocaselist_1.0.6.bb create mode 100644 meta-python/recipes-devtools/python/python3-nocaselist_1.1.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-nocaselist_1.0.6.bb b/meta-python/recipes-devtools/python/python3-nocaselist_1.0.6.bb deleted file mode 100644 index 9e6842961d..0000000000 --- a/meta-python/recipes-devtools/python/python3-nocaselist_1.0.6.bb +++ /dev/null @@ -1,8 +0,0 @@ -SUMMARY = "A case-insensitive list for Python" -HOMEPAGE = "https://nocaselist.readthedocs.io/en/latest/" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" - -SRC_URI[sha256sum] = "48f067f8cb841245f34d03120bc1ba9900f13b19cb51bcc6c7bee017f7c874da" - -inherit pypi setuptools3 diff --git a/meta-python/recipes-devtools/python/python3-nocaselist_1.1.0.bb b/meta-python/recipes-devtools/python/python3-nocaselist_1.1.0.bb new file mode 100644 index 0000000000..4b93ca98fa --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-nocaselist_1.1.0.bb @@ -0,0 +1,12 @@ +SUMMARY = "A case-insensitive list for Python" +HOMEPAGE = "https://nocaselist.readthedocs.io/en/latest/" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI[sha256sum] = "a99384abc700c409e9def7143763e18dfad332fdff7e30fae1f6d1a30b372772" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-six \ +" -- cgit v1.2.3-54-g00ecf