git: f627cd1a5c6a - main - mail/py-imapclient: Update 3.0.0

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 18 Nov 2023 20:22:48 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f627cd1a5c6ad9cb6b60562ffe94196c5467af24

commit f627cd1a5c6ad9cb6b60562ffe94196c5467af24
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2023-11-15 16:16:18 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-18 20:20:42 +0000

    mail/py-imapclient: Update 3.0.0
    
    Add two files upstream omitted from the release archive as patches.
    
    Changelog: https://github.com/mjs/imapclient/releases/tag/3.0.0
    
    PR:             275109
    See also:       https://github.com/mjs/imapclient/issues/563
---
 mail/py-imapclient/Makefile                              |  4 ++--
 mail/py-imapclient/distinfo                              |  6 +++---
 mail/py-imapclient/files/patch-tests_____init____.py     |  4 ++++
 mail/py-imapclient/files/patch-tests_imapclient__test.py | 11 +++++++++++
 4 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/mail/py-imapclient/Makefile b/mail/py-imapclient/Makefile
index 26e8d2b60e36..e1ab918239dd 100644
--- a/mail/py-imapclient/Makefile
+++ b/mail/py-imapclient/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	imapclient
-DISTVERSION=	2.3.1
+DISTVERSION=	3.0.0
 CATEGORIES=	mail python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
 
 USES=		python zip
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
 
diff --git a/mail/py-imapclient/distinfo b/mail/py-imapclient/distinfo
index f7bf89fde4e9..e7860be7c76a 100644
--- a/mail/py-imapclient/distinfo
+++ b/mail/py-imapclient/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1657925101
-SHA256 (IMAPClient-2.3.1.zip) = 26ea995664fae3a88b878ebce2aff7402931697b86658b7882043ddb01b0e6ba
-SIZE (IMAPClient-2.3.1.zip) = 213347
+TIMESTAMP = 1700063457
+SHA256 (IMAPClient-3.0.0.zip) = 93a283c733288639b07989ffcf950f4046c831f1107f634de63b4e1ef9b75eb5
+SIZE (IMAPClient-3.0.0.zip) = 244169
diff --git a/mail/py-imapclient/files/patch-tests_____init____.py b/mail/py-imapclient/files/patch-tests_____init____.py
new file mode 100644
index 000000000000..daa7b4b777b6
--- /dev/null
+++ b/mail/py-imapclient/files/patch-tests_____init____.py
@@ -0,0 +1,4 @@
+--- tests/__init__.py.orig	2023-11-15 16:04:42 UTC
++++ tests/__init__.py
+@@ -0,0 +1 @@
++# Placeholder
diff --git a/mail/py-imapclient/files/patch-tests_imapclient__test.py b/mail/py-imapclient/files/patch-tests_imapclient__test.py
new file mode 100644
index 000000000000..e7faddb91ab2
--- /dev/null
+++ b/mail/py-imapclient/files/patch-tests_imapclient__test.py
@@ -0,0 +1,11 @@
+--- tests/imapclient_test.py.orig	2023-11-15 16:02:02 UTC
++++ tests/imapclient_test.py
+@@ -0,0 +1,8 @@
++import unittest
++
++from imapclient.testable_imapclient import TestableIMAPClient as IMAPClient
++
++
++class IMAPClientTest(unittest.TestCase):
++    def setUp(self):
++        self.client = IMAPClient()