From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] New package: saturn-notebook-1.2.2
Date: Tue, 17 Oct 2023 17:39:26 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46751@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1893 bytes --]
There is a new 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: 2407 bytes --]
From 072846afca3e1641f266512563e98e9e8306382f Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@duck.com>
Date: Tue, 17 Oct 2023 19:26:45 +0200
Subject: [PATCH] New package: saturn-notebook-1.2.2
---
.../remove_poetry-dynamic-versioning.patch | 25 +++++++++++++++++++
srcpkgs/saturn-notebook/template | 18 +++++++++++++
2 files changed, 43 insertions(+)
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/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..8de7b69a96896
--- /dev/null
+++ b/srcpkgs/saturn-notebook/template
@@ -0,0 +1,18 @@
+# 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"
+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() {
+ vlicense LICENSE.txt
+}
next reply other threads:[~2023-10-17 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 15:39 Eloitor [this message]
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
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46751@inbox.vuxu.org \
--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).