Github messages for voidlinux
 help / color / mirror / Atom feed
From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: python3-dataclasses-json
Date: Mon, 23 Sep 2024 13:18:14 +0200	[thread overview]
Message-ID: <20240923111814.6B42029C83@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-52318@inbox.vuxu.org>

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

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

https://github.com/MIvanchev/void-packages ci-dataclasses-json
https://github.com/void-linux/void-packages/pull/52318

[WIP] New package: python3-dataclasses-json
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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, (GLIBC-X64_86)

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ci-dataclasses-json-52318.patch --]
[-- Type: text/x-diff, Size: 4034 bytes --]

From 7cae1e67d228dc7825fda9d657e7a0344ca1f12d Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Mon, 23 Sep 2024 13:14:22 +0200
Subject: [PATCH 1/2] New package: python3-typing_inspect-0.9.0

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

diff --git a/srcpkgs/python3-typing_inspect/template b/srcpkgs/python3-typing_inspect/template
new file mode 100644
index 00000000000000..2af2d94c182072
--- /dev/null
+++ b/srcpkgs/python3-typing_inspect/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-typing_inspect'
+pkgname=python3-typing_inspect
+version=0.9.0
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-typing_extensions python3-mypy_extensions"
+short_desc="Runtime inspection utilities for Python typing module "
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/ilevkivskyi/typing_inspect"
+distfiles="${PYPI_SITE}/t/typing-inspect/typing_inspect-${version}.tar.gz"
+checksum=b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78
+
+post_install() {
+	vlicense LICENSE
+}

From c985533be64a72798a6c70a30ff8f8950da5bd28 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Mon, 23 Sep 2024 09:34:06 +0200
Subject: [PATCH 2/2] New package: python3-dataclasses-json-0.6.7

---
 srcpkgs/python3-dataclasses-json/template     | 27 +++++++++++++++++++
 .../template                                  | 19 +++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/python3-dataclasses-json/template
 create mode 100644 srcpkgs/python3-poetry-dynamic-versioning/template

diff --git a/srcpkgs/python3-dataclasses-json/template b/srcpkgs/python3-dataclasses-json/template
new file mode 100644
index 00000000000000..1029e3915b249d
--- /dev/null
+++ b/srcpkgs/python3-dataclasses-json/template
@@ -0,0 +1,27 @@
+# Template file for 'python3-dataclasses-json'
+pkgname=python3-dataclasses-json
+version=0.6.7
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel python3-poetry-core"
+depends="python3-marshmallow python3-typing_inspect"
+short_desc="Easy serialization of data classes to and from JSON"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/lidatong/dataclasses-json"
+distfiles="${PYPI_SITE}/d/dataclasses-json/dataclasses_json-${version}.tar.gz"
+checksum=b6b3e528266ea45b9535223bc53ca645f5208833c29229e847b3f26a1cc55fc0
+
+export POETRY_DYNAMIC_VERSIONING_BYPASS="${version}"
+
+post_patch() {
+	# Patch away the poetry-dynamic-versioning dependency since we know
+	# the version.
+	vsed -i -e "s/^requires = \[\"poetry-core>=1.2.0\", \"poetry-dynamic-versioning\"\]/requires = [\"poetry-core>=1.2.0\"]/" pyproject.toml
+	vsed -i -e "s/^version = .*/version = \"${version}\"/" pyproject.toml
+	vsed -i -e 's/^build-backend = .*//' pyproject.toml
+}
+
+post_install() {
+	vlicense LICENSE
+}
diff --git a/srcpkgs/python3-poetry-dynamic-versioning/template b/srcpkgs/python3-poetry-dynamic-versioning/template
new file mode 100644
index 00000000000000..7752dc3375b83a
--- /dev/null
+++ b/srcpkgs/python3-poetry-dynamic-versioning/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-poetry-dynamic-versioning'
+pkgname=python3-poetry-dynamic-versioning
+version=1.4.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel python3-poetry-core"
+depends="python3-tomlkit \
+	 python3-dunamai \
+	 python3-poetry-core"
+short_desc="Plugin for Poetry to enable dynamic versioning based on VCS tags"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/mtkennerly/poetry-dynamic-versioning"
+distfiles="${PYPI_SITE}/p/poetry-dynamic-versioning/poetry_dynamic_versioning-${version}.tar.gz"
+checksum=21584d21ca405aa7d83d23d38372e3c11da664a8742995bdd517577e8676d0e1
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2024-09-23 11:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23 10:32 [PR PATCH] " MIvanchev
2024-09-23 11:17 ` [PR PATCH] [Updated] " MIvanchev
2024-09-23 11:18 ` MIvanchev [this message]
2024-09-23 11:35 ` MIvanchev
2024-09-23 11:36 ` MIvanchev
2024-09-23 11:40 ` MIvanchev
2024-09-23 11:45 ` MIvanchev
2024-12-24  1:59 ` New package: python3-dataclasses-json-0.6.7 github-actions
2025-01-07  1:59 ` [PR PATCH] [Closed]: " github-actions
2025-01-07  8:19 ` MIvanchev

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=20240923111814.6B42029C83@inbox.vuxu.org \
    --to=mivanchev@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).