Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Django for openSUSE:Factory checked in at 2024-04-21 20:24:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Django (Old) and /work/SRC/openSUSE:Factory/.python-Django.new.26366 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Django" Sun Apr 21 20:24:15 2024 rev:115 rq:1168720 version:4.2.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Django/python-Django.changes 2024-03-05 18:49:35.814722804 +0100 +++ /work/SRC/openSUSE:Factory/.python-Django.new.26366/python-Django.changes 2024-04-21 20:24:27.811718364 +0200 @@ -1,0 +2,6 @@ +Thu Apr 18 06:39:36 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com> + +- Add fix-safemimetext-set_payload.patch, to support python 3.11.9+ + (gh#django/django@b231bcd19e57, bsc#1222880) + +------------------------------------------------------------------- New: ---- fix-safemimetext-set_payload.patch BETA DEBUG BEGIN: New: - Add fix-safemimetext-set_payload.patch, to support python 3.11.9+ (gh#django/django@b231bcd19e57, bsc#1222880) BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Django.spec ++++++ --- /var/tmp/diff_new_pack.Rdh2ei/_old 2024-04-21 20:24:28.867757113 +0200 +++ /var/tmp/diff_new_pack.Rdh2ei/_new 2024-04-21 20:24:28.871757260 +0200 @@ -37,6 +37,9 @@ Patch0: sanitize_address.patch # PATCH-FIX-OPENSUSE: ignore minor failure on Python 3.12 Patch1: dirty-hack-remove-assert.patch +# PATCH-FIX-UPSTREAM: fix-safemimetext-set_payload.patch, gh#django/django@b231bcd19e57 +# Add support for python 3.11.9+ +Patch2: fix-safemimetext-set_payload.patch BuildRequires: %{python_module Jinja2 >= 2.9.2} BuildRequires: %{python_module Pillow >= 6.2.0} BuildRequires: %{python_module PyYAML} ++++++ fix-safemimetext-set_payload.patch ++++++ Index: Django-4.2.11/django/core/mail/message.py =================================================================== --- Django-4.2.11.orig/django/core/mail/message.py +++ Django-4.2.11/django/core/mail/message.py @@ -168,7 +168,8 @@ class SafeMIMEText(MIMEMixin, MIMEText): def set_payload(self, payload, charset=None): if charset == "utf-8" and not isinstance(charset, Charset.Charset): has_long_lines = any( - len(line.encode()) > RFC5322_EMAIL_LINE_LENGTH_LIMIT + len(line.encode(errors="surrogateescape")) + > RFC5322_EMAIL_LINE_LENGTH_LIMIT for line in payload.splitlines() ) # Quoted-Printable encoding has the side effect of shortening long