python-pyphen: update to 0.16.0

This commit is contained in:
Biswapriyo Nath
2024-08-03 09:27:48 +00:00
parent a1412099ff
commit 8305959ef6

View File

@@ -3,14 +3,18 @@
_realname=pyphen
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=0.15.0
pkgver=0.16.0
pkgrel=1
pkgdesc="Pure Python module to hyphenate text (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
msys2_references=(
'archlinux: python-pyphen'
'pypi: pyphen'
)
msys2_repository_url='https://github.com/Kozea/Pyphen'
url='https://pyphen.org/'
_url=https://github.com/Kozea/Pyphen
license=("GPL-2.0-or-later" "LGPL-2.1-or-later" "MPL-1.1")
license=("spdx: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1")
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-flit-core"
@@ -18,36 +22,20 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
options=('!strip')
source=("https://files.pythonhosted.org/packages/4c/d1/f6bc803daa4c1cfe5b1176427f46dfe3ffee524bea1dee8bdde532e17c41/${_realname}-${pkgver}.tar.gz")
sha256sums=('a430623decac53dc3691241253263cba36b9dd7a44ffd2680b706af368cda2f2')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
## (OPTIONAL) Only if setuptools-scm is used
# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
}
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('2c006b3ddf072c9571ab97606d9ab3c26a92eaced4c0d59fd1d26988f308f413')
build() {
msg "Python build for ${MSYSTEM}"
cd "${srcdir}"
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
msg "Python test for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
# The test command will usually depend upon what is contained in the tox.ini file
# or in the [testenv:py] section of the pyproject.toml file.
${MINGW_PREFIX}/bin/python -m pytest -vv
${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed"
}
package() {
msg "Python install for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=" \