Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: saturn-notebook-1.2.2
Date: Sun, 29 Oct 2023 09:46:28 +0100	[thread overview]
Message-ID: <20231029084628.3aLmD2FXQO3fHvAFm0AzjAdDT2_wm4tgONkPJ3VWGPQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46751@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages saturn-notebook
https://github.com/void-linux/void-packages/pull/46751

[WIP] New package: saturn-notebook-1.2.2
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

I don't know what I should do to get the binary in `/usr/bin/`

```
$ xls saturn-notebook  
/usr/lib/python3.12/site-packages/saturn_notebook/__init__.py
/usr/lib/python3.12/site-packages/saturn_notebook/__main__.py
/usr/lib/python3.12/site-packages/saturn_notebook/cells.py
/usr/lib/python3.12/site-packages/saturn_notebook/evaluate.py
/usr/lib/python3.12/site-packages/saturn_notebook/image.py
/usr/lib/python3.12/site-packages/saturn_notebook/mpl.py
/usr/lib/python3.12/site-packages/saturn_notebook/notebook.py
/usr/lib/python3.12/site-packages/saturn_notebook/repl.py
/usr/lib/python3.12/site-packages/saturn_notebook/theme.py
/usr/lib/python3.12/site-packages/saturn_notebook/traceback.py
/usr/lib/python3.12/site-packages/saturn_notebook/utils.py
/usr/lib/python3.12/site-packages/saturn_notebook-0.0.0.dist-info/LICENSE.txt
/usr/lib/python3.12/site-packages/saturn_notebook-0.0.0.dist-info/METADATA
/usr/lib/python3.12/site-packages/saturn_notebook-0.0.0.dist-info/RECORD
/usr/lib/python3.12/site-packages/saturn_notebook-0.0.0.dist-info/WHEEL
/usr/lib/python3.12/site-packages/saturn_notebook-0.0.0.dist-info/top_level.txt
/usr/share/licenses/saturn-notebook/LICENSE.txt
```

A patch file from https://github.com/void-linux/void-packages/pull/46751.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-saturn-notebook-46751.patch --]
[-- Type: text/x-diff, Size: 5411 bytes --]

From 23ba110fb655f660e3be0f88d91a91298030c490 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@duck.com>
Date: Tue, 17 Oct 2023 19:26:45 +0200
Subject: [PATCH 1/3] New package: saturn-notebook-1.2.2

---
 srcpkgs/saturn-notebook/files/saturn-notebook |  3 +++
 .../remove_poetry-dynamic-versioning.patch    | 25 +++++++++++++++++++
 srcpkgs/saturn-notebook/template              | 20 +++++++++++++++
 3 files changed, 48 insertions(+)
 create mode 100644 srcpkgs/saturn-notebook/files/saturn-notebook
 create mode 100644 srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch
 create mode 100644 srcpkgs/saturn-notebook/template

diff --git a/srcpkgs/saturn-notebook/files/saturn-notebook b/srcpkgs/saturn-notebook/files/saturn-notebook
new file mode 100644
index 0000000000000..2c97629458aef
--- /dev/null
+++ b/srcpkgs/saturn-notebook/files/saturn-notebook
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+python3 -m saturn_notebook
diff --git a/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch b/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch
new file mode 100644
index 0000000000000..23ea0e50eda6f
--- /dev/null
+++ b/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch
@@ -0,0 +1,25 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -33,21 +33,5 @@
+ icecream = "^2.1.2"
+ mpi4py = "^3.1.3"
+ 
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-pattern  = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?"
+-format-jinja = """
+-    {%- if distance == 0 -%}
+-        {{- base -}}
+-    {%- else -%}
+-        {{- base }}.dev{{ distance }}+{{commit}}
+-    {%- endif -%}
+-"""
+-format-jinja-imports = [
+-    { module = "datetime", item = "datetime" }
+-]
+-
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
diff --git a/srcpkgs/saturn-notebook/template b/srcpkgs/saturn-notebook/template
new file mode 100644
index 0000000000000..41d54a4a0beed
--- /dev/null
+++ b/srcpkgs/saturn-notebook/template
@@ -0,0 +1,20 @@
+# Template file for 'saturn-notebook'
+pkgname=saturn-notebook
+version=1.2.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-poetry-core python3-setuptools"
+makedepends="python3-wheel"
+depends="python3-argh python3-atomicwrites python3-dill python3-more-itertools python3-wurlitzer"
+short_desc="Plain-text Python notebooks with checkpointing"
+maintainer="Eloi Torrents <eloitor@duck.com>"
+license="custom:Saturn"
+homepage="https://github.com/mrzv/saturn"
+changelog="https://raw.githubusercontent.com/mrzv/saturn/master/CHANGELOG.md"
+distfiles="${PYPI_SITE}/s/saturn_notebook/saturn_notebook-${version}.tar.gz"
+checksum=0fc8090e61bc8f9d33b542650d83115c094b90160cab04e797d552722360dd0c
+
+post_install() {
+	vbin ${FILESDIR}/saturn-notebook
+	vlicense LICENSE.txt
+}

