Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2024 16:00:21 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d3ee9851a513 - main - net/py-urllib3-future: Add py-urllib3-future 2.12.904
Message-ID:  <202412311600.4BVG0LFx081291@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d3ee9851a513632852b44e953adb80bd8ed2a0b9

commit d3ee9851a513632852b44e953adb80bd8ed2a0b9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-31 15:38:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <bsd.port.mk>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412311600.4BVG0LFx081291>