* [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter_ydoc/, dev-python/jupyter_ydoc/files/
@ 2023-02-07 21:38 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-02-07 21:38 UTC (permalink / raw
To: gentoo-commits
commit: 7b4d17c24524683b9983f6bcad9688e7a1dac03c
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 7 21:01:17 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> 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 <andrewammerlaan <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">jupyter-ydoc</remote-id>
+ <remote-id type="github">jupyter-server/jupyter_ydoc</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter_ydoc/, dev-python/jupyter_ydoc/files/
@ 2023-03-07 14:07 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-03-07 14:07 UTC (permalink / raw
To: gentoo-commits
commit: b957bf60399144c7bdfb979002f7f02ae1f332b6
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 7 14:06:10 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Mar 7 14:07:49 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b957bf60
dev-python/jupyter_ydoc: add 0.3.4
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/jupyter_ydoc/Manifest | 1 +
.../jupyter_ydoc-0.3.4-no-node-for-version.patch | 30 ++++++++++++++
dev-python/jupyter_ydoc/jupyter_ydoc-0.3.4.ebuild | 46 ++++++++++++++++++++++
3 files changed, 77 insertions(+)
diff --git a/dev-python/jupyter_ydoc/Manifest b/dev-python/jupyter_ydoc/Manifest
index e3d38e0ce695..b82e230dfc30 100644
--- a/dev-python/jupyter_ydoc/Manifest
+++ b/dev-python/jupyter_ydoc/Manifest
@@ -1,2 +1,3 @@
DIST jupyter_ydoc-0.2.2.gh.tar.gz 10664 BLAKE2B d8a0536c07097e359b0145e5ca08f203dcc06d6ff1f556b814cebb5d8798dcd0ca36f70c010f410f4c14a754989db7dc65255863ea7c2610f0201820917f0e90 SHA512 f8db63a1829ffd58c8e773a2c9be674023e58a57dbd7bfffdfaf37ee735bf6cbd62c984df830198b1e8bdd5d1bcb1679cef07a77af36b02c72a704d6e9e295ca
DIST jupyter_ydoc-0.3.1.gh.tar.gz 170182 BLAKE2B 6a3b000b47bb00ddb8f6ddecb1091a150dbb33dadcb8ecfe8d55a03050663ee9dacbe1b8063174f54cca5472a6245951ba8ce3137afedea17735d1c5679690fc SHA512 897779f39cf2ffb0e59db31745063d2482d165ee76ca4cedb131b8daed341a63826af150a6da013226febc99d1bd0376fc003ff179744e81ec619993c04ffdd0
+DIST jupyter_ydoc-0.3.4.gh.tar.gz 172549 BLAKE2B 1dd9d7e88736c8fb4681a47ba70d57871b94d2e64947fd5f469f4e0884705011f50e31f04c7f5cc0aaeb98987bf1ccf09029daa849c7aa644a04fb3dbc743742 SHA512 23523c91daf799f944684ea0b3f7768ab2625472b1f9d330fca3be91a532e0ec676cef4c2a82ee33af129e3ac9a1165272386b573098e4267af68c872607c1d1
diff --git a/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.4-no-node-for-version.patch b/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.4-no-node-for-version.patch
new file mode 100644
index 000000000000..8a21ab0e0890
--- /dev/null
+++ b/dev-python/jupyter_ydoc/files/jupyter_ydoc-0.3.4-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.4"
+ 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.4.ebuild b/dev-python/jupyter_ydoc/jupyter_ydoc-0.3.4.ebuild
new file mode 100644
index 000000000000..d2532b0c639f
--- /dev/null
+++ b/dev-python/jupyter_ydoc/jupyter_ydoc-0.3.4.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-07 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 14:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter_ydoc/, dev-python/jupyter_ydoc/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2023-02-07 21:38 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox