From nobody Fri Dec 2 22:28:16 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NP6z43ZdXz4jWBS; Fri, 2 Dec 2022 22:28:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NP6z431Fyz4TGr; Fri, 2 Dec 2022 22:28:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670020096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tG11RWlSbwoSe9hCRFbNkwL+iMZkojiJOxE76vTLd+c=; b=ArYU/lBbJmtTRcwMu2rGP7P3et39s/KX4AK+joOW0uaDTXv3qibu5G6OkJvWuNSTosmoZC yTxzAkmJ4MSedo9aIDKDCm9Yc+1Bg566AvTELh4QJW89aad0gtRUXOiCfwIJ2VJur37bPi hrza47VyDccG50gT4o4QwAfBxWOlmNSFegq0CjSN8Qx10Ym7LtwClkk0sQdH13ky5jGolI ZrEEe021sxLOa4PL0R3XxNsAD5tBgITGHwH34z9XspPQBZVkJEbSwsc1UIWE87pfH0HEM9 C7fc5mm4hVzC0m+U/huo5LVRODY2E+9XLSJ+5Jjfn1u8XGrY9NjA75IG3AY2wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670020096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tG11RWlSbwoSe9hCRFbNkwL+iMZkojiJOxE76vTLd+c=; b=RJDPmB7WNSLZjJuCheNk47tcrL9d+S2z/cY7wA8tE3b1ZBvEbn+7IIYB81wv4Wr7B71wUV ruR/sB478H0ceAsGys1CXGASESy9rrV0HrUN+0ASN6uVTlD+j6S9Ny8vazxKEn6V8oIAPd WIaQBTxXgaDUQ9am70gnvd+wSmPF2lJQUDhe+ep9p5WV+S1iDYriWkpBV/8MqkHVqjr0BZ ck5PbE7VKnAfQF+atB1Qzk/h+gXrIA4yKZuigU1eBuSb57uPx3nXAAnkQKOND8HkkkgoF8 0Z8SQ9/OVtNjO/5nIZcMwrgv0+T7vMVNVGtvZN7gsTEFHujf1aPBSJ56txaLHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670020096; a=rsa-sha256; cv=none; b=D5o3IVWdp9/59QKEaujUdy88bOYVWJTZOdZfoKu0ki8f2XseSQVFhDwtPs7QGg4+ZdWmG9 PSNUiGwWOQ3Il+KLvzSvTOlD+WsKPByLg8ya97ZkMWQ/YdO9bKkq/yGV6wWXFNGEzlntze YUj2V/xKrwCQ+uJ1s/l/UGu/vZ86jXxS6QRiVGn94SEGL3K7l7Ryv7HFwqYfczUb/iIhKE p9EHTPeN3uQry33YMYg5md7Rm7seN8k5r17RQ0jqlFNCoBx4aBVHud8+pKDmYjKrwTI0Iv FVXcAE/dcjaw94yOlUUkvQt8yBxvztVgXpekEnTsKJFKpDEJM2SkhzG+2UFpNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NP6z421N2zXJS; Fri, 2 Dec 2022 22:28:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B2MSGj0005241; Fri, 2 Dec 2022 22:28:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B2MSG6k005240; Fri, 2 Dec 2022 22:28:16 GMT (envelope-from git) Date: Fri, 2 Dec 2022 22:28:16 GMT Message-Id: <202212022228.2B2MSG6k005240@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Danilo G. Baio" Subject: git: b765c5966e82 - main - devel/py-marrow.mailer: Fix runtime with Python 3.9+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b765c5966e82d572d7d933159f7651d5aae77cb6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/ports/commit/?id=b765c5966e82d572d7d933159f7651d5aae77cb6 commit b765c5966e82d572d7d933159f7651d5aae77cb6 Author: Danilo G. Baio AuthorDate: 2022-12-02 17:46:51 +0000 Commit: Danilo G. Baio CommitDate: 2022-12-02 22:27:52 +0000 devel/py-marrow.mailer: Fix runtime with Python 3.9+ MFH: 2022Q4 --- devel/py-marrow.mailer/Makefile | 1 + devel/py-marrow.mailer/files/patch-marrow_mailer_message.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/devel/py-marrow.mailer/Makefile b/devel/py-marrow.mailer/Makefile index 2534efe751ac..7d9659644ec8 100644 --- a/devel/py-marrow.mailer/Makefile +++ b/devel/py-marrow.mailer/Makefile @@ -1,5 +1,6 @@ PORTNAME= marrow.mailer PORTVERSION= 4.0.3 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-marrow.mailer/files/patch-marrow_mailer_message.py b/devel/py-marrow.mailer/files/patch-marrow_mailer_message.py new file mode 100644 index 000000000000..64d50b234ad6 --- /dev/null +++ b/devel/py-marrow.mailer/files/patch-marrow_mailer_message.py @@ -0,0 +1,13 @@ +# base64.encodestring() +# Deprecated alias of encodebytes(), removed in Python 3.9 +--- marrow/mailer/message.py.orig 2019-09-16 00:05:09 UTC ++++ marrow/mailer/message.py +@@ -305,7 +305,7 @@ class Message(object): + else: + raise TypeError("Unable to read attachment contents") + +- part.set_payload(base64.encodestring(value)) ++ part.set_payload(base64.encodebytes(value)) + + if not filename: + filename = name