Skip to contentSkip to conversation

python3-blinker: Upgrade to 1.9.0

PATCH New Khem Raj 1 participant 5 messages Nov 21, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/5 python3-blinker: Upgrade to 1.9.0

Changes are here
https://blinker.readthedocs.io/en/stable/#version-1-9-0

---
 .../{python3-blinker_1.7.0.bb => python3-blinker_1.9.0.bb}    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-blinker_1.7.0.bb => python3-blinker_1.9.0.bb} (73%)
meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb renamed from meta-python/recipes-devtools/python/python3-blinker_1.7.0.bb +2 -2
similarity index 73%
rename from meta-python/recipes-devtools/python/python3-blinker_1.7.0.bb
rename to meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb
index 8f2cf4883d..33263ce6b3 100644
@@ -1,8 +1,8 @@
 DESCRIPTION = "Fast, simple object-to-object and broadcast signaling."
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=42cd19c88fc13d1307a4efd64ee90e4e"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=42cd19c88fc13d1307a4efd64ee90e4e"
 
-SRC_URI[sha256sum] = "e6820ff6fa4e4d1d8e2747c2283749c3f547e4fee112b98555cdcdae32996182"
+SRC_URI[sha256sum] = "b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf"
 
 inherit pypi python_setuptools_build_meta ptest
 
author
#1 lore raw

PATCH 2/5 python3-werkzeug: Upgrade to 3.1.3

https://github.com/pallets/werkzeug/releases/tag/3.1.0
https://github.com/pallets/werkzeug/releases/tag/3.1.1
https://github.com/pallets/werkzeug/releases/tag/3.1.2
https://github.com/pallets/werkzeug/releases/tag/3.1.3

---
 .../{python3-werkzeug_3.0.6.bb => python3-werkzeug_3.1.3.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-werkzeug_3.0.6.bb => python3-werkzeug_3.1.3.bb} (90%)
meta-python/recipes-devtools/python/python3-werkzeug_3.1.3.bb renamed from meta-python/recipes-devtools/python/python3-werkzeug_3.0.6.bb +1 -1
similarity index 90%
rename from meta-python/recipes-devtools/python/python3-werkzeug_3.0.6.bb
rename to meta-python/recipes-devtools/python/python3-werkzeug_3.1.3.bb
index 5758830cb9..73029eccc7 100644
@@ -10,7 +10,7 @@ HOMEPAGE = "https://werkzeug.palletsprojects.com"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dc88300786f1c214c1e9827a5229462"
 
-SRC_URI[sha256sum] = "a8dd59d4de28ca70471a34cba79bed5f7ef2e036a76b3ab0835474246eb41f8d"
+SRC_URI[sha256sum] = "60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746"
 
 inherit pypi python_flit_core
 
author
#2 lore raw

PATCH 3/5 python3-flask: Adjust runtime dependencies

In reply to Khem Raj

Drop python3-profile, its not needed anymore
add python3-importlib-metadata and python3-asgiref for ptests

---
 meta-python/recipes-devtools/python/python3-flask_3.1.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-flask_3.1.0.bb +2 -1
index f1b18b075c..dd2795bd7d 100644
@@ -22,13 +22,14 @@ CLEANBROKEN = "1"
 RDEPENDS:${PN} = " \
     python3-blinker \
     python3-click \
+    python3-importlib-metadata \
     python3-itsdangerous \
     python3-jinja2 \
-    python3-profile \
     python3-werkzeug \
 "
 
 RDEPENDS:${PN}-ptest += "\
+    python3-asgiref \
     python3-pytest \
     python3-unittest-automake-output \
 "
author
#3 lore raw

PATCH 4/5 python3-pint: Upgrade to 0.24.4

In reply to Khem Raj

- add error for prefixed non multi units
- build: typing_extensions version
- build: switch from appdirs to platformdirs
- fix GenericPlainRegistry getattr type
- Replace references to the deprecated UnitRegistry.default_format
- fix: upgrade to flexparser>=0.4, exceptions are no longer dataclasses. (required for Python 3.13)

- Drop the backported patch

---
 ...n-True-for-Python-3.13-compatibility.patch | 116 ------------------
 ...-pint_0.24.3.bb => python3-pint_0.24.4.bb} |   4 +-
 2 files changed, 2 insertions(+), 118 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pint/0001-dataclass-frozen-True-for-Python-3.13-compatibility.patch
 rename meta-python/recipes-devtools/python/{python3-pint_0.24.3.bb => python3-pint_0.24.4.bb} (84%)
meta-python/recipes-devtools/python/python3-pint/0001-dataclass-frozen-True-for-Python-3.13-compatibility.patch deleted +0 -116
deleted file mode 100644
index 6f9b0f5bca..0000000000
@@ -1,116 +0,0 @@
-From dc729d5b6574e1c44ec12e13b68c2b900e4a7ba1 Mon Sep 17 00:00:00 2001
-From: Simon Willison <[email protected]>
-Date: Fri, 12 Jul 2024 17:23:21 -0700
-Subject: [PATCH] @dataclass(frozen=True) for Python 3.13 compatibility
-
-Upstream-Status: Submitted [https://github.com/hgrecco/pint/pull/2037]
-Signed-off-by: Khem Raj <[email protected]>
----
- pint/errors.py | 24 ++++++++++++------------
- 1 file changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/pint/errors.py b/pint/errors.py
-index 59d3b45..f080f52 100644
---- a/pint/errors.py
-+++ b/pint/errors.py
-@@ -81,12 +81,12 @@ class WithDefErr:
-         return DefinitionError(self.name, self.__class__, msg)
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class PintError(Exception):
-     """Base exception for all Pint errors."""
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DefinitionError(ValueError, PintError):
-     """Raised when a definition is not properly constructed."""
- 
-@@ -102,7 +102,7 @@ class DefinitionError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DefinitionSyntaxError(ValueError, PintError):
-     """Raised when a textual definition has a syntax error."""
- 
-@@ -115,7 +115,7 @@ class DefinitionSyntaxError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class RedefinitionError(ValueError, PintError):
-     """Raised when a unit or prefix is redefined."""
- 
-@@ -130,7 +130,7 @@ class RedefinitionError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UndefinedUnitError(AttributeError, PintError):
-     """Raised when the units are not defined in the unit registry."""
- 
-@@ -150,13 +150,13 @@ class UndefinedUnitError(AttributeError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class PintTypeError(TypeError, PintError):
-     def __reduce__(self):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DimensionalityError(PintTypeError):
-     """Raised when trying to convert between incompatible units."""
- 
-@@ -183,7 +183,7 @@ class DimensionalityError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class OffsetUnitCalculusError(PintTypeError):
-     """Raised on ambiguous operations with offset units."""
- 
-@@ -208,7 +208,7 @@ class OffsetUnitCalculusError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class LogarithmicUnitCalculusError(PintTypeError):
-     """Raised on inappropriate operations with logarithmic units."""
- 
-@@ -233,7 +233,7 @@ class LogarithmicUnitCalculusError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UnitStrippedWarning(UserWarning, PintError):
-     msg: str
- 
-@@ -241,13 +241,13 @@ class UnitStrippedWarning(UserWarning, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UnexpectedScaleInContainer(Exception):
-     def __reduce__(self):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UndefinedBehavior(UserWarning, PintError):
-     msg: str
- 
meta-python/recipes-devtools/python/python3-pint_0.24.4.bb renamed from meta-python/recipes-devtools/python/python3-pint_0.24.3.bb +2 -2
similarity index 84%
rename from meta-python/recipes-devtools/python/python3-pint_0.24.3.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.24.4.bb
index 337f587202..88efefff58 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b"
 
 inherit pypi ptest python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "d54771093e8b94c4e0a35ac638c2444ddf3ef685652bab7675ffecfa0c5c5cdf"
+SRC_URI[sha256sum] = "35275439b574837a6cd3020a5a4a73645eb125ce4152a73a2f126bf164b91b80"
 
 DEPENDS += "python3-setuptools-scm-native"
 
@@ -16,12 +16,12 @@ BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI += " \
 	file://run-ptest \
-	file://0001-dataclass-frozen-True-for-Python-3.13-compatibility.patch \
 "
 
 RDEPENDS:${PN} += " \
 	python3-setuptools \
 	python3-packaging \
+	python3-platformdirs \
 "
 # python3-misc for timeit.py 
 RDEPENDS:${PN}-ptest += " \
author
#4 lore raw

PATCH 5/5 python3-typer: Upgrade to 0.13.1

In reply to Khem Raj

Changes
https://github.com/fastapi/typer/releases/tag/0.13.1

---
 ...hon3-typer_0.13.0.bb => python3-typer_0.13.1.bb} | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-typer_0.13.0.bb => python3-typer_0.13.1.bb} (79%)
meta-python/recipes-devtools/python/python3-typer_0.13.1.bb renamed from meta-python/recipes-devtools/python/python3-typer_0.13.0.bb +9 -4
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-typer_0.13.0.bb
rename to meta-python/recipes-devtools/python/python3-typer_0.13.1.bb
index 958c823545..465d747829 100644
@@ -7,7 +7,7 @@ HOMEPAGE = "https://github.com/tiangolo/typer"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617"
 
-SRC_URI[sha256sum] = "f1c7198347939361eec90139ffa0fd8b3df3a2259d5852a0f7400e476d95985c"
+SRC_URI[sha256sum] = "9d444cb96cc268ce6f8b94e13b4335084cef4c079998a9f4851a90229a3bd25c"
 
 inherit pypi python_setuptools_build_meta ptest
 
@@ -24,13 +24,19 @@ PYPI_PACKAGE = "typer"
 
 RDEPENDS:${PN} += "\
     python3-click \
+    python3-rich \
     python3-shellingham \
+    python3-typing-extensions \
 "
-
+# python3-misc for webbrowser module
 RDEPENDS:${PN}-ptest += "\
     python3-coverage \
+    python3-misc \
+    python3-mypy \
     python3-pytest \
-    python3-typing-extensions \
+    python3-pytest-cov \
+    python3-pytest-xdist \
+    python3-toml \
     python3-unittest-automake-output \
 "
 
@@ -38,4 +44,3 @@ do_install_ptest() {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
-