From nobody Tue Sep 17 17:29:43 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 4X7TLH5xgyz5Vhbc; Tue, 17 Sep 2024 17:29:43 +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 4X7TLH4m6zz539m; Tue, 17 Sep 2024 17:29:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726594183; 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=3sSipycSozP6QJzksKTqEsALN6bnB40ZCe41QSwV6uk=; b=nxgqpAi0NOuC07rRFc13jskfym93Mg4ko1Y9Y7oKJ6prdEbaXW060Vxay6RZIcwetLwDP8 eJmxyCAECZQyO57T8ssPHZ8ZQQ66VQukNqSAvg4e0kqVFL6CRW1q3D05IJZ6tFGfzEOvIs pcsv0PEAJRxwwgHMaxp3XjAaavpX1TnN/eJ1+QOSK41SUlDxxkHtnNlTYm5OkHXalmLzX6 bdXxUvaWZGsFDoi5fXgYVamnt8QbUSU5OiEVJ4k72yDRp9jxJ8Cy96Nehc3rWEUeqD9Yf3 rZoG/093lsR3iQ94zUbZKgdb/aAdkGg2LQaCMI587K9ISprHjvgRGRPGWNc3MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726594183; a=rsa-sha256; cv=none; b=JZrPopBzpBpuLWwniZPZofflHZlx6PwHcd2D+jRZMZBErHjC+YBKQ/fe9CnhfBoP7xdRyt PVvwIbP1TiUHvrSyeDBwG/ZqsA/OCQtpTzbS3JA0i0nrloCOdSLb0TmRTomDBRbWShk/6i c7uHlkqdvBQCs3PhPeJDYx91NLAFUVe9lcBZyQmL7+o9r3JL2V5AQhkYcpH0Nf86VLaXn9 w+kU7pgJUDG0i7fUgmtKbXbg9fOJKJAQNeV+Fizx6x6rDmBfKSdxe4nfvCdBAd7smDipLe gcKoAE7YeRSIcZmDnDO1gJqnhHhSE7+BL58O/H7pJXVRZ7fZlDH2lERYGMUvZg== 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=1726594183; 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=3sSipycSozP6QJzksKTqEsALN6bnB40ZCe41QSwV6uk=; b=XjBNmCL0UIp5qhPCkCz9r+P7H2ZGnqaG46gWvjZIccybfuhQXhYIwV2gUPZkF/JY+7phmW tayFqzpte/R4Zi/nqESsz5DrsVV/RLuV+PTk1QK+BhP3OQvBVBi67YPl/SJsoGoPbgnQzN 8QkWiMEVkIpwgFZfcVVX3eOnLBP/1IxqxO8/ChIxzkp16FP1htudNbIopPGHXzfdku3mr5 484urjV3hudQPOUfpHDoJs54cdlhKm/yIxAW+YZt6L1eLhwEJzmJGcsGliispcdQcw3fs+ H+j4iXAKD4d1oI/AgT/gP/mTlBVWVE4aACHF3RwQCbap1Et+5i/56r25N4g4xw== 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 4X7TLH4MBKznNN; Tue, 17 Sep 2024 17:29:43 +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 48HHThsL019231; Tue, 17 Sep 2024 17:29:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48HHThmF019228; Tue, 17 Sep 2024 17:29:43 GMT (envelope-from git) Date: Tue, 17 Sep 2024 17:29:43 GMT Message-Id: <202409171729.48HHThmF019228@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: e7ebea739ff4 - main - devel/py-jupyter-rfb: New port: Remote Frame Buffer for Jupyter 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e7ebea739ff407568124684cf0b4de03028d0918 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e7ebea739ff407568124684cf0b4de03028d0918 commit e7ebea739ff407568124684cf0b4de03028d0918 Author: Yuri Victorovich AuthorDate: 2024-09-17 15:14:12 +0000 Commit: Yuri Victorovich CommitDate: 2024-09-17 17:29:40 +0000 devel/py-jupyter-rfb: New port: Remote Frame Buffer for Jupyter --- devel/Makefile | 1 + devel/py-jupyter-rfb/Makefile | 30 +++++++++++++++++++++++++ devel/py-jupyter-rfb/distinfo | 3 +++ devel/py-jupyter-rfb/files/patch-pyproject.toml | 7 ++++++ devel/py-jupyter-rfb/pkg-descr | 11 +++++++++ 5 files changed, 52 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c28b97611f51..c6371ba4a173 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5068,6 +5068,7 @@ SUBDIR += py-jupyter-kernel-test SUBDIR += py-jupyter-lsp SUBDIR += py-jupyter-packaging + SUBDIR += py-jupyter-rfb SUBDIR += py-jupyter-server SUBDIR += py-jupyter-server-fileid SUBDIR += py-jupyter-server-mathjax diff --git a/devel/py-jupyter-rfb/Makefile b/devel/py-jupyter-rfb/Makefile new file mode 100644 index 000000000000..7fb6272ca216 --- /dev/null +++ b/devel/py-jupyter-rfb/Makefile @@ -0,0 +1,30 @@ +PORTNAME= jupyter-rfb +DISTVERSION= 0.4.4 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Remote Frame Buffer for Jupyter +WWW= https://jupyter-rfb.readthedocs.io/en/stable + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}jupyter-packaging>=0.7.9:devel/py-jupyter-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jupyterlab>=3.0.0:devel/py-jupyterlab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PY_PILLOW} \ + ${PYTHON_PKGNAMEPREFIX}simplejpeg>0:graphics/py-simplejpeg@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ipywidgets>=7.6.0:devel/py-ipywidgets@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jupyterlab-widgets>0:devel/py-jupyterlab-widgets@${PY_FLAVOR} \ + ${PYNUMPY} # probably only one of pillow and simplejpeg is needed + +USES= python +USE_PYTHON= pep517 autoplist concurrent pytest + +NO_ARCH= yes + +.include diff --git a/devel/py-jupyter-rfb/distinfo b/devel/py-jupyter-rfb/distinfo new file mode 100644 index 000000000000..7beea1125d92 --- /dev/null +++ b/devel/py-jupyter-rfb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726564672 +SHA256 (jupyter_rfb-0.4.4.tar.gz) = 40e9af8e29adb90b5f58c0b9cb646abc2a142e0ac5f00822ba65291d958945e7 +SIZE (jupyter_rfb-0.4.4.tar.gz) = 113929 diff --git a/devel/py-jupyter-rfb/files/patch-pyproject.toml b/devel/py-jupyter-rfb/files/patch-pyproject.toml new file mode 100644 index 000000000000..fa0e07c6f537 --- /dev/null +++ b/devel/py-jupyter-rfb/files/patch-pyproject.toml @@ -0,0 +1,7 @@ +--- pyproject.toml.orig 2024-09-17 09:27:39 UTC ++++ pyproject.toml +@@ -1,3 +1,3 @@ + [build-system] +-requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0,==3.*", "setuptools>=40.8.0", "wheel"] ++requires = ["jupyter_packaging>=0.7.9", "jupyterlab>=3.0.0", "setuptools>=40.8.0", "wheel"] + build-backend = "setuptools.build_meta" diff --git a/devel/py-jupyter-rfb/pkg-descr b/devel/py-jupyter-rfb/pkg-descr new file mode 100644 index 000000000000..34d994b7753a --- /dev/null +++ b/devel/py-jupyter-rfb/pkg-descr @@ -0,0 +1,11 @@ +The jupyter_rfb library provides a widget (an ipywidgets subclass) that can be +used in the Jupyter notebook and in JupyterLab to implement a remote +frame-buffer. + +Images that are generated at the server are streamed to the client (Jupyter) +where they are shown. Events (such as mouse interactions) are streamed in the +other direction, where the server can react by generating new images. + +This remote-frame-buffer approach can be an effective method for +server-generated visualizations to be dispayed in Jupyter notebook/lab. +For example visualization created by tools like vispy, datoviz or pygfx.