From nobody Thu Dec 14 20:53:56 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 4Srl2D3046z53lN5; Thu, 14 Dec 2023 20:53:56 +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 4Srl2D2XjSz4YFJ; Thu, 14 Dec 2023 20:53:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702587236; 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=1tYLY7kK5E2vmG8uU8uwOWtgr086CDwybKKuj5t+6R0=; b=vQxH5Ii1u3ZZ+lxV0b47csAxck8Cu+9afBzSqWxe7JTqt15i846wQm3S7GChvqSD8wFTZo QvybECXkNX3JI1wu04+43MKqymSCkTeMRoQ6ytcbLNkGBWzn0gFfAtZ68XaPjo+SocdUb0 b4LDzN+Ygawggmutd05X5DV8YoAQDfEdVBmWJsZC4ymlOulEWYBU+pet239cYgAe49g24P s9eARdBWBVp+IVDMtpVXjh4d9GGjGO1jlJQSrvNtGA9GEAdvbcNRLNEqY5AT7EGopw3f3f cDk64YYB/LaF2tCyc5fGVQg789q9WUhGBENsbkhx8s2jauB9YOd+Sx8L1ZCvPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702587236; a=rsa-sha256; cv=none; b=HsViUdyguNkHM6ilYC9dQS1vWJ/k3/hjTQTpjJ5THa467jsnFj38gce4g6MWau/NsMXWn+ tO3f50yDAHy4CMo9/T2E634wb2Exyk+p8tiJ6ZqfdzmvQIkzh50HLfdanw84N5LBHtHfm5 MCXqdgpp7RXwHnplOtq0DRfacgIBrH3ErgWyiaSaxH7gDU9nB9nWrEP/90EcULlsy/762H 7QRDvQByvtnEPNUx6mu6jA9Pp/kP1cMI/dgrAqpxASXChvqxhzlcbasmZ1N+zdl4Y9v7gq uGoJhyPuwh16UPXZNL/P1EGXfxiGHyIbmGQftS+AF4N+5AuZcakacxS4zf6hnw== 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=1702587236; 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=1tYLY7kK5E2vmG8uU8uwOWtgr086CDwybKKuj5t+6R0=; b=TTzn8SiV+9hbERFrHx4avllY7WiyvlSV/N5247OnWHBTpYHY3wD7uI6oOBWnYGuwQyRBh8 Hb4pOHpQqv1xXkgbsA/69E7Na4EF5OzQdN2RseUrHuvkLB6IgjCI+7unU0waYIqNvpqQL7 Bkzik/agIKdDMEUaPjn+0wN/mVwZ+GSio1g4dRSloOhdg/eKs2xfSWylKa+S+Xs+iYf7DS W7CiVni5iHx//ehp8E8jlnngJ1tbGSTCAQcu3f3TeyavobuxLgUlru3JgVgwVyAIdonSz4 eez/rY67dfuSO41HwgUXIPe49TeV/eofOu56k2iWrxwLgZ2/QfXpfYutAGX+Kw== 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 4Srl2D1fZBzjPL; Thu, 14 Dec 2023 20:53:56 +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 3BEKruKr003077; Thu, 14 Dec 2023 20:53:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BEKruCH003074; Thu, 14 Dec 2023 20:53:56 GMT (envelope-from git) Date: Thu, 14 Dec 2023 20:53:56 GMT Message-Id: <202312142053.3BEKruCH003074@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: 7335a129b2ea - main - devel/py-pycrdt-websocket: Add py-pycrdt-websocket 0.12.5 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: 7335a129b2eaeb23180b1b0e4f6c581f3e02d9d7 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7335a129b2eaeb23180b1b0e4f6c581f3e02d9d7 commit 7335a129b2eaeb23180b1b0e4f6c581f3e02d9d7 Author: Po-Chuan Hsieh AuthorDate: 2023-12-14 20:41:48 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-12-14 20:41:48 +0000 devel/py-pycrdt-websocket: Add py-pycrdt-websocket 0.12.5 Pycrdt-websocket is a Python library for building WebSocket servers and clients that connect and synchronize shared documents. It can be used to create collaborative web applications. The following diagram illustrates a typical architecture. The goal is to share a document among several clients. Each client has an instance of a Doc, representing their view of a document. A shared document also lives in a room on the server side. Conceptually, a room can be seen as the place where clients collaborate on a document. The WebSocket to which a client connects points to the corresponding room through the endpoint path. In the example below, clients A and B connect to a WebSocket at path room-1, and thus both clients find themselves in a room called room-1. All the Doc synchronization logic is taken care of by the WebsocketProvider. Each update to a shared document can be persisted to disk using a store, which can be a file or a database. --- devel/Makefile | 1 + devel/py-pycrdt-websocket/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-pycrdt-websocket/distinfo | 3 +++ devel/py-pycrdt-websocket/pkg-descr | 17 +++++++++++++++++ 4 files changed, 51 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 6bdfb8d9d9c2..7211c42f6749 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5284,6 +5284,7 @@ SUBDIR += py-pycomplete SUBDIR += py-pycparser SUBDIR += py-pycrdt + SUBDIR += py-pycrdt-websocket SUBDIR += py-pydantic SUBDIR += py-pydantic-core SUBDIR += py-pydantic-extra-types diff --git a/devel/py-pycrdt-websocket/Makefile b/devel/py-pycrdt-websocket/Makefile new file mode 100644 index 000000000000..81d7232c0f5f --- /dev/null +++ b/devel/py-pycrdt-websocket/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pycrdt-websocket +PORTVERSION= 0.12.5 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pycrdt_websocket-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= WebSocket connector for pycrdt +WWW= https://github.com/jupyter-server/pycrdt-websocket + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosqlite>=0.18.0<1:databases/py-aiosqlite@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}anyio>=3.6.2<5:devel/py-anyio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pycrdt>=0.7.0<0.8.0:devel/py-pycrdt@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +OPTIONS_DEFINE= DJANGO +DJANGO_DESC= Django support + +DJANGO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}channels>=0:www/py-channels@${PY_FLAVOR} + +.include diff --git a/devel/py-pycrdt-websocket/distinfo b/devel/py-pycrdt-websocket/distinfo new file mode 100644 index 000000000000..bc5238211b23 --- /dev/null +++ b/devel/py-pycrdt-websocket/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1702543602 +SHA256 (pycrdt_websocket-0.12.5.tar.gz) = f7bec9378a07e99ae99f6f14018e70f95250017cf1190ef2c1736cce0cd56a2c +SIZE (pycrdt_websocket-0.12.5.tar.gz) = 16791 diff --git a/devel/py-pycrdt-websocket/pkg-descr b/devel/py-pycrdt-websocket/pkg-descr new file mode 100644 index 000000000000..a7f3582fb57f --- /dev/null +++ b/devel/py-pycrdt-websocket/pkg-descr @@ -0,0 +1,17 @@ +Pycrdt-websocket is a Python library for building WebSocket servers and clients +that connect and synchronize shared documents. It can be used to create +collaborative web applications. + +The following diagram illustrates a typical architecture. The goal is to share a +document among several clients. + +Each client has an instance of a Doc, representing their view of a document. A +shared document also lives in a room on the server side. Conceptually, a room +can be seen as the place where clients collaborate on a document. The WebSocket +to which a client connects points to the corresponding room through the endpoint +path. In the example below, clients A and B connect to a WebSocket at path +room-1, and thus both clients find themselves in a room called room-1. All the +Doc synchronization logic is taken care of by the WebsocketProvider. + +Each update to a shared document can be persisted to disk using a store, which +can be a file or a database.