changeset 4238:b0c36f3d3e04

core: update `pygobject` version and replace deprecated `configparser.SafeConfigParser`
author Goffi <goffi@goffi.org>
date Sat, 11 May 2024 13:16:13 +0200
parents a1e7e82a8921
children a38559e6d6e2
files libervia/backend/tools/common/email.py libervia/tui/config.py pyproject.toml
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/tools/common/email.py	Mon Apr 08 12:29:40 2024 +0200
+++ b/libervia/backend/tools/common/email.py	Sat May 11 13:16:13 2024 +0200
@@ -32,7 +32,7 @@
 def send_email(config, to_emails, subject="", body="", from_email=None):
     """Send an email using SàT configuration
 
-    @param config (SafeConfigParser): the configuration instance
+    @param config (ConfigParser): the configuration instance
     @param to_emails(list[unicode], unicode): list of recipients
         if unicode, it will be split to get emails
     @param subject(unicode): subject of the message
--- a/libervia/tui/config.py	Mon Apr 08 12:29:40 2024 +0200
+++ b/libervia/tui/config.py	Sat May 11 13:16:13 2024 +0200
@@ -29,7 +29,7 @@
 
     raise: can raise various Exceptions if configuration is not good
     """
-    config = configparser.SafeConfigParser()
+    config = configparser.ConfigParser()
     config.read(C.CONFIG_FILES)
     try:
         options = config.items(C.CONFIG_SECTION)
--- a/pyproject.toml	Mon Apr 08 12:29:40 2024 +0200
+++ b/pyproject.toml	Sat May 11 13:16:13 2024 +0200
@@ -42,7 +42,7 @@
     "progressbar2 < 3.54",
     "pydantic ~= 2.4",
     "pygments < 3",
-    "pygobject < 3.40.1",
+    "pygobject ~= 3.48",
     "pyopenssl >= 23.2.0",
     "python-dateutil >= 2.8.1, < 3",
     # currently disabled due to incompatibility, OTR feature may be removed in