Github messages for voidlinux
 help / color / mirror / Atom feed
From: chrysos349 <chrysos349@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-Levenshtein: update to 0.23.0
Date: Thu, 12 Oct 2023 01:59:59 +0200	[thread overview]
Message-ID: <20231011235959.JrIMjyRlezUBMHf-tV4q06sNUyMtbrSx93cRJPl2jk4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46624@inbox.vuxu.org>

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

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

https://github.com/chrysos349/void-packages python3-Levenshtein
https://github.com/void-linux/void-packages/pull/46624

python3-Levenshtein: update to 0.23.0
fixes #46581
fixes #46545

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl x
  - armv7l x
  - armv6l-musl x


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-Levenshtein-46624.patch --]
[-- Type: text/x-diff, Size: 7939 bytes --]

From 260e7980f2f70866205393771e1a48bac14ca1e0 Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Thu, 12 Oct 2023 00:51:53 +0300
Subject: [PATCH 1/4] New package: python3-scikit-build-0.17.6

---
 .../patch-out-hatch-fancy-pypi-readme.patch   | 44 +++++++++++++++++++
 srcpkgs/python3-scikit-build/template         | 22 ++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch
 create mode 100644 srcpkgs/python3-scikit-build/template

diff --git a/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch b/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch
new file mode 100644
index 0000000000000..489356ed8cfde
--- /dev/null
+++ b/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch
@@ -0,0 +1,44 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"]
++requires = ["hatchling", "hatch-vcs"]
+ build-backend = "hatchling.build"
+ 
+ [project]
+@@ -76,34 +76,6 @@
+ build.hooks.vcs.version-file = "skbuild/_version.py"
+ 
+ 
+-[tool.hatch.metadata.hooks.fancy-pypi-readme]
+-content-type = "text/x-rst"
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
+-path = "README.rst"
+-start-after = ".. START-INTRO"
+-end-before = ".. END-INTRO"
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
+-path = "CHANGES.rst"
+-start-after = ".. START-BRIEF-CHANGELOG"
+-end-before = ".. END-BRIEF-CHANGELOG"
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
+-path = "README.rst"
+-start-after = ".. INJECT-CHANGELOG"
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
+-pattern = ':pr:`(\d+)`'
+-replacement = '`#\1 <https://github.com/scikit-build/scikit-build/pull/\1>`_'
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
+-pattern = ':issue:`(\d+)`'
+-replacement = '`#\1 <https://github.com/scikit-build/scikit-build/issues/\1>`_'
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
+-pattern = ':user:`(\S+)`'
+-replacement = '`@\1 <https://github.com/\1>`_'
+ 
+ 
+ [tool.black]
diff --git a/srcpkgs/python3-scikit-build/template b/srcpkgs/python3-scikit-build/template
new file mode 100644
index 0000000000000..7645db435d5f5
--- /dev/null
+++ b/srcpkgs/python3-scikit-build/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-scikit-build'
+pkgname=python3-scikit-build
+version=0.17.6
+revision=1
+build_style=python3-pep517
+# test requires setuptools_scm to not be installed
+make_check_args="-k not(nosetuptoolsscm)"
+hostmakedepends="hatch-vcs python3-wheel"
+depends="python3-distro python3-packaging python3-setuptools python3-wheel"
+checkdepends="${depends} cmake gcc-fortran git ninja python3-Cython
+ python3-devel python3-pip python3-pytest-mock python3-requests
+ python3-virtualenv"
+short_desc="Build system generator for Python C/C++/Cython/Fortran extensions"
+maintainer="chrysos349 <chrysostom349@gmail.com>"
+license="MIT"
+homepage="https://scikit-build.org"
+distfiles="${PYPI_SITE}/s/scikit_build/scikit_build-${version}.tar.gz"
+checksum=b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d
+
+post_install() {
+	vlicense LICENSE
+}

From 4458f21ce24f135bef0eea6df993e3a05d20a533 Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Thu, 12 Oct 2023 00:52:26 +0300
Subject: [PATCH 2/4] New package: rapidfuzz-cpp-2.1.1

---
 srcpkgs/rapidfuzz-cpp/template | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 srcpkgs/rapidfuzz-cpp/template

diff --git a/srcpkgs/rapidfuzz-cpp/template b/srcpkgs/rapidfuzz-cpp/template
new file mode 100644
index 0000000000000..72e957c9d131e
--- /dev/null
+++ b/srcpkgs/rapidfuzz-cpp/template
@@ -0,0 +1,15 @@
+# Template file for 'rapidfuzz-cpp'
+pkgname=rapidfuzz-cpp
+version=2.1.1
+revision=1
+build_style=cmake
+short_desc="Rapid fuzzy string matching in C++ using the Levenshtein Distance"
+maintainer="chrysos349 <chrysostom349@gmail.com>"
+license="MIT"
+homepage="https://github.com/maxbachmann/rapidfuzz-cpp"
+distfiles="https://github.com/maxbachmann/rapidfuzz-cpp/archive/v${version}.tar.gz"
+checksum=1680c0dbf77d228ea81825c24755db99ee0e21a8db3663b5136741b3e108c3f2
+
+post_install() {
+	vlicense LICENSE
+}

From bf1fcc30e91ced565704f7a3b6e2a12e257bb74f Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Thu, 12 Oct 2023 00:53:04 +0300
Subject: [PATCH 3/4] New package: python3-rapidfuzz-3.2.0

---
 .../python3-rapidfuzz/files/README.voidlinux  |  2 ++
 srcpkgs/python3-rapidfuzz/template            | 22 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/python3-rapidfuzz/files/README.voidlinux
 create mode 100644 srcpkgs/python3-rapidfuzz/template

diff --git a/srcpkgs/python3-rapidfuzz/files/README.voidlinux b/srcpkgs/python3-rapidfuzz/files/README.voidlinux
new file mode 100644
index 0000000000000..fd4aa98151f61
--- /dev/null
+++ b/srcpkgs/python3-rapidfuzz/files/README.voidlinux
@@ -0,0 +1,2 @@
+Optional dependencies:
+	python3-numpy
diff --git a/srcpkgs/python3-rapidfuzz/template b/srcpkgs/python3-rapidfuzz/template
new file mode 100644
index 0000000000000..935d11c96be2a
--- /dev/null
+++ b/srcpkgs/python3-rapidfuzz/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-rapidfuzz'
+pkgname=python3-rapidfuzz
+version=3.2.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="cmake python3-scikit-build"
+makedepends="python3-devel rapidfuzz-cpp"
+depends="python3"
+checkdepends="python3-hypothesis python3-pandas python3-pytest"
+short_desc="Rapid fuzzy string matching in Python using various string metrics"
+maintainer="chrysos349 <chrysostom349@gmail.com>"
+license="MIT"
+homepage="https://github.com/maxbachmann/rapidfuzz"
+distfiles="${PYPI_SITE}/r/rapidfuzz/rapidfuzz-${version}.tar.gz"
+checksum=448d031d9960fea7826d42bd4284156fc68d3b55a6946eb34ca5c6acf960577b
+
+export CMAKE_ARGS="-DPython_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_inc}"
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+	vlicense LICENSE
+}

From 8556eca738b400c76edada2c8065dbe060092891 Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Thu, 12 Oct 2023 00:54:03 +0300
Subject: [PATCH 4/4] python3-Levenshtein: update to 0.23.0

---
 srcpkgs/python3-Levenshtein/template | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/srcpkgs/python3-Levenshtein/template b/srcpkgs/python3-Levenshtein/template
index 044c5d1492408..9cb7fdad3c4f5 100644
--- a/srcpkgs/python3-Levenshtein/template
+++ b/srcpkgs/python3-Levenshtein/template
@@ -1,14 +1,17 @@
 # Template file for 'python3-Levenshtein'
 pkgname=python3-Levenshtein
-version=0.12.0
-revision=9
-build_style=python3-module
-hostmakedepends="python3-devel python3-setuptools"
-makedepends="python3-devel"
-depends="python3"
-short_desc="Functions for computation of distance and string similarity (Python3)"
+version=0.23.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="cmake python3-scikit-build"
+makedepends="python3-devel rapidfuzz-cpp"
+depends="python3-rapidfuzz"
+checkdepends="${depends} python3-pytest"
+short_desc="Functions for computation of distance and string similarity"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
-homepage="https://pypi.org/project/python-Levenshtein/"
-distfiles="${PYPI_SITE}/p/python-Levenshtein/python-Levenshtein-${version}.tar.gz"
-checksum=033a11de5e3d19ea25c9302d11224e1a1898fe5abd23c61c7c360c25195e3eb1
+homepage="https://github.com/maxbachmann/Levenshtein"
+distfiles="${PYPI_SITE}/L/Levenshtein/Levenshtein-${version}.tar.gz"
+checksum=de7ccc31a471ea5bfafabe804c12a63e18b4511afc1014f23c3cc7be8c70d3bd
+
+export CMAKE_ARGS="-DPython_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_inc}"

  parent reply	other threads:[~2023-10-11 23:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11 21:59 [PR PATCH] " chrysos349
2023-10-11 22:29 ` [PR REVIEW] " classabbyamp
2023-10-11 22:30 ` classabbyamp
2023-10-11 22:35 ` [PR PATCH] [Updated] " chrysos349
2023-10-11 22:43 ` [PR REVIEW] " classabbyamp
2023-10-11 22:55 ` chrysos349
2023-10-11 22:55 ` chrysos349
2023-10-11 23:59 ` chrysos349 [this message]
2023-10-12  0:05 ` chrysos349
2023-10-12 20:01 ` ahesford
2023-10-13  3:19 ` [PR PATCH] [Updated] " chrysos349
2023-10-13  3:20 ` chrysos349
2023-10-14  0:20 ` [PR PATCH] [Updated] " chrysos349
2023-10-14  0:21 ` chrysos349
2023-11-23  4:44 ` [PR PATCH] [Merged]: " abenson
2023-11-22  6:36 [PR PATCH] " Luciogi
2023-11-22  8:50 ` [PR PATCH] [Updated] " Luciogi
2023-11-22  9:14 ` Luciogi
2023-11-22  9:17 ` Luciogi
2023-11-22 11:22 ` Luciogi

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=20231011235959.JrIMjyRlezUBMHf-tV4q06sNUyMtbrSx93cRJPl2jk4@z \
    --to=chrysos349@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).