Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-igwn-auth-utils for openSUSE:Factory checked in at 2024-02-27 22:49:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-igwn-auth-utils (Old) and /work/SRC/openSUSE:Factory/.python-igwn-auth-utils.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-igwn-auth-utils" Tue Feb 27 22:49:42 2024 rev:5 rq:1152303 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-igwn-auth-utils/python-igwn-auth-utils.changes 2024-02-14 23:19:53.270738526 +0100 +++ /work/SRC/openSUSE:Factory/.python-igwn-auth-utils.new.1770/python-igwn-auth-utils.changes 2024-02-27 22:49:55.525946772 +0100 @@ -1,0 +2,6 @@ +Tue Feb 27 13:29:40 UTC 2024 - Ben Greiner <c...@bnavigator.de> + +- Fix cryptography deprecation sent to duncan.macl...@ligo.org + igwn-auth-utils-cryptography-utc-deprecation.patch + +------------------------------------------------------------------- New: ---- igwn-auth-utils-cryptography-utc-deprecation.patch BETA DEBUG BEGIN: New:- Fix cryptography deprecation sent to duncan.macl...@ligo.org igwn-auth-utils-cryptography-utc-deprecation.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-igwn-auth-utils.spec ++++++ --- /var/tmp/diff_new_pack.M2PfZn/_old 2024-02-27 22:49:56.121968375 +0100 +++ /var/tmp/diff_new_pack.M2PfZn/_new 2024-02-27 22:49:56.125968520 +0100 @@ -28,6 +28,8 @@ Patch0: https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/73.patch#/igwn-auth-utils-mr73-utznow.patch # PATCH-FIX-UPSTREAM igwn-auth-utils-mr76-mock_called_once.patch https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/76 Patch1: https://git.ligo.org/computing/igwn-auth-utils/-/merge_requests/76.patch#/igwn-auth-utils-mr76-mock_called_once.patch +# PATCH-FIX-UPSTREAM igwn-auth-utils-cryptography-utc-deprecation.patch sent to duncan.macl...@ligo.org +Patch2: igwn-auth-utils-cryptography-utc-deprecation.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm >= 3.4.3} BuildRequires: %{python_module setuptools} ++++++ igwn-auth-utils-cryptography-utc-deprecation.patch ++++++ Index: igwn-auth-utils-1.1.0/igwn_auth_utils/x509.py =================================================================== --- igwn-auth-utils-1.1.0.orig/igwn_auth_utils/x509.py +++ igwn-auth-utils-1.1.0/igwn_auth_utils/x509.py @@ -95,13 +95,12 @@ def is_valid_certificate(cert, timeleft= def _timeleft(cert): """Returns the time remaining (in seconds) for a ``cert`` """ - expiry = cert.not_valid_after try: - now = datetime.datetime.now(datetime.UTC) - except AttributeError: # python < 3.11 - now = datetime.datetime.utcnow() - else: - expiry = expiry.astimezone(datetime.UTC) + expiry = cert.not_valid_after_utc + except AttributeError: + # cryptography < 42 + expiry = cert.not_valid_after + now = datetime.datetime.now(datetime.timezone.utc) return (expiry - now).total_seconds()