From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1DBD1158041 for ; Sun, 24 Mar 2024 13:40:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14781E29FF; Sun, 24 Mar 2024 13:40:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E4841E29FF for ; Sun, 24 Mar 2024 13:40:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDF0E342F94 for ; Sun, 24 Mar 2024 13:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44CEE103F for ; Sun, 24 Mar 2024 13:40:30 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1711287468.4ce335aa6e799fa18e70b7be7a9ec90ffb96c605.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter-ydoc/, dev-python/jupyter-ydoc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jupyter-ydoc/Manifest dev-python/jupyter-ydoc/files/jupyter-ydoc-1.0.2-no-node-for-version.patch dev-python/jupyter-ydoc/jupyter-ydoc-2.0.1.ebuild dev-python/jupyter-ydoc/metadata.xml X-VCS-Directories: dev-python/jupyter-ydoc/ dev-python/jupyter-ydoc/files/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 4ce335aa6e799fa18e70b7be7a9ec90ffb96c605 X-VCS-Branch: master Date: Sun, 24 Mar 2024 13:40:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6dd722a8-6c10-439d-91b6-542a5ee7a602 X-Archives-Hash: ab9b7e7932132b4fad52ea045387b6c3 commit: 4ce335aa6e799fa18e70b7be7a9ec90ffb96c605 Author: Benda Xu gentoo org> AuthorDate: Mon Mar 11 02:57:24 2024 +0000 Commit: Benda XU gentoo org> CommitDate: Sun Mar 24 13:37:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ce335aa dev-python/jupyter-ydoc: revive with version 2.0.1. It is a dependency of jupyterlab real time collaboration extension. Bug: https://bugs.gentoo.org/915824 Signed-off-by: Benda Xu gentoo.org> dev-python/jupyter-ydoc/Manifest | 1 + .../jupyter-ydoc-1.0.2-no-node-for-version.patch | 30 ++++++++++++++ dev-python/jupyter-ydoc/jupyter-ydoc-2.0.1.ebuild | 48 ++++++++++++++++++++++ dev-python/jupyter-ydoc/metadata.xml | 13 ++++++ 4 files changed, 92 insertions(+) diff --git a/dev-python/jupyter-ydoc/Manifest b/dev-python/jupyter-ydoc/Manifest new file mode 100644 index 000000000000..fc75f7181210 --- /dev/null +++ b/dev-python/jupyter-ydoc/Manifest @@ -0,0 +1 @@ +DIST jupyter_ydoc-2.0.1.gh.tar.gz 984325 BLAKE2B bd15590f7eb9865304ae51931a8bb5a730959b1231a4c538b350c5d41f9891386158b18a75a744fff379edf2deea557d8fd26e5de6fcef7dddb39055e57fc883 SHA512 cd4c78f98578e349e18ca7d51b57cdd281f4e092c24bd152138c06158b484b9de2b44e37e43bbca55055575a37ecae7fc7c7032a0ca4bcd874abf15b815ad5d2 diff --git a/dev-python/jupyter-ydoc/files/jupyter-ydoc-1.0.2-no-node-for-version.patch b/dev-python/jupyter-ydoc/files/jupyter-ydoc-1.0.2-no-node-for-version.patch new file mode 100644 index 000000000000..bfd138ce0d66 --- /dev/null +++ b/dev-python/jupyter-ydoc/files/jupyter-ydoc-1.0.2-no-node-for-version.patch @@ -0,0 +1,30 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 6e0a069..42f76c1 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -2,12 +2,12 @@ + # Distributed under the terms of the Modified BSD License. + + [build-system] +-requires = ["hatchling>=1.10.0", "hatch-nodejs-version"] ++requires = ["hatchling>=1.10.0"] + build-backend = "hatchling.build" + + [project] + name = "jupyter-ydoc" +-dynamic = ["version"] ++version = "1.0.2" + description = "Document structures for collaborative editing using Ypy" + requires-python = ">=3.7" + keywords = ["jupyter", "ypy"] +@@ -56,10 +56,6 @@ text = "BSD 3-Clause License" + Homepage = "https://jupyter.org" + Source = "https://github.com/jupyter-server/jupyter_ydoc" + +-[tool.hatch.version] +-source = "nodejs" +-path = "javascript/package.json" +- + [tool.hatch.build] + exclude = ["javascript", "!javascript/package.json"] + diff --git a/dev-python/jupyter-ydoc/jupyter-ydoc-2.0.1.ebuild b/dev-python/jupyter-ydoc/jupyter-ydoc-2.0.1.ebuild new file mode 100644 index 000000000000..a30ad14c4ca9 --- /dev/null +++ b/dev-python/jupyter-ydoc/jupyter-ydoc-2.0.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Document structures for collaborative editing using Ypy" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter-server/jupyter_ydoc/ + https://pypi.org/project/jupyter-ydoc/ +" +SRC_URI=" + https://github.com/jupyter-server/jupyter_ydoc/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# Requires node +RESTRICT="test" + +RDEPEND="dev-python/importlib-metadata[${PYTHON_USEDEP}] + dev-python/pycrdt[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + >=dev-python/websockets-10.0[${PYTHON_USEDEP}] + dev-python/pycrdt-websocket[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.2-no-node-for-version.patch" +) + +distutils_enable_tests pytest +# Hangs for some reason +#distutils_enable_sphinx docs/source dev-python/myst-parser dev-python/pydata-sphinx-theme diff --git a/dev-python/jupyter-ydoc/metadata.xml b/dev-python/jupyter-ydoc/metadata.xml new file mode 100644 index 000000000000..a7e33c55e1cf --- /dev/null +++ b/dev-python/jupyter-ydoc/metadata.xml @@ -0,0 +1,13 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + + jupyter-ydoc + jupyter-server/jupyter_ydoc + +