From nobody Thu Nov 02 07:40:39 2023 X-Original-To: dev-commits-ports-all@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 4SLbQJ1d1Gz50H11; Thu, 2 Nov 2023 07:40:40 +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 4SLbQJ1BbQz4M57; Thu, 2 Nov 2023 07:40:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698910840; 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=PDRsd7cEja8k5F4QoTtd2vfBDLVFstGLGJ8pIBVacdU=; b=Qf5BDOPRt1jbml1JtZ3pByfTO/jpsIszea4wFVXmlR29P9BIRC2bu8OEtazzHHpA0KK8VJ 2xPDfhGd8gXstYzMC9KDpLHjSvw3qPNFvsF1eUVHeOIfWQlpCEyaqIZCdBGKGWg0G647eb TFU0+I6KrkVs33t37aXmH2P7SsnMitXLaV5d3OwCU/GymzKT6Mb+sNaSYbaxbCddA/2ndl jo/zKPlrhnFiU5HY2UP7g32xPfBrJPgAEWrImYQGUajEyv2FmiDiYGWLRY3kS+9H+MtAlm XgYpJioDp6RG8LnLgwsjee7u0CFX7Im5qu7z2wwZKeZvmk3ggBq/kVX6/KbJbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698910840; 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=PDRsd7cEja8k5F4QoTtd2vfBDLVFstGLGJ8pIBVacdU=; b=EYMteHpl+6//V48ZuCZJMbqA6FuIqE0mReooMbyaousIgGDpceXE1VNjBJVaHxHsD85t6/ zS7qE8gwXwlwTqqpZI8jH8NAFL6TKeldoCbs1b2Av8+tLfq8EtrpRCYhENsB2ZGZy8toiZ ZUpxNWaH0WrHa35PD9qj/e6fcPYQGskVtyrOPdNWpcStIfJXFPB/fVWHmslnb2kk9sb9JS kmVTovUxkF0LRN3gB6aDsNmzjdIVkvFIpnCL8FINgYYOliEqVPriiDjOaUVwteKyt+0oce pRC0Fsw3euqvzrT0jHhy+OANfkBAB4CicpcKdnQFBATMOYYGdis1IWeSC1QZOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698910840; a=rsa-sha256; cv=none; b=tlGlJ0FlOxyIBKLpWS+7I7ngIJHC/hFxoWK3t6zoEmq8CWqUFdO7r8Y4ryzab1IbK5PNyR rO4IGXcmaHaDE5fQjI/ZJ+IhDZrycB+t92GIIQIHyZ72+Awz9Vxr4f3cYZTXNYmRz1iPOq djK6VYgXgN6aSlADl/GJAchqKsQnX5ZfhSOvIH61KR74WLwQXKVBsKBSRWfWHBJqpNcPdw aLgeW5y5d1DNiWQUTUpolsA51BvnnF8o4n0I4PzqaaSTjHKAPgzzXTO70HsM/FwIBXAl6Y qpQEGVFLXPrRoKFwnRoUTqudcMYDj6MDq6hIR5cAB25j8+/+rJ+821xhWVLoVg== 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 4SLbQJ0Gbrz5sc; Thu, 2 Nov 2023 07:40:40 +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 3A27edRg030429; Thu, 2 Nov 2023 07:40:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A27edR3030426; Thu, 2 Nov 2023 07:40:39 GMT (envelope-from git) Date: Thu, 2 Nov 2023 07:40:39 GMT Message-Id: <202311020740.3A27edR3030426@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 2a0ccb4c3f80 - main - devel/py-multipart: Add py-multipart 0.2.4 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2a0ccb4c3f805490ccdbb57ac6df76038996db9b Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a0ccb4c3f805490ccdbb57ac6df76038996db9b commit 2a0ccb4c3f805490ccdbb57ac6df76038996db9b Author: Po-Chuan Hsieh AuthorDate: 2023-11-02 07:33:25 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-11-02 07:37:17 +0000 devel/py-multipart: Add py-multipart 0.2.4 Multipart provides a parser for the multipart/form-data format. It can read from a file, a socket or a WSGI environment. The parser can be used to replace cgi.FieldStorage to work around its limitations. Features: - Parses multipart/form-data and application/x-www-form-urlencoded. - Produces useful error messages in 'strict'-mode. - Gracefully handle uploads of unknown size (missing Content-Length header). - Fast memory mapped files (io.BytesIO) for small uploads. - Temporary files on disk for big uploads. - Memory and disk resource limits to prevent DOS attacks. - Fixes many shortcomings and bugs of cgi.FieldStorage. - 100% test coverage. --- devel/Makefile | 1 + devel/py-multipart/Makefile | 19 +++++++++++++++++++ devel/py-multipart/distinfo | 3 +++ devel/py-multipart/pkg-descr | 13 +++++++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e62245b80ab8..496744fdd558 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5025,6 +5025,7 @@ SUBDIR += py-msgpack SUBDIR += py-mulpyplexer SUBDIR += py-multi_key_dict + SUBDIR += py-multipart SUBDIR += py-multipledispatch SUBDIR += py-multiprocess SUBDIR += py-multiset diff --git a/devel/py-multipart/Makefile b/devel/py-multipart/Makefile new file mode 100644 index 000000000000..957169c8d311 --- /dev/null +++ b/devel/py-multipart/Makefile @@ -0,0 +1,19 @@ +PORTNAME= multipart +PORTVERSION= 0.2.4 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Parser for multipart/form-data +WWW= https://github.com/defnull/multipart + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-multipart/distinfo b/devel/py-multipart/distinfo new file mode 100644 index 000000000000..3ff85e2fea6c --- /dev/null +++ b/devel/py-multipart/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1698848686 +SHA256 (multipart-0.2.4.tar.gz) = 06ba205360bc7096fefe618e4f1e9b2cdb890b4f2157053a81f386912a2522cb +SIZE (multipart-0.2.4.tar.gz) = 22300 diff --git a/devel/py-multipart/pkg-descr b/devel/py-multipart/pkg-descr new file mode 100644 index 000000000000..c089b460eb80 --- /dev/null +++ b/devel/py-multipart/pkg-descr @@ -0,0 +1,13 @@ +Multipart provides a parser for the multipart/form-data format. It can read from +a file, a socket or a WSGI environment. The parser can be used to replace +cgi.FieldStorage to work around its limitations. + +Features: +- Parses multipart/form-data and application/x-www-form-urlencoded. +- Produces useful error messages in 'strict'-mode. +- Gracefully handle uploads of unknown size (missing Content-Length header). +- Fast memory mapped files (io.BytesIO) for small uploads. +- Temporary files on disk for big uploads. +- Memory and disk resource limits to prevent DOS attacks. +- Fixes many shortcomings and bugs of cgi.FieldStorage. +- 100% test coverage.