From nobody Tue Dec 27 14:50:59 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 4NhHdv3M62z2cDN3; Tue, 27 Dec 2022 14:50:59 +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 4NhHdv2qs4z3CpZ; Tue, 27 Dec 2022 14:50:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672152659; 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=lJp/GqFfCesuou27G8j+Pq0g6SWONjmD9zO9xyqUc+4=; b=O5ieun7Cr+nxbPJCyqZhQn9HYkbSgaNDGozoy2cLTOShsmUfZwZ3qMlqoXAPtPPHTe+wmY Or68v9JjHnZChDru8RCQUzr04g+JQGlNJusoyKfoLJhk1xOvJZ/iYSS3SqRsWe3SceZGOm OtfFAzaWmiUfidI9v+7wpX9jcxpgOZmAANx8wulXJst+rmSMZs6B99G5X5ua5CFbeCghkz XBii9LczkxtFr0vAMUDohzI8dUQhzGQmFldfTdey3H6uZj/8UJUPviendjoRXAkOfwJKcH PuUc9owPuvFyc2sic5b4eHw0JfkLwrhli/ySqUSrIXb+7LTwBUwP9FUgyxcemQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672152659; 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=lJp/GqFfCesuou27G8j+Pq0g6SWONjmD9zO9xyqUc+4=; b=yK0QJSOq77wWXXgbsb4Xq/UWuhAT7zlQnicX4DsQt7OOxKBvBTTawBkuH+g1/xslHtcf/K gFklCMgq0Guh4fZPkE9Mdx9DGZLHleqXojMTHa+PJWlIXe9tRrQscgcc0dLPMTs8JXh9rb OXmKoDy+TjJLa6aqLG7/jy1HIDQeZpx25KbQQAIOtVUzP5CICQTW8BB4i9Y06ZSnOX557K 8r99gvcKwxm8/YsQwohcRX5atOplgTFVq4wCJva8E0VgJZYaJgRBsTIQOOgI002gayagyX K/Afr7XOS2M4XZaLDdYV1iJFa4LRZhtcB9W0R/iZ/SC2D1sMgvM8nbS8SQFu1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672152659; a=rsa-sha256; cv=none; b=CqyyReqXFVFmxCEBAZA+o0SgzfkzeFFv4cC99TMu9kQtQMLRPD6DkJtBbGuvfnWrqKoN4Z 2v8r49e36rTE5+dSASJalwS8+uD1oD/lC5u6/8hyFKA3oHvLHQ7ycFmwIBo25ImSOLsjxg 4extARWZOlRUgRShYGKI9imjEvx6+0noWfAVNDEZ/bCweDYberZzIqQuUylplkFWfpuL0J 2YTMLT7RTzzeuVguXaVEASN4lYnkCJQowbgvIGTm2tAv2r00noHdt5sqIy1vGyeUVG5PGG KbzQHPsrod9UnNe1/OrYb8ZcclcRc3xD007gsepAabUal5O5S05RScD8Mxiu3A== 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 4NhHdv1vZPzF1J; Tue, 27 Dec 2022 14:50:59 +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 2BREoxQf092421; Tue, 27 Dec 2022 14:50:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BREox1d092420; Tue, 27 Dec 2022 14:50:59 GMT (envelope-from git) Date: Tue, 27 Dec 2022 14:50:59 GMT Message-Id: <202212271450.2BREox1d092420@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kurt Jaeger Subject: git: d7dae55775cc - main - mail/py-imaplib2: Threaded Python IMAP4 client (new port) 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: pi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d7dae55775cc194a78e021b72da3a4348f9dbfab Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pi: URL: https://cgit.FreeBSD.org/ports/commit/?id=d7dae55775cc194a78e021b72da3a4348f9dbfab commit d7dae55775cc194a78e021b72da3a4348f9dbfab Author: Derek Schrock AuthorDate: 2022-12-27 14:49:19 +0000 Commit: Kurt Jaeger CommitDate: 2022-12-27 14:49:19 +0000 mail/py-imaplib2: Threaded Python IMAP4 client (new port) Based on RFC 3501 and original imaplib module. This is a version of imaplib that uses threads to allow full use of the IMAP4 concurrency features, and to de-couple a user of imaplib from i/o lags, except where explicitly allowed. PR: 262232 Author: Derek Schrock Differential Revision: https://reviews.freebsd.org/D34390 --- mail/Makefile | 1 + mail/py-imaplib2/Makefile | 25 +++++++++++++++++++++++++ mail/py-imaplib2/distinfo | 3 +++ mail/py-imaplib2/files/test_imports.py | 8 ++++++++ mail/py-imaplib2/pkg-descr | 5 +++++ 5 files changed, 42 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 285f1c29d3d1..2ce4e39f4fdc 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -505,6 +505,7 @@ SUBDIR += py-flufl.bounce SUBDIR += py-fuglu SUBDIR += py-imapclient + SUBDIR += py-imaplib2 SUBDIR += py-mail-parser SUBDIR += py-mailmanclient SUBDIR += py-mailnag diff --git a/mail/py-imaplib2/Makefile b/mail/py-imaplib2/Makefile new file mode 100644 index 000000000000..3346b1d56e99 --- /dev/null +++ b/mail/py-imaplib2/Makefile @@ -0,0 +1,25 @@ +PORTNAME= imaplib2 +PORTVERSION= 3.6 +CATEGORIES= mail python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dereks@lifeofadishwasher.com +COMMENT= Threaded Python IMAP4 client +WWW= https://github.com/jazzband/imaplib2/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENCE + +USES= pytest python:3.6-3.9 +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +# Copy tests until a new release +# https://github.com/jazzband/imaplib2/pull/38 +post-extract: + @${MKDIR} ${WRKSRC}/${PORTNAME}/tests + @${CP} ${FILESDIR}/test_imports.py ${WRKSRC}/${PORTNAME}/tests/ + +.include diff --git a/mail/py-imaplib2/distinfo b/mail/py-imaplib2/distinfo new file mode 100644 index 000000000000..e773d2ea4d8c --- /dev/null +++ b/mail/py-imaplib2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645916681 +SHA256 (imaplib2-3.6.tar.gz) = 96cb485b31868a242cb98d5c5dc67b39b22a6359f30316de536060488e581e5b +SIZE (imaplib2-3.6.tar.gz) = 26252 diff --git a/mail/py-imaplib2/files/test_imports.py b/mail/py-imaplib2/files/test_imports.py new file mode 100644 index 000000000000..9243718034b1 --- /dev/null +++ b/mail/py-imaplib2/files/test_imports.py @@ -0,0 +1,8 @@ +def test_import_normally(): + from imaplib2 import IMAP4_SSL + assert IMAP4_SSL + + +def test_import_hack(): + from imaplib2.imaplib2 import IMAP4_SSL + assert IMAP4_SSL diff --git a/mail/py-imaplib2/pkg-descr b/mail/py-imaplib2/pkg-descr new file mode 100644 index 000000000000..a9cba87ba71f --- /dev/null +++ b/mail/py-imaplib2/pkg-descr @@ -0,0 +1,5 @@ +Based on RFC 3501 and original imaplib module. + +This is a version of imaplib that uses threads to allow full use of +the IMAP4 concurrency features, and to de-couple a user of imaplib +from i/o lags, except where explicitly allowed.