python-gcs-oauth2-boto-plugin: update to 3.3

This commit is contained in:
Biswapriyo Nath 2025-07-23 15:52:11 +00:00
parent 96d6dfc7e7
commit cd17a1ff67
2 changed files with 32 additions and 7 deletions

View File

@ -0,0 +1,20 @@
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@
"""
requires = [
- 'rsa==4.7.2',
+ 'rsa>=4.7.2',
'boto>=2.29.1',
'google-reauth>=0.1.0',
'httplib2>=0.18',
@@ -37,7 +37,7 @@
'pyOpenSSL>=0.13',
'retry_decorator>=1.0.0',
'six>=1.12.0',
- 'google-auth==2.39.0',
+ 'google-auth>=2.39.0',
'google-auth-httplib2>=0.2.0'
]

View File

@ -3,12 +3,13 @@
_realname=gcs-oauth2-boto-plugin
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=3.0
pkgrel=4
pkgver=3.3
pkgrel=1
pkgdesc="Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage in the Boto library. (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://developers.google.com/storage/docs/gspythonlibrary'
msys2_repository_url='https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin'
msys2_references=(
'purl: pkg:pypi/gcs-oauth2-boto-plugin'
)
@ -16,6 +17,8 @@ license=('spdx:Apache-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-rsa"
"${MINGW_PACKAGE_PREFIX}-python-boto"
"${MINGW_PACKAGE_PREFIX}-python-google-auth"
"${MINGW_PACKAGE_PREFIX}-python-google-auth-httplib2"
"${MINGW_PACKAGE_PREFIX}-python-google-reauth"
"${MINGW_PACKAGE_PREFIX}-python-httplib2"
"${MINGW_PACKAGE_PREFIX}-python-oauth2client"
@ -25,16 +28,18 @@ depends=("${MINGW_PACKAGE_PREFIX}-python"
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('f4120b08b7f8d32904674c98f07d4caf4083a58343c0c0fa0016e0f0254dfe31')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname//-/_}/${_realname//-/_}-${pkgver}.tar.gz"
0001-setup.py-allow-newer-verions.patch)
sha256sums=('748e8f73161c884bc1251748b4920115201829ed9a258e7112e8bf8ce45eae18'
'31d57c2e725440d318243af7828527918417008af790199a87ca5ce121d7cab3')
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
sed -e "s|rsa==4.7.2|rsa|g" -i setup.py
cd "${srcdir}"/${_realname//-/_}-${pkgver}
patch -p1 -i "${srcdir}"/0001-setup.py-allow-newer-verions.patch
}
build() {
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
cp -r "${_realname//-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}