Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-trustme for openSUSE:Factory 
checked in at 2023-01-18 13:08:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-trustme (Old)
 and      /work/SRC/openSUSE:Factory/.python-trustme.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-trustme"

Wed Jan 18 13:08:11 2023 rev:9 rq:1058771 version:0.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-trustme/python-trustme.changes    
2021-09-04 22:32:10.371898516 +0200
+++ /work/SRC/openSUSE:Factory/.python-trustme.new.32243/python-trustme.changes 
2023-01-18 13:08:15.395941298 +0100
@@ -1,0 +2,10 @@
+Mon Jan 16 21:04:12 UTC 2023 - Matej Cepl <mc...@suse.com>
+
+- Clean up SPEC file
+
+-------------------------------------------------------------------
+Sat Jan 14 10:45:50 UTC 2023 - Bernhard Wiedemann <bwiedem...@suse.com>
+
+- Add fix2038.patch to allow tests of python-aiosmtplib to pass after 2038
+
+-------------------------------------------------------------------

New:
----
  fix2038.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-trustme.spec ++++++
--- /var/tmp/diff_new_pack.SbeCcZ/_old  2023-01-18 13:08:16.299946146 +0100
+++ /var/tmp/diff_new_pack.SbeCcZ/_new  2023-01-18 13:08:16.303946168 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-trustme
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-trustme
 Version:        0.9.0
@@ -25,6 +24,7 @@
 License:        Apache-2.0 OR MIT
 URL:            https://github.com/python-trio/trustme
 Source:         
https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz
+Patch0:         fix2038.patch
 BuildRequires:  %{python_module cryptography}
 BuildRequires:  %{python_module idna}
 BuildRequires:  %{python_module pyOpenSSL}
@@ -54,6 +54,7 @@
 
 %prep
 %setup -q -n trustme-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -70,6 +71,7 @@
 %license LICENSE.MIT
 %license LICENSE.APACHE2
 %doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/trustme
+%{python_sitelib}/trustme-%{version}*-info
 
 %changelog

++++++ fix2038.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2023-01-14
Subject: Fix tests of python-aiosmtplib after 2038

diff --git a/trustme/__init__.py b/trustme/__init__.py
index cc280b0..f24e100 100644
--- a/trustme/__init__.py
+++ b/trustme/__init__.py
@@ -50,7 +50,7 @@ _KEY_SIZE = 2048
 # Some versions of cryptography on 32-bit platforms fail if you give
 # them dates after ~2038-01-19:
 #   https://github.com/pyca/cryptography/pull/4658
-DEFAULT_EXPIRY = datetime.datetime(2038, 1, 1)
+DEFAULT_EXPIRY = datetime.datetime(2098, 1, 1)
 
 def _name(name, organization_name=None, common_name=None):
     # type: (Text, Optional[Text], Optional[Text]) -> x509.Name

Reply via email to