From 23ba110fb655f660e3be0f88d91a91298030c490 Mon Sep 17 00:00:00 2001 From: Eloi Torrents 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\\d+\\.\\d+\\.\\d+)(-?((?P[a-zA-Z]+)\\.?(?P\\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 " +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 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 " +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 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 " +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 +}