Skip to content

Commit

Permalink
Patch SSLHTTPAdapter for latest requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Patschke committed Jun 3, 2024
1 parent 0e9b5e1 commit bbfe724
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = python-ibm-cloud-sdk-core
pkgdesc = Core python functionality required by the IBM Cloud OpenAPI SDK Generator
pkgver = 3.20.0
pkgrel = 1
pkgrel = 2
url = https://github.com/IBM/python-sdk-core
arch = any
license = Apache-2.0
Expand Down
5 changes: 4 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgname='python-ibm-cloud-sdk-core'
_name='ibm-cloud-sdk-core'
pkgver=3.20.0
pkgrel=1
pkgrel=2
pkgdesc="Core python functionality required by the IBM Cloud OpenAPI SDK Generator"
url="https://github.com/IBM/python-sdk-core"
depends=('python-requests' 'python-dateutil' 'python-pyjwt')
Expand All @@ -16,6 +16,9 @@ sha256sums=('9d7637b7f70a0b4805cfa3c02213c42ebb48baa64020f6559221733c79b1291e')

build() {
cd "python-sdk-core-$pkgver"
sed -i '/ssl_context\.minimum_version = ssl\.TLSVersion\.TLSv1_2/a\ ssl_context.load_default_certs()' ibm_cloud_sdk_core/utils.py
# there seems to be an issue upstream with python requests, which requires us to set the default_certs manually. I've patched it here until either upstream requests or upstream ibm-cloud-sdk-core resolves that.
# see https://github.com/psf/requests/issues/6730
python setup.py build
}

Expand Down

0 comments on commit bbfe724

Please sign in to comment.