From c1257e6fab8ab186e14511a081c3895352b8541f Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 27 Jul 2024 14:33:16 +0000 Subject: [PATCH] python-urllib3: update to 1.26.19 --- mingw-w64-python-urllib3/PKGBUILD | 41 ++++++++++++++----------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/mingw-w64-python-urllib3/PKGBUILD b/mingw-w64-python-urllib3/PKGBUILD index 01f6311397e6b..ae5e0ac06e90d 100644 --- a/mingw-w64-python-urllib3/PKGBUILD +++ b/mingw-w64-python-urllib3/PKGBUILD @@ -3,24 +3,25 @@ _realname=urllib3 pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=1.26.18 +pkgver=1.26.19 pkgrel=1 pkgdesc="HTTP library with thread-safe connection pooling and file post support (mingw-w64)" -url='https://github.com/urllib3/urllib3' -license=('MIT') arch=('any') msys2_references=( 'pypi: urllib3' "cpe: cpe:/a:python:urllib3" ) mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +msys2_repository_url='https://github.com/urllib3/urllib3' +url='https://urllib3.readthedocs.io/' +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-certifi" "${MINGW_PACKAGE_PREFIX}-python-idna") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-python-wheel" "${MINGW_PACKAGE_PREFIX}-python-ndg-httpsclient" "${MINGW_PACKAGE_PREFIX}-python-pyasn1" "${MINGW_PACKAGE_PREFIX}-python-pyopenssl" @@ -30,26 +31,20 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose" "${MINGW_PACKAGE_PREFIX}-python-tornado" "${MINGW_PACKAGE_PREFIX}-python-coverage" "${MINGW_PACKAGE_PREFIX}-python-psutil") -source=("${_realname}-${pkgver}.tar.gz::https://github.com/urllib3/urllib3/archive/${pkgver}.tar.gz") -sha256sums=('16e6b13fdcb0949ad02f9ff453167b472af9911c420d5d6abfd3bdd11929e505') - -prepare() { - cd ${srcdir} - cp -r ${_realname}-${pkgver} python-build-${CARCH} -} +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('3e3d753a8618b86d7de333b4223005f68720bcd6a7d2bcb9fbd2229ec7c1e429') build() { - cd "${srcdir}" - msg "Python build for ${CARCH}" - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { - cd ${srcdir}/python-build-${CARCH} - ${MINGW_PREFIX}/bin/python setup.py build - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" + cd "${srcdir}/python-build-${MSYSTEM}" + + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl - install -D -m644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}"/share/licenses/python-${_realname}/LICENSE.txt + install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.txt" }