Skip to contentSkip to conversation

python3-itsdangerous: Upgrade 2.1.2 -> 2.2.0

PATCH New Leon Anavi 1 participant 6 messages Aug 9, 2024

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/6 python3-itsdangerous: Upgrade 2.1.2 -> 2.2.0

Upgrade to release 2.2.0:

- Drop support for Python 3.7
- Use modern packaging metadata with pyproject.toml instead of setup.cfg
- Use flit_core instead of setuptools as build backend
- Deprecate the __version__ attribute. Use feature detection, or importlib.metadata.version("itsdangerous"), instead.
- Serializer and the return type of dumps is generic for type checking. By default it is Serializer[str] and dumps returns a str. If a different serializer argument is given, it will try to infer the return type of its dumps method.
- The default hashlib.sha1 may not be available in FIPS builds. Don't access it at import time so the developer has time to change the default.

License-Update: Renamed from LICENSE.rst to LICENSE.txt

---
 ...-itsdangerous_2.1.2.bb => python3-itsdangerous_2.2.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-itsdangerous_2.1.2.bb => python3-itsdangerous_2.2.0.bb} (62%)
meta-python/recipes-devtools/python/python3-itsdangerous_2.2.0.bb renamed from meta-python/recipes-devtools/python/python3-itsdangerous_2.1.2.bb +3 -3
similarity index 62%
rename from meta-python/recipes-devtools/python/python3-itsdangerous_2.1.2.bb
rename to meta-python/recipes-devtools/python/python3-itsdangerous_2.2.0.bb
index 5af1d594b..f4d8d5296 100644
@@ -1,11 +1,11 @@
 SUMMARY = "Various helpers to pass trusted data to untrusted environments and back."
 HOMEPAGE = "http://github.com/mitsuhiko/itsdangerous"
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=4cda9a0ebd516714f360b0e9418cfb37"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4cda9a0ebd516714f360b0e9418cfb37"
 
-SRC_URI[sha256sum] = "5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a"
+SRC_URI[sha256sum] = "e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 CLEANBROKEN = "1"
 
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/6 python3-sniffio: witch to PEP-517 build backend

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fixes:
WARNING: python3-sniffio-1.3.1-r0 do_check_backend: QA Issue:
inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb +1 -1
index 448ac34f5..746e4185d 100644
@@ -7,6 +7,6 @@ LIC_FILES_CHKSUM = "\
     file://LICENSE.APACHE2;md5=3b83ef96387f14655fc854ddc3c6bd57 \
 "
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 3/6 python3-sniffio: Upgrade 1.3.0 -> 1.3.1

In reply to Leon Anavi

Upgrade to release 1.3.1:

- Added missing thread_local to sniffio.__all__

---
 ...hon3-sniffio_1.3.0.bb => python3-sniffio_1.3.1.bb} | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-sniffio_1.3.0.bb => python3-sniffio_1.3.1.bb} (64%)
meta-python/recipes-devtools/python/python3-sniffio_1.3.1.bb renamed from meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb +10 -1
similarity index 64%
rename from meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb
rename to meta-python/recipes-devtools/python/python3-sniffio_1.3.1.bb
index 746e4185d..82c457c39 100644
@@ -9,4 +9,13 @@ LIC_FILES_CHKSUM = "\
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"
+SRC_URI[sha256sum] = "f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"
+
+DEPENDS += "\
+    python3-setuptools-scm-native \
+"
+
+RDEPENDS:${PN} += " \
+    python3-numbers \
+    python3-core \
+"
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH 4/6 python3-qface: Upgrade 2.0.10 -> 2.0.11

In reply to Leon Anavi

Upgrade to release 2.0.11:

- More pathlib related fixes

---
 .../python/{python3-qface_2.0.10.bb => python3-qface_2.0.11.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-qface_2.0.10.bb => python3-qface_2.0.11.bb} (85%)
meta-python/recipes-devtools/python/python3-qface_2.0.11.bb renamed from meta-python/recipes-devtools/python/python3-qface_2.0.10.bb +1 -1
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-qface_2.0.10.bb
rename to meta-python/recipes-devtools/python/python3-qface_2.0.11.bb
index 9190c9a63..9ecaf5698 100644
@@ -2,7 +2,7 @@ SUMMARY = "A generator framework based on a common modern IDL"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=eee61e10a40b0e3045ee5965bcd9a8b5"
 
-SRC_URI[sha256sum] = "8606fbade67c3c0afe8ed5bbe860e7ffcd523ce0568c3f9dbe9f04503542f3cf"
+SRC_URI[sha256sum] = "b55c239f3ae7e23c5c8434f38901c5bcacb6afd17e88e37934b46e44558df295"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.39.2
author
#4 lore raw

PATCH 5/6 python3-argcomplete: switch to PEP-517 build backend

In reply to Leon Anavi

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fixes:
WARNING: python3-argcomplete-3.4.0-r0 do_check_backend: QA Issue:
inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-argcomplete_3.4.0.bb    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-argcomplete_3.4.0.bb +5 -1
index be3ded82b..90def16a6 100644
@@ -7,7 +7,11 @@ SRC_URI[sha256sum] = "c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded
 
 PYPI_PACKAGE = "argcomplete"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
+
+DEPENDS += " \
+    python3-setuptools-scm-native \
+"
 
 RDEPENDS:${PN} += "\
     python3-core \
Signature · 1 line
2.39.2
author
#5 lore raw

PATCH 6/6 python3-argcomplete: Upgrade 3.4.0 -> 3.5.0

In reply to Leon Anavi

Upgrade to release 3.5.0:

- Use project.scripts instead of setuptools scripts
- Test infrastructure improvements

---
 ...ython3-argcomplete_3.4.0.bb => python3-argcomplete_3.5.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-argcomplete_3.4.0.bb => python3-argcomplete_3.5.0.bb} (84%)
meta-python/recipes-devtools/python/python3-argcomplete_3.5.0.bb renamed from meta-python/recipes-devtools/python/python3-argcomplete_3.4.0.bb +1 -1
similarity index 84%
rename from meta-python/recipes-devtools/python/python3-argcomplete_3.4.0.bb
rename to meta-python/recipes-devtools/python/python3-argcomplete_3.5.0.bb
index 90def16a6..a5cf6298a 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/kislyuk/argcomplete"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93"
 
-SRC_URI[sha256sum] = "c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f"
+SRC_URI[sha256sum] = "4349400469dccfb7950bb60334a680c58d88699bff6159df61251878dc6bf74b"
 
 PYPI_PACKAGE = "argcomplete"
 
Signature · 1 line
2.39.2