From e977e1f823589267116834ca445dd398bf899c67 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@duck.com>
Date: Fri, 27 Oct 2023 17:49:58 +0200
Subject: [PATCH 2/3] New package: python3-wurlitzer-3.0.3

---
 srcpkgs/python3-wurlitzer/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/python3-wurlitzer/template

diff --git a/srcpkgs/python3-wurlitzer/template b/srcpkgs/python3-wurlitzer/template
new file mode 100644
index 0000000000000..ac76c6f1c678d
--- /dev/null
+++ b/srcpkgs/python3-wurlitzer/template
@@ -0,0 +1,23 @@
+# Template file for 'python3-wurlitzer'
+pkgname=python3-wurlitzer
+version=3.0.3
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+checkdepends="python3-pytest"
+short_desc="Capture C-level stdout/stderr in Python"
+maintainer="Eloi Torrents <eloitor@duck.com>"
+license="MIT"
+homepage="https://github.com/minrk/wurlitzer"
+changelog="https://raw.githubusercontent.com/minrk/wurlitzer/main/CHANGELOG.md"
+distfiles="${PYPI_SITE}/w/wurlitzer/wurlitzer-${version}.tar.gz"
+checksum=224f5fe70618be3872c05dfddc8c457191ec1870654596279fcc1edadebe3e5b
+
+post_install() {
+	vlicense LICENSE
+}
+
+do_check() {
+	python3 test.py
+}

From 475f13edc2c00b339cce31581007d2a7f7110b8b Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@duck.com>
Date: Sun, 29 Oct 2023 11:10:32 +0100
Subject: [PATCH 3/3] New package: python3-ptpython-3.0.23

---
 srcpkgs/python3-ptpython/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-ptpython/template

diff --git a/srcpkgs/python3-ptpython/template b/srcpkgs/python3-ptpython/template
new file mode 100644
index 0000000000000..fcf37df1c0708
--- /dev/null
+++ b/srcpkgs/python3-ptpython/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-ptpython'
+pkgname=python3-ptpython
+version=3.0.23
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+short_desc="Python REPL build on top of prompt_toolkit"
+maintainer="Eloi Torrents <eloitor@duck.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/prompt-toolkit/ptpython"
+changelog="https://raw.githubusercontent.com/prompt-toolkit/ptpython/master/CHANGELOG"
+distfiles="${PYPI_SITE}/p/ptpython/ptpython-${version}.tar.gz"
+checksum=9fc9bec2cc51bc4000c1224d8c56241ce8a406b3d49ec8dc266f78cd3cd04ba4
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2023-10-29  8:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-17 15:39 [PR PATCH] " Eloitor
2023-10-27 15:51 ` [PR PATCH] [Updated] " Eloitor
2023-10-29  8:11 ` Eloitor
2023-10-29  8:27 ` Eloitor
2023-10-29  8:35 ` Eloitor
2023-10-29  8:46 ` Eloitor [this message]
2023-12-30 20:15 ` [PR PATCH] [Closed]: " Eloitor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231029084628.3aLmD2FXQO3fHvAFm0AzjAdDT2_wm4tgONkPJ3VWGPQ@z \
    --to=eloitor@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).