Skip to content

Commit

Permalink
python-urllib3: update to 1.26.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Jul 27, 2024
1 parent 7fe3b5e commit c1257e6
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions mingw-w64-python-urllib3/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}

0 comments on commit c1257e6

Please sign in to comment.