Antonio Valentino pushed to branch master at Debian GIS Project / flox
Commits: 86daf60a by Antonio Valentino at 2026-01-13T06:36:14+00:00 New 0001-Robust-module_available.patch - - - - - f65c0445 by Antonio Valentino at 2026-01-13T06:36:37+00:00 Set distribution to unstable - - - - - 3 changed files: - debian/changelog - + debian/patches/0001-Robust-module_available.patch - + debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,10 +1,14 @@ -flox (0.10.8-3) UNRELEASED; urgency=medium +flox (0.10.8-3) unstable; urgency=medium - * Team upload. + [ Bas Couwenberg ] * Drop Priority: optional, default since dpkg 1.22.13. * Bump Standards-Version to 4.7.3, changes: priority. - -- Bas Couwenberg <[email protected]> Sat, 03 Jan 2026 13:56:12 +0100 + [ Antonio Valentino ] + * debian/patch: + - New 0001-Robust-module_available.patch. + + -- Antonio Valentino <[email protected]> Tue, 13 Jan 2026 06:36:17 +0000 flox (0.10.8-2) unstable; urgency=medium ===================================== debian/patches/0001-Robust-module_available.patch ===================================== @@ -0,0 +1,29 @@ +From: Antonio Valentino <[email protected]> +Date: Tue, 13 Jan 2026 06:33:09 +0000 +Subject: Robust module_available + +The patch implements a workaround for the transition to +Python 3.14 in which the numba module is isntalled but not +importable. + +Forwarded: not-needed +--- + flox/xrutils.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/flox/xrutils.py b/flox/xrutils.py +index 4adc56b..88d22d4 100644 +--- a/flox/xrutils.py ++++ b/flox/xrutils.py +@@ -29,7 +29,10 @@ def module_available(module: str, minversion: str | None = None) -> bool: + """ + has = importlib.util.find_spec(module) is not None + if has: +- mod = importlib.import_module(module) ++ try: ++ mod = importlib.import_module(module) ++ except ImportError: ++ return False + return Version(mod.__version__) >= Version(minversion) if minversion is not None else True + else: + return False ===================================== debian/patches/series ===================================== @@ -0,0 +1 @@ +0001-Robust-module_available.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/compare/8a89f90dd0254ef58e19baf37512324aca55a6da...f65c04457b8537269ea9bd363e8173049da9de2d -- View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/compare/8a89f90dd0254ef58e19baf37512324aca55a6da...f65c04457b8537269ea9bd363e8173049da9de2d You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
