python-maturin: update to 0.15.1

This commit is contained in:
Mehdi Chinoune
2023-05-07 12:11:55 +00:00
committed by مهدي شينون (Mehdi Chinoune)
parent f093e146f5
commit 4c7b6bbb65

View File

@@ -3,24 +3,25 @@
_realname=maturin
pkgbase=mingw-w64-python-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
pkgver=0.14.17
pkgver=0.15.1
pkgrel=1
pkgdesc='Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages (mingw-w64)'
url='https://github.com/pyo3/maturin'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
license=('MIT')
license=('spdx:MIT OR spdx:Apach-2.0')
depends=(
${MINGW_PACKAGE_PREFIX}-python
${MINGW_PACKAGE_PREFIX}-python-tomli)
"${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-tomli")
makedepends=(
${MINGW_PACKAGE_PREFIX}-python-build
${MINGW_PACKAGE_PREFIX}-python-installer
${MINGW_PACKAGE_PREFIX}-python-wheel
${MINGW_PACKAGE_PREFIX}-python-setuptools-rust)
source=("${_realname}-${pkgver}.tar.gz::https://github.com/pyo3/${_realname}/archive/v${pkgver}.tar.gz"
"${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-wheel"
"${MINGW_PACKAGE_PREFIX}-python-setuptools-rust")
options=(!strip)
source=("https://pypi.io/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz"
"001-fix-default-target-on-mingw-32bit.patch")
sha256sums=('d47bd483c2748a64d245b4ee34d32d869a30bc7683f2603487dcd54ff08cf846'
sha256sums=('247bec13d82021972e5cb4eb38e7a7aea0e7a034beab60f0e0464ffe7423f24b'
'5d363f2540f84651439f47782c9d60ababde58f7187b09945040f3795745bf45')
prepare() {
@@ -30,7 +31,6 @@ prepare() {
}
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
@@ -43,5 +43,6 @@ package() {
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 license-mit "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
install -Dm644 license-apache "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/license-apache"
install -Dm644 license-mit "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/license-mit"
}