Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
python-py_stringmatching
Commits:
54f94257 by Antonio Rojas at 2024-06-23T13:20:44+02:00
upgpkg: 0.4.5-4: numpy 2.0 rebuild
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,16 @@
pkgbase = python-py_stringmatching
pkgdesc = Comprehensive and scalable set of string tokenizers and
similarity measures
pkgver = 0.4.5
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/anhaidgroup/py_stringmatching
arch = x86_64
license = BSD
makedepends = python-setuptools
makedepends = cython
depends = python-numpy
- source =
https://files.pythonhosted.org/packages/source/p/py-stringmatching/py-stringmatching-0.4.5.tar.gz
+ source =
https://github.com/anhaidgroup/py_stringmatching/archive/v0.4.5/py_stringmatching-0.4.5.tar.gz
source = fix-test-utils-import.patch
- sha256sums =
d97ba1b562ad98effc946687c5dab074c17a515114ab0dcf502202d5cec9f2b5
+ sha256sums =
ea0b4a3ca51c3e4cf2fc7afa84894d66f07fe06136fa842996e19f12d688ca4a
sha256sums =
195cd5a2e2f63c6b041440a84a818c3932f0594c02c55bff0e530805fa795e18
pkgname = python-py_stringmatching
=====================================
PKGBUILD
=====================================
@@ -1,24 +1,25 @@
# Maintainer: Bruno Pagani <[email protected]>
-_pkg=py-stringmatching
+_pkg=py_stringmatching
pkgname=python-${_pkg/-/_}
pkgver=0.4.5
-pkgrel=3
+pkgrel=4
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)
-source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz
- fix-test-utils-import.patch)
-#source=(https://github.com/anhaidgroup/py_stringmatching/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('d97ba1b562ad98effc946687c5dab074c17a515114ab0dcf502202d5cec9f2b5'
+source=(https://github.com/anhaidgroup/py_stringmatching/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz
+ fix-test-utils-import.patch)
+sha256sums=('ea0b4a3ca51c3e4cf2fc7afa84894d66f07fe06136fa842996e19f12d688ca4a'
'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|' -i setup.py # Fix build with numpy 2.0
}
build() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-py_stringmatching/-/commit/54f94257d70d37656c11fc56f8a91b380e1572d3
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-py_stringmatching/-/commit/54f94257d70d37656c11fc56f8a91b380e1572d3
You're receiving this email because of your account on gitlab.archlinux.org.