python-boto3: update to 1.26.137

This commit is contained in:
Mehdi Chinoune
2023-04-28 00:32:09 +00:00
committed by مهدي شينون (Mehdi Chinoune)
parent 12d2565e54
commit fc01a07623

View File

@@ -3,7 +3,7 @@
_realname=boto3
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.26.121
pkgver=1.26.137
pkgrel=1
pkgdesc='The AWS SDK for Python (mingw-w64)'
arch=('any')
@@ -13,9 +13,12 @@ license=('spdx:Apache-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-python-botocore"
"${MINGW_PACKAGE_PREFIX}-python-jmespath"
"${MINGW_PACKAGE_PREFIX}-python-s3transfer")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://github.com/boto/boto3/archive/$pkgver.tar.gz")
sha256sums=('3b28fa48bd46d584235d7616161d8a21086ae101ddaa8b8ba742469bce7d1a94')
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('cac699fc46b43c10ca12aa6ea087c0b979613c5e3570aea11d86891652cb581e')
prepare() {
rm -rf python-build-${MSYSTEM} | true
@@ -23,15 +26,14 @@ prepare() {
}
build() {
msg "Python build for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
--root="${pkgdir}" --optimize=1 --skip-build
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}