From nobody Tue Dec 31 16:00:21 2024 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 4YMyNk0j4Vz5jdll; Tue, 31 Dec 2024 16:00:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMyNj3cmzz41wD; Tue, 31 Dec 2024 16:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735660821; 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=RScDRfc4phpUTNdUyT8nkFv0ym7zPTD4RYYlY4Sf2uE=; b=dx62/EVI7gpN6DtzlohI19sv4H/gdU5DGVxSC707/15THak7D2bKiEWIT2kN11Ccjaorwy dDRiU3jg+deu9ILpt/nAemTPg717Oe47JyD7gTSrTjZJcRqO+vNHEKxsaDN/LGk1+zuxvw uu8h+kFbm4DK+/bJifhro+U24JGA9jxnEquZb6zJSZSGPgO3JFpUHVH9W9SpiflBL+Wyic UsLC8ms0vtuKLL72Aq5GoMxnCYjs5iY8zg1NmWvWG1d7uU9Kmp2kUlLdh1Hax9nMKwXWso OxuHFGop3g+ShB4V/qpU5tNjJan7WmF6kUGrlzPK3PImDgLuu2I+VBBjt6iqkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735660821; 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=RScDRfc4phpUTNdUyT8nkFv0ym7zPTD4RYYlY4Sf2uE=; b=EW88KMt8YU3FJqVY8NDJBBjXfFZ5QRzXnVWFouuWgXAnxyb3x0R9yXQUx4YMO5KwL454QL /lPSIZ22c2KyAyhL349EZ2OyOadqlr0Y06JmENqsD6WAGSY/kHHt5bPks1BBZz1PduZoUR JFZxqkvShoqBZqoGE0+9tu95K+6XFtekOTKgtmGwqbIAIHoMqujJ8WbbBQGtaI/kwelJKW T3AWCkf7+56bXpxMHdUG0ICEO05Gkojn7GeMoiklNElvPNRrwimEr4EkFYd69qMFEVW0n8 XDOEUi3p9dKAGZOYB5t2upxq4SoTV/wEPyeGnGe+qVjCJ884NP6V6JdQEIowFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735660821; a=rsa-sha256; cv=none; b=n5sWx+44j9O/axgCPIC4SUkgEs7Oov9KrPkNeC8d7buc17+waXfLe6VNnUq9MZ44hGQTYa j0WFUqytd0r5EP48Z06wnqIqZKpTJNRa65NHZKyknEHvdIRjZK8odHH8ZtoHxjYf15XdRh tXofjFXiX8sjcHk85Y+wq0BrM0vhi/+COpgLcvqJbCqGeYO7fSugmUfL5xEZ8C7AanG+Jv QiPMXJapVNm8zbOZVe31e/XSCl9NsMJmi9VauFX00NQjYmQ5cxx3z71q2fnqS19kmv7eC7 9VwerDlV0EI03HGHG5D/ohpYr4z4+M/p/cGZ+yX+UzF12OL2vTPPjroc5nBWsQ== 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 4YMyNj35T0zlyS; Tue, 31 Dec 2024 16:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BVG0LRV081294; Tue, 31 Dec 2024 16:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BVG0LFx081291; Tue, 31 Dec 2024 16:00:21 GMT (envelope-from git) Date: Tue, 31 Dec 2024 16:00:21 GMT Message-Id: <202412311600.4BVG0LFx081291@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: d3ee9851a513 - main - net/py-urllib3-future: Add py-urllib3-future 2.12.904 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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: d3ee9851a513632852b44e953adb80bd8ed2a0b9 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d3ee9851a513632852b44e953adb80bd8ed2a0b9 commit d3ee9851a513632852b44e953adb80bd8ed2a0b9 Author: Po-Chuan Hsieh AuthorDate: 2024-12-31 15:38:13 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-12-31 15:38:13 +0000 net/py-urllib3-future: Add py-urllib3-future 2.12.904 urllib3.future is a powerful, user-friendly HTTP client for Python. urllib3.future goes beyond supported features while remaining compatible. urllib3.future brings many critical features that are missing from both the Python standard libraries and urllib3: - Async. - Task safety. - Thread safety. - Happy Eyeballs. - Connection pooling. - Unopinionated about OpenSSL. - Client-side SSL/TLS verification. - Highly customizable DNS resolution. - File uploads with multipart encoding. - DNS over UDP, TLS, QUIC, or HTTPS. DNSSEC protected. - Helpers for retrying requests and dealing with HTTP redirects. - Automatic Keep-Alive for HTTP/1.1, HTTP/2, and HTTP/3. - Support for gzip, deflate, brotli, and zstd encoding. - Support for Python/PyPy 3.7+, no compromise. - Automatic Connection Upgrade / Downgrade. - Early (Informational) Responses / Hints. - HTTP/1.1, HTTP/2 and HTTP/3 support. - WebSocket over HTTP/2+ (RFC8441). - Proxy support for HTTP and SOCKS. - Post-Quantum Security with QUIC. - Detailed connection inspection. - HTTP/2 with prior knowledge. - Server Side Event (SSE). - Multiplexed connection. - Mirrored Sync & Async. - Trailer Headers. - Amazingly Fast. - WebSocket. urllib3.future is powerful and easy to use. --- net/Makefile | 1 + net/py-urllib3-future/Makefile | 26 +++++++++++++++++ net/py-urllib3-future/distinfo | 3 ++ net/py-urllib3-future/files/patch-pyproject.toml | 11 ++++++++ net/py-urllib3-future/pkg-descr | 36 ++++++++++++++++++++++++ 5 files changed, 77 insertions(+) diff --git a/net/Makefile b/net/Makefile index 2ca0481b0cce..5a2f23cf0419 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1191,6 +1191,7 @@ SUBDIR += py-url-normalize SUBDIR += py-urlextract SUBDIR += py-urllib3 + SUBDIR += py-urllib3-future SUBDIR += py-whois SUBDIR += py-wmi-query SUBDIR += py-wsdd diff --git a/net/py-urllib3-future/Makefile b/net/py-urllib3-future/Makefile new file mode 100644 index 000000000000..bbc0868552f2 --- /dev/null +++ b/net/py-urllib3-future/Makefile @@ -0,0 +1,26 @@ +PORTNAME= urllib3-future +PORTVERSION= 2.12.904 +CATEGORIES= net python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= urllib3_future-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Powerful HTTP 1.1, 2, and 3 client with both sync and async interfaces +WWW= https://urllib3future.readthedocs.io/en/latest/ \ + https://github.com/jawah/urllib3.future + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.6.0<2:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h11>=0.11.0<1.0.0:net/py-h11@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jh2>=5.0.3<6.0.0:www/py-jh2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qh3>=1.0.0<2.0.0:www/py-qh3@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/net/py-urllib3-future/distinfo b/net/py-urllib3-future/distinfo new file mode 100644 index 000000000000..d56b942bb426 --- /dev/null +++ b/net/py-urllib3-future/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1735227770 +SHA256 (urllib3_future-2.12.904.tar.gz) = 69da08d40d34dec3055bb7a4de06701de6dba0eb8fb3deaabf9a5e9dc526688b +SIZE (urllib3_future-2.12.904.tar.gz) = 1058516 diff --git a/net/py-urllib3-future/files/patch-pyproject.toml b/net/py-urllib3-future/files/patch-pyproject.toml new file mode 100644 index 000000000000..13507ca4d4b5 --- /dev/null +++ b/net/py-urllib3-future/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2024-12-22 10:26:46 UTC ++++ pyproject.toml +@@ -40,7 +40,7 @@ dependencies = [ + requires-python = ">=3.7" + dynamic = ["version"] + dependencies = [ +- "qh3>=1.2.0,<2.0.0; (platform_python_implementation != 'CPython' or python_full_version > '3.7.10') and (platform_system == 'Darwin' or platform_system == 'Windows' or platform_system == 'Linux') and (platform_machine == 'x86_64' or platform_machine == 's390x' or platform_machine == 'aarch64' or platform_machine == 'armv7l' or platform_machine == 'ppc64le' or platform_machine == 'ppc64' or platform_machine == 'AMD64' or platform_machine == 'arm64' or platform_machine == 'ARM64') and (platform_python_implementation == 'CPython' or (platform_python_implementation == 'PyPy' and python_version < '3.11'))", ++ "qh3>=1.0.0,<2.0.0; (platform_python_implementation != 'CPython' or python_full_version > '3.7.10') and (platform_system == 'Darwin' or platform_system == 'Windows' or platform_system == 'Linux') and (platform_machine == 'x86_64' or platform_machine == 's390x' or platform_machine == 'aarch64' or platform_machine == 'armv7l' or platform_machine == 'ppc64le' or platform_machine == 'ppc64' or platform_machine == 'AMD64' or platform_machine == 'arm64' or platform_machine == 'ARM64') and (platform_python_implementation == 'CPython' or (platform_python_implementation == 'PyPy' and python_version < '3.11'))", + "h11>=0.11.0,<1.0.0", + "jh2>=5.0.3,<6.0.0", + ] diff --git a/net/py-urllib3-future/pkg-descr b/net/py-urllib3-future/pkg-descr new file mode 100644 index 000000000000..f61ac8e14efa --- /dev/null +++ b/net/py-urllib3-future/pkg-descr @@ -0,0 +1,36 @@ +urllib3.future is a powerful, user-friendly HTTP client for Python. + +urllib3.future goes beyond supported features while remaining compatible. + +urllib3.future brings many critical features that are missing from both the +Python standard libraries and urllib3: +- Async. +- Task safety. +- Thread safety. +- Happy Eyeballs. +- Connection pooling. +- Unopinionated about OpenSSL. +- Client-side SSL/TLS verification. +- Highly customizable DNS resolution. +- File uploads with multipart encoding. +- DNS over UDP, TLS, QUIC, or HTTPS. DNSSEC protected. +- Helpers for retrying requests and dealing with HTTP redirects. +- Automatic Keep-Alive for HTTP/1.1, HTTP/2, and HTTP/3. +- Support for gzip, deflate, brotli, and zstd encoding. +- Support for Python/PyPy 3.7+, no compromise. +- Automatic Connection Upgrade / Downgrade. +- Early (Informational) Responses / Hints. +- HTTP/1.1, HTTP/2 and HTTP/3 support. +- WebSocket over HTTP/2+ (RFC8441). +- Proxy support for HTTP and SOCKS. +- Post-Quantum Security with QUIC. +- Detailed connection inspection. +- HTTP/2 with prior knowledge. +- Server Side Event (SSE). +- Multiplexed connection. +- Mirrored Sync & Async. +- Trailer Headers. +- Amazingly Fast. +- WebSocket. + +urllib3.future is powerful and easy to use.