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


Commits:
619bd165 by Philipp Hörist at 2026-04-11T12:10:57+02:00
change: Require cryptography >= 43.0.0

- - - - -


4 changed files:

- README.md
- debian/control
- gajim/gtk/preference/certificate.py
- pyproject.toml


Changes:

=====================================
README.md
=====================================
@@ -14,7 +14,7 @@ ### Runtime Requirements
 
 - [libadwaita](https://gitlab.gnome.org/GNOME/libadwaita) (>=1.7.0)
 - [cairo](https://gitlab.freedesktop.org/cairo/cairo) (>=1.16.0)
-- [cryptography](https://pypi.org/project/cryptography/) (>=3.4.8)
+- [cryptography](https://pypi.org/project/cryptography/) (>=43.0.0)
 - [css-parser](https://pypi.org/project/css-parser/)
 - [emoji](https://pypi.org/project/emoji/) (>=2.6.0)
 - [GLib](https://gitlab.gnome.org/GNOME/glib) (>=2.80.0)


=====================================
debian/control
=====================================
@@ -16,7 +16,7 @@ Build-Depends:
     python3-omemo-dr (>=20251230),
     python3-setuptools,
     python3-packaging,
-    python3-cryptography (>=3.4.8),
+    python3-cryptography (>=43.0.0),
     python3-pil (>=9.1.0),
     python3-sqlalchemy (>=2.0.19),
     python3-emoji (>=2.6.0),


=====================================
gajim/gtk/preference/certificate.py
=====================================
@@ -24,7 +24,6 @@
 from gajim.common.helpers import get_x509_cert_from_gio_cert
 from gajim.common.i18n import _
 from gajim.common.util.text import format_bytes_as_hex
-from gajim.common.util.version import package_version
 
 from gajim.gtk.preference.widgets import CopyButton
 from gajim.gtk.util.classes import SignalManager
@@ -111,12 +110,8 @@ def __init__(self, account: str | None, certificate: 
Gio.TlsCertificate) -> None
             if dotted_string == "2.5.4.10":
                 self._ib_organization = str(attribute.value)
 
-        if package_version("cryptography>=42.0.0"):
-            self._issued = str(cert.not_valid_before_utc.strftime("%c %Z"))
-            self._expires = str(cert.not_valid_after_utc.strftime("%c %Z"))
-        else:
-            self._issued = str(cert.not_valid_before.strftime("%c %Z"))
-            self._expires = str(cert.not_valid_after.strftime("%c %Z"))
+        self._issued = str(cert.not_valid_before_utc.strftime("%c %Z"))
+        self._expires = str(cert.not_valid_after_utc.strftime("%c %Z"))
 
         sha1_bytes = cert.fingerprint(hashes.SHA1())
         self._sha1 = format_bytes_as_hex(sha1_bytes, 2)


=====================================
pyproject.toml
=====================================
@@ -24,7 +24,7 @@ classifiers = [
   "Topic :: Communications :: Chat",
 ]
 dependencies = [
-  "cryptography>=3.4.8",
+  "cryptography>=43.0.0",
   "css-parser",
   "emoji>=2.6.0",
   "httpx[http2,socks]",



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/619bd165f8d76452361835b19918605b5606024d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/619bd165f8d76452361835b19918605b5606024d
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