From nobody Wed Oct 04 20:02:49 2023 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 4S15G20Jh5z4w4jt; Wed, 4 Oct 2023 20:02:50 +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 4S15G16YYYz4G1c; Wed, 4 Oct 2023 20:02:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696449769; 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=4DPqXIabRphQwoST3l80bXhWW6IEBb1BgW0G1XcRJm8=; b=SRCMO6ys1W0YbsBDn4+cBtlaQKNAFPNTxPP4d/R0wNoOgqHbnJOPKUwEknQR7CEetMY+B9 9MIfnxKekrEsBSs94e8qjf++KhKAx6oRlqUzmoqUimI6IVBNt/Jg9JzHGLIqPt3T0rAFwv RGd5RC5nR6tetm9uK6TR6KlUUCPh64KlFlz/lRSBo2LZInJV9wpMA5j21Fynjvwg6SAPaJ /evjAxeJhbGiNDGT7aA3WCWFTAN+PHsMJPvqYsQ/NVcr5A3xxALV7JCAeMFp/XYoD6sJuF TywtmKwj84X9ggji2EU5NzRquQZUJuzPjRgBV5fQd6RsKQBmJPy1fJWdo4aSog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696449769; a=rsa-sha256; cv=none; b=mrI8vQPtRXbZDngmoV9LyHyTMdEiGAH5cNSJMnmDpBfKTw73VR991sq8JZSdunFq+nBw3P PzrPJonT/zwyoUAALE9Rl51S2+qLL7IsbevRE8yyDvOWdW7W/GnETcWCWFBX+UEwCFzYia KHRaiEWSZ4nXGUc+8ZnfnIJJy4p1zJCPgbiMNtMeH6rSWoVj90RXbz2FkOj35SAPp1CDl7 E8vE8vfY3GZmX9Qssltojvg3Lhaxj/tZiwqsOsTob17GsNtAGNt81PtpEAzh296sHvITD2 Pbsy2zpK9NmUGQyGn6D05xquAAE6Zwe4Y/7M142Mol3z3V3SaXVyyyb8gg3eFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696449769; 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=4DPqXIabRphQwoST3l80bXhWW6IEBb1BgW0G1XcRJm8=; b=pOU6vjSLAyqTD7umE4Za6c9/VETfHdIcYmaRfWclOTjI85goGeCu0PtiWniYivUVJ8aybG V13tl9Q1DAj0vuq8T6sCG7iuhcH5Dh7jHkOtZuRFbFBXIFlxpVO8TWkkB5vdM1fRXF0q7I rdMCfnGGXPr4k/gOG+JwI767pwN3QoBOM3mDiVlC2h/G54zqrLpchoZS/fJSH6XDE6o0P4 cy4Pq7XYPZyBKcoZDCewq0ywAIspYagYDdl/XYZ3Ie2LF2t4StVBMaeb3GCguvTBcDlr1o 0ioYfWmDODkYee0DEJ2q4oAa9dhNlEc+lNHVs9uEVzVOTAc85+doXPovBmKadA== 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 4S15G15Z13zrd8; Wed, 4 Oct 2023 20:02:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 394K2nQ1055925; Wed, 4 Oct 2023 20:02:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394K2nu8055922; Wed, 4 Oct 2023 20:02:49 GMT (envelope-from git) Date: Wed, 4 Oct 2023 20:02:49 GMT Message-Id: <202310042002.394K2nu8055922@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: d48062ec61d4 - main - textproc/py-extract-msg: Update to 0.45.0 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: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d48062ec61d4ec3420833c451f146e15a38bd9bb Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=d48062ec61d4ec3420833c451f146e15a38bd9bb commit d48062ec61d4ec3420833c451f146e15a38bd9bb Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2023-10-01 22:18:39 +0000 Commit: Robert Clausecker CommitDate: 2023-10-04 19:59:56 +0000 textproc/py-extract-msg: Update to 0.45.0 * Add devel/py-red-black-tree-mod dependency. ChangeLog: https://github.com/TeamMsgExtractor/msg-extractor/blob/v0.45.0/CHANGELOG.md * BREAKING: Changed parsing of string multiple properties to remove the trailing null byte. This *will* cause the output of parsing them to differ. * Updated typing information for some functions and classes. * Fixed a bug with `MessageSignedBase.attachments` that would cause it to return None instead of an empty list if the number of normal attachments was 0 was the error behavior was set to ignore violations of the standard. * Updated `MessageSignedBase.attachments` to use `functools.cached_property` instead of `property`. * Fixed spelling errors in some exception strings. * Made `NamedPropertyBase` a subclass of `abc.ABC`. * Cleaned up some of the code for named properties to remove unused variables and remove inefficient code. * Changed `PropBase` to be a subclass of `abc.ABC`. * Added detailed versioning info to the README. * Deprecated many private functions, including methods on many of the classes. Of primary note are `_getStream` and `_getStringStream`, which have been moved to the public API as `getStream` and `getStringStream`. Any deprecated functions still exist and will forward to a public API function if they are not being removed. Additionally, all internal usage of them has been removed. This change is one of the big preparations that is needed for the `1.0.0` release. * As mentioned, a number of these deprecated functions have been moved to the public API. It is recommended that you run tests with your code after enabling deprecation warnings to see what should be changed. * Removed items deprecated in or before `0.42.0`. * Changed the API for the private method `_genRecipient`. This is not intended for use outside of the module *except* for subclasses. The change removed the allowance of ints for the second argument, requiring that it be a valid enum type. * Convert many enum types to `IntEnum`. * Extended functionality of `PropertiesStore` to allow for integer property names and getting a property based on just the ID. You can also get a list of all properties that use a given ID. * Added new function `PropertiesStore.getProperties` which gets a list of all properties matching the property ID. Return type is a list of `PropBase` instances. * Added new function `PropertiesStore.getValue` which looks for the first matching `FixedLengthProp` and returns the value from it. * Improved internal code related to getting a property with a potentially unknown type. * Added a number of entirely new functions to the public API on `MSGFile`, `AttachmentBase`, `PropertiesStore`, and `Recipient` objects: * `getMultipleBinary`: Gets a multiple binary property as a list of `bytes` objects. * `getSingleOrMultipleBinary`: A combination of `getStream` and `getMultipleBinary` which prefers a single binary stream. Returns a single `bytes` object or a list of `bytes` objects. * `getMultipleString`: Gets a multiple string property as a list of `str` objects. * `getSingleOrMultipleString`: A combination of `getStringStream` and `getMultipleString` which prefers a single string stream. Returns a single bytes objecct or a list of bytes objects. * `getPropertyVal`: Shortcut for `instance.props.getValue` that allows new behavior to be added by overriding it. * `getNamedProp`: Shortcut for `instance.namedProperties.get((propertyName, guid), default)` that allows new behavior to be added by overriding it. * Removed `Named._getStringStream` and `Named.sExists`. The named properties storage will *always* use regular streams and not string streams. * Changed all `Named` methods to no longer have a prefix argument. The prefix should *always* be false sense the named property mapping will only exist in the top level directory. * Adjusted `tryGetMimeType` to allows any attachments whose `data` property would return a `bytes` instance. * Changed internal code to use public API functions wherever possible. This includes making many private API functions use calls to the public API for getting bits of data. * Fixed potential issue with `AttachmentBase.clsid` which had the potential to cause some attachments to fail to generate a CLSID. * Outright removed or changed a significant portion of the private API. I have rarely, if ever, seen references to these parts, so this should cause you no issues. Some of these have also been moved to the public API, either identically or with changes, and the mapping is as such: * `_getNamedAs` -> `getNamedAs`: Changed to *always* require a conversion argument. If you were previously using it to plainly get a named property or to handle the properly being None or a real value, you should use the return value of `getNamedProp` instead. * `_getPropertyAs` -> `getPropertyAs`: Same as above, use `getPropertyVal` instead for None or plain access. * `_getStreamAs` -> `getStreamAs`, `getStringStreamAs`: Once again, see above. Use `getStream` and `getStringStream`, respectively. PR: 273123 --- textproc/py-extract-msg/Makefile | 3 ++- textproc/py-extract-msg/distinfo | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/textproc/py-extract-msg/Makefile b/textproc/py-extract-msg/Makefile index 25fca306a0cb..42358e103206 100644 --- a/textproc/py-extract-msg/Makefile +++ b/textproc/py-extract-msg/Makefile @@ -1,5 +1,5 @@ PORTNAME= extract-msg -DISTVERSION= 0.44.0 +DISTVERSION= 0.45.0 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -19,6 +19,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.11.1:www/py-beautifulsoup@$ ${PYTHON_PKGNAMEPREFIX}imapclient>=2.1.0:mail/py-imapclient@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}olefile>=0.46:devel/py-olefile@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz-deprecation-shim>0:devel/py-pytz-deprecation-shim@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}red-black-tree-mod>=0:devel/py-red-black-tree-mod@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}RTFDE>=0.0.2:textproc/py-RTFDE@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tzlocal>=4.2:devel/py-tzlocal@${PY_FLAVOR} diff --git a/textproc/py-extract-msg/distinfo b/textproc/py-extract-msg/distinfo index b09ba1fb69c5..c7f12e8e1033 100644 --- a/textproc/py-extract-msg/distinfo +++ b/textproc/py-extract-msg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1691703145 -SHA256 (extract_msg-0.44.0.tar.gz) = 6f51ca87ffdbc2c8d28589d7221bfb8710e6af164037a3ee574bef35f4470397 -SIZE (extract_msg-0.44.0.tar.gz) = 292825 +TIMESTAMP = 1691959858 +SHA256 (extract_msg-0.45.0.tar.gz) = 6814865cf2ba806bd69af53af688a13e000a95d4991cce6a0416b3bdeb739496 +SIZE (extract_msg-0.45.0.tar.gz) = 298409