Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-py_stringmatching


Commits:
d0b80c55 by Antonio Rojas at 2026-05-16T21:46:12+02:00
upgpkg: 0.4.7-1: Upstream update

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,18 @@
 pkgbase = python-py_stringmatching
        pkgdesc = Comprehensive and scalable set of string tokenizers and 
similarity measures
-       pkgver = 0.4.6
-       pkgrel = 2
+       pkgver = 0.4.7
+       pkgrel = 1
        url = https://github.com/anhaidgroup/py_stringmatching
        arch = x86_64
        license = BSD
        makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = cython
        depends = python-numpy
-       source = 
https://github.com/anhaidgroup/py_stringmatching/archive/v0.4.6/py_stringmatching-0.4.6.tar.gz
+       source = 
https://github.com/anhaidgroup/py_stringmatching/archive/v0.4.7/py_stringmatching-0.4.7.tar.gz
        source = fix-test-utils-import.patch
-       sha256sums = 
34e300c5994e2e9b200335b7b8046a452477da05bdda72802b1a0cd6975d264f
+       sha256sums = 
4b4e96463d51ad4b0294e4147a41397102aa5e690d528a577ce3bab816de1ee5
        sha256sums = 
195cd5a2e2f63c6b041440a84a818c3932f0594c02c55bff0e530805fa795e18
 
 pkgname = python-py_stringmatching


=====================================
PKGBUILD
=====================================
@@ -2,30 +2,29 @@
 
 _pkg=py_stringmatching
 pkgname=python-${_pkg/-/_}
-pkgver=0.4.6
-pkgrel=2
+pkgver=0.4.7
+pkgrel=1
 pkgdesc="Comprehensive and scalable set of string tokenizers and similarity 
measures"
 arch=(x86_64)
 url="https://github.com/anhaidgroup/py_stringmatching";
 license=(BSD)
 depends=(python-numpy)
-makedepends=(python-setuptools cython)
+makedepends=(python-setuptools python-build python-installer cython)
 
source=(https://github.com/anhaidgroup/py_stringmatching/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz
         fix-test-utils-import.patch)
-sha256sums=('34e300c5994e2e9b200335b7b8046a452477da05bdda72802b1a0cd6975d264f'
+sha256sums=('4b4e96463d51ad4b0294e4147a41397102aa5e690d528a577ce3bab816de1ee5'
             '195cd5a2e2f63c6b041440a84a818c3932f0594c02c55bff0e530805fa795e18')
 
 prepare() {
   cd ${_pkg}-${pkgver}
   patch -Np1 -i ${srcdir}/fix-test-utils-import.patch
   sed -e 's|np.int_t|np.npy_long|' -i 
py_stringmatching/similarity_measure/cython/cython_levenshtein.pyx # Fix build 
with numpy 2.0
-  sed -e 's|core/include|_core/include|' -e 's|,<2.0||g' -i setup.py # Fix 
build with numpy 2.0
+  sed -e 's|core/include|_core/include|' -e 's|,<2.0||g' -i setup.py -i 
pyproject.toml # Fix build with numpy 2.0
 }
 
 build() {
   cd ${_pkg}-${pkgver}
-  sed -i 's|if not PIP_INSTALLED:|if False:|g' setup.py
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -38,6 +37,7 @@ check() {
 
 package() {
   cd ${_pkg}-${pkgver}
-  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build 
--optimize=1
+  python -m installer --destdir="${pkgdir}" dist/*.whl
   install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/{build_tools,docs,LICENSES}
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-py_stringmatching/-/commit/d0b80c55fcd797548a20b55ce0b4c29e4c6ef895

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-py_stringmatching/-/commit/d0b80c55fcd797548a20b55ce0b4c29e4c6ef895
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to