python-hatch-nodejs-version: update to 0.4.0
This commit is contained in:
parent
90cb480ab0
commit
64433f6f4d
@ -3,11 +3,11 @@
|
||||
_realname=hatch-nodejs-version
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=0.3.2
|
||||
pkgrel=2
|
||||
pkgver=0.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="Hatch plugin for versioning from a package.json file (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
msys2_references=(
|
||||
'purl: pkg:pypi/hatch-nodejs-version'
|
||||
)
|
||||
@ -19,24 +19,21 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname//-/_}-${pkgver}.tar.gz")
|
||||
sha256sums=('8a7828d817b71e50bbbbb01c9bfc0b329657b7900c56846489b9c958de15b54c')
|
||||
sha256sums=('2428ea398dd053f019d2b7ac949dd6b690ca8e826b6d433ad13c5b6c475ae91b')
|
||||
|
||||
build() {
|
||||
msg "Python build for ${MSYSTEM}"
|
||||
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}"
|
||||
|
||||
${MINGW_PREFIX}/bin/python -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Python install for ${MSYSTEM}"
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user