From nobody Fri Nov 22 06:28:09 2024 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 4XvlXT4Qx6z5dSDP; Fri, 22 Nov 2024 06:28:09 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvlXT3hPKz464C; Fri, 22 Nov 2024 06:28:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732256889; 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=o/MYu8qo+ACWk6itKneGWy2Z3yxPssyiXBf3XWY9UTw=; b=ALuMeE8fIdZcglg3bfvNknJCSMIcd0VNpc/bm0P1L192iUO6U3vgQePlfYg3nD/OMZa+Ls iQqVcR5dgcAcO8c/cDUOxA+JZ4UqqsiKX8d6EOWQljqIC1YhyH6pKVEty8+OMXGzkC4Ohg edw1n/rfZO5IQV5lEme+ziwpni9U9X/D89SJMHG1xAdnpFR9gokZhWplx/BdCVq1LVvc+u UBG91R0ncpBHGMLLHobCtz86O3VgbwQvWdrNQvMjG/IzEb+qnF1TgXtAU8ouK6WKEPyA2f IsAvBhfb2RCMBdWZiwYRLfpoICCfANgFEL5dNpRo+RS8cBMdw7JR6i/Tdt9Pdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732256889; 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=o/MYu8qo+ACWk6itKneGWy2Z3yxPssyiXBf3XWY9UTw=; b=Wx9GzVFOjzbqka3Xk78vp51tQKepUTPuKZeMVXjggFX7yAbUyCboiYyknBSOyMP1DFWEom eClO+GJ643FclOM87Qi6/eLwQtLfr1MLOz2O3FUkF+hFc7nAPHeIfmL4xjf5FardouZj4W 38wJ8MKVhYFId0fwQQTwTulge/4fz7Udy/7NSSwII9JaLhe1om5HXdks/g9MxB1eR6z4+8 39a/fWEFctUeNceWEuiY/tx4W/5oSlOLYiciYuaUnN4BFrCwDgTNkQUw/1EreqkyBN3IaO /0mG5hggaIUX+3VrL8ILdyEL7NU+c23BTSdR+Vd4Ghp8zi60v7+jjH3PX2g5ag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732256889; a=rsa-sha256; cv=none; b=b1w39Je0f9jkSFnZS34tDS8IYxtn3E2NU6KXxoyOWIIWxmC44WVD7VOm34Iv7UsHq6v3v6 +BqMsuAq+5BMFBVhzhrv3Q6o1R0jDjG4nGImSM6nmRFlmOhcR2p/HkFlOCWPf/USDof5QN EJaVsrRIKLjJXSz1eyPblY0iDDuPfJb1HhC2Rhc/QdHpXgGjqSDODgL+URExwNDdy+C2t2 jDH+OF4s+KQWIQ5yTn3mHoiqAsiyFqKxbP1HdPPNuaIisHpF53z5+PohML+xWKWpNQmRbi 5IPsyfsal/AeEnwT2NNDnwbbIgCDp8UVde30t/y4MAxGam/9Xj0GKV4UvpXiHQ== 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 4XvlXT38Lkz1CPV; Fri, 22 Nov 2024 06:28:09 +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 4AM6S9hs005141; Fri, 22 Nov 2024 06:28:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AM6S9hR005138; Fri, 22 Nov 2024 06:28:09 GMT (envelope-from git) Date: Fri, 22 Nov 2024 06:28:09 GMT Message-Id: <202411220628.4AM6S9hR005138@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: 5739121e2438 - main - www/py-httpx-ws: Add py-httpx-ws 0.6.2 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-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: 5739121e2438e385e74cd5318ddf6a31ebf2aa4d Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5739121e2438e385e74cd5318ddf6a31ebf2aa4d commit 5739121e2438e385e74cd5318ddf6a31ebf2aa4d Author: Po-Chuan Hsieh AuthorDate: 2024-11-22 06:21:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-11-22 06:21:35 +0000 www/py-httpx-ws: Add py-httpx-ws 0.6.2 httpx-ws provides WebSocket support for HTTPX. Features: - Sync and async client - Helper methods to send text, binary and JSON data - Helper methods to receive text, binary and JSON data - Automatic ping/pong answers - HTTPX transport to test WebSockets defined in ASGI apps - Automatic keepalive ping - asyncio and Trio support through AnyIO --- www/Makefile | 1 + www/py-httpx-ws/Makefile | 28 ++++++++++++++++++++++++++++ www/py-httpx-ws/distinfo | 3 +++ www/py-httpx-ws/pkg-descr | 10 ++++++++++ 4 files changed, 42 insertions(+) diff --git a/www/Makefile b/www/Makefile index 68a466c10b4a..8452991d8cf5 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1752,6 +1752,7 @@ SUBDIR += py-httpx-gssapi SUBDIR += py-httpx-oauth SUBDIR += py-httpx-socks + SUBDIR += py-httpx-ws SUBDIR += py-hypercorn SUBDIR += py-hyperframe SUBDIR += py-hyperlink diff --git a/www/py-httpx-ws/Makefile b/www/py-httpx-ws/Makefile new file mode 100644 index 000000000000..42dc23795490 --- /dev/null +++ b/www/py-httpx-ws/Makefile @@ -0,0 +1,28 @@ +PORTNAME= httpx-ws +PORTVERSION= 0.6.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= httpx_ws-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= WebSockets support for HTTPX +WWW= https://frankie567.github.io/httpx-ws/ \ + https://github.com/frankie567/httpx-ws + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-regex-commit>=0:devel/py-hatch-regex-commit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4:devel/py-anyio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpcore>=1.0.4:www/py-httpcore@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.1:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wsproto>=0:net/py-wsproto@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/www/py-httpx-ws/distinfo b/www/py-httpx-ws/distinfo new file mode 100644 index 000000000000..1c079444dad5 --- /dev/null +++ b/www/py-httpx-ws/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1732239502 +SHA256 (httpx_ws-0.6.2.tar.gz) = b07446b9067a30f1012fa9851fdfd14207012cd657c485565884f90553d0854c +SIZE (httpx_ws-0.6.2.tar.gz) = 23430 diff --git a/www/py-httpx-ws/pkg-descr b/www/py-httpx-ws/pkg-descr new file mode 100644 index 000000000000..adf0cd41d159 --- /dev/null +++ b/www/py-httpx-ws/pkg-descr @@ -0,0 +1,10 @@ +httpx-ws provides WebSocket support for HTTPX. + +Features: +- Sync and async client +- Helper methods to send text, binary and JSON data +- Helper methods to receive text, binary and JSON data +- Automatic ping/pong answers +- HTTPX transport to test WebSockets defined in ASGI apps +- Automatic keepalive ping +- asyncio and Trio support through AnyIO