Philipp Hörist pushed to branch master at gajim / gajim


Commits:
8d32a4ee by Philipp Hörist at 2025-04-02T20:58:52+02:00
ci: Windows: Switch depcheck to GIRepository 3.0

- - - - -


2 changed files:

- pyproject.toml
- win/misc/depcheck.py


Changes:

=====================================
pyproject.toml
=====================================
@@ -150,6 +150,7 @@ exclude = [
   "test/common/test_uri_util.py",
   "test/gui/test_menus.py",
   "typings/windows_toasts/*",
+  "win/misc/depcheck.py",
 ]
 
 [tool.ruff]


=====================================
win/misc/depcheck.py
=====================================
@@ -11,13 +11,13 @@
 
 import gi
 
-gi.require_version("GIRepository", "2.0")
+gi.require_version("GIRepository", "3.0")
 from gi.repository import GIRepository  # noqa: E402
 
 logging.basicConfig(level="INFO", format="%(levelname)s: %(message)s")
 log = logging.getLogger()
 
-IGNORED_LIBS = [("Soup", "2.4"), ("Gtk", "4.0")]
+IGNORED_LIBS = [("Soup", "2.4"), ("Gtk", "3.0")]
 
 
 def get_required_by_typelibs() -> set[str]:
@@ -32,9 +32,9 @@ def get_required_by_typelibs() -> set[str]:
         except Exception as error:
             log.warning("Unable to load %s %s: %s", namespace, version, error)
             continue
-        lib = repo.get_shared_library(namespace)
+        lib = repo.get_shared_libraries(namespace)
         if lib:
-            deps.update(lib.split(","))
+            deps.update(lib)
     return deps
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8d32a4eecc1063c751de75e4236b6c8ff4f874cd

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8d32a4eecc1063c751de75e4236b6c8ff4f874cd
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to