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 711BC15800F for ; Tue, 7 Feb 2023 21:38:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADD90E079E; Tue, 7 Feb 2023 21:38:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8CF6AE079E for ; Tue, 7 Feb 2023 21:38:40 +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 319B4340E07 for ; Tue, 7 Feb 2023 21:38:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 800D78A6 for ; Tue, 7 Feb 2023 21:38:37 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1675805899.7b4d17c24524683b9983f6bcad9688e7a1dac03c.andrewammerlaan@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-0.3.1-no-node-for-version.patch dev-python/jupyter_ydoc/jupyter_ydoc-0.3.1.ebuild dev-python/jupyter_ydoc/metadata.xml X-VCS-Directories: dev-python/jupyter_ydoc/files/ dev-python/jupyter_ydoc/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 7b4d17c24524683b9983f6bcad9688e7a1dac03c X-VCS-Branch: master Date: Tue, 7 Feb 2023 21:38:37 +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: e1804ead-1bfc-4b2c-a72b-32ee6433d38f X-Archives-Hash: 5dd3c01b740c033267aaacb75725618f commit: 7b4d17c24524683b9983f6bcad9688e7a1dac03c Author: Andrew Ammerlaan gentoo org> AuthorDate: Tue Feb 7 21:01:17 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Feb 7 21:38:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b4d17c2 dev-python/jupyter_ydoc: new package, add 0.3.1 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/jupyter_ydoc/Manifest | 1 + .../jupyter_ydoc-0.3.1-no-node-for-version.patch | 30 ++++++++++++++ dev-python/jupyter_ydoc/jupyter_ydoc-0.3.1.ebuild | 46 ++++++++++++++++++++++ dev-python/jupyter_ydoc/metadata.xml | 13 ++++++ 4 files changed, 90 insertions(+) diff --git a/dev-python/jupyter_ydoc/Manifest b/dev-python/jupyter_ydoc/Manifest new file mode 100644 index 000000000000..2323314b3f9f --- /dev/null +++ b/dev-python/jupyter_ydoc/Manifest @@ -0,0 +1 @@ +DIST jupyter_ydoc-0.3.1.gh.tar.gz 170182 BLAKE2B 6a3b000b47bb00ddb8f6ddecb1091a150dbb33dadcb8ecfe8d55a03050663ee9dacbe1b8063174f54cca5472a6245951ba8ce3137afedea17735d1c5679690fc SHA512 897779f39cf2ffb0e59db31745063d2482d165ee76ca4cedb131b8daed341a63826af150a6da013226febc99d1bd0376fc003ff179744e81ec619993c04ffdd0 diff --git a/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.1-no-node-for-version.patch b/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.1-no-node-for-version.patch new file mode 100644 index 000000000000..0c337ec90d7d --- /dev/null +++ b/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.1-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 = "0.3.1" + 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-0.3.1.ebuild b/dev-python/jupyter_ydoc/jupyter_ydoc-0.3.1.ebuild new file mode 100644 index 000000000000..ea9984a94ac7 --- /dev/null +++ b/dev-python/jupyter_ydoc/jupyter_ydoc-0.3.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +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/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# Requires node +RESTRICT="test" + +RDEPEND=" + dev-python/y-py[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-4.8.3[${PYTHON_USEDEP}] + ' 3.8 3.9) +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/websockets[${PYTHON_USEDEP}] + dev-python/ypy-websocket[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${P}-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 + +