FreeBSD Bugzilla – Attachment 232565 Details for
Bug 262232
[NEW PORT] mail/py-imaplib2: Threaded IMAP4 python client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mail/py-imaplib2 threaded IMAP4 python client.
0001-mail-py-imaplib2-New-port-mail-py-imaplib2.patch (text/plain), 3.38 KB, created by
Derek Schrock
on 2022-03-18 23:35:31 UTC
(
hide
)
Description:
mail/py-imaplib2 threaded IMAP4 python client.
Filename:
MIME Type:
Creator:
Derek Schrock
Created:
2022-03-18 23:35:31 UTC
Size:
3.38 KB
patch
obsolete
>From f619552b0cd4ec1f62eaaf30c9db314398c72cf2 Mon Sep 17 00:00:00 2001 >From: Derek Schrock <dereks@lifeofadishwasher.com> >Date: Sat, 26 Feb 2022 23:13:04 -0500 >Subject: [PATCH] mail/py-imaplib2: New port mail/py-imaplib2 > >New port mail/py-imaplib2 threaded IMAP4 python client. >Needed for mail/py-offlineimap3 > >Tested with py-offlineimap3. Been using the 8.0.0 python3 version in a venv via pip-install for over a week and pkg install version for a couple days. > >Add tests file not included in current sdist > >Differential Revision: https://reviews.freebsd.org/D34390 >--- > mail/Makefile | 1 + > mail/py-imaplib2/Makefile | 27 ++++++++++++++++++++++++++ > mail/py-imaplib2/distinfo | 3 +++ > mail/py-imaplib2/files/test_imports.py | 8 ++++++++ > mail/py-imaplib2/pkg-descr | 7 +++++++ > 5 files changed, 46 insertions(+) > create mode 100644 mail/py-imaplib2/Makefile > create mode 100644 mail/py-imaplib2/distinfo > create mode 100644 mail/py-imaplib2/files/test_imports.py > create mode 100644 mail/py-imaplib2/pkg-descr > >diff --git a/mail/Makefile b/mail/Makefile >index af4fd9afee..2e11b59315 100644 >--- a/mail/Makefile >+++ b/mail/Makefile >@@ -498,6 +498,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 0000000000..c2d1b4456a >--- /dev/null >+++ b/mail/py-imaplib2/Makefile >@@ -0,0 +1,27 @@ >+PORTNAME= imaplib2 >+PORTVERSION= 3.6 >+CATEGORIES= mail python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= dereks@lifeofadishwasher.com >+COMMENT= Threaded Python IMAP4 client >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENCE >+ >+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} >+ >+USES= python:3.6-3.9 >+USE_PYTHON= autoplist distutils >+ >+NO_ARCH= yes >+ >+post-extract: >+ @${MKDIR} ${WRKSRC}/${PORTNAME}/tests >+ @${CP} ${FILESDIR}/test_imports.py ${WRKSRC}/${PORTNAME}/tests/ >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= ${PORTNAME}/tests >+ >+.include <bsd.port.mk> >diff --git a/mail/py-imaplib2/distinfo b/mail/py-imaplib2/distinfo >new file mode 100644 >index 0000000000..e773d2ea4d >--- /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 0000000000..9243718034 >--- /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 0000000000..fb4b841428 >--- /dev/null >+++ b/mail/py-imaplib2/pkg-descr >@@ -0,0 +1,7 @@ >+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. >+ >+WWW: https://github.com/jazzband/imaplib2/ >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262232
:
232143
|
232565
|
235736
|
237447