[arch-commits] Commit in python-aws-xray-sdk/trunk (PKGBUILD)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Tue Nov 9 15:29:02 UTC 2021


    Date: Tuesday, November 9, 2021 @ 15:29:02
  Author: yan12125
Revision: 1039361

python-aws-xray-sdk: patched for aiobotocore 2.0

Modified:
  python-aws-xray-sdk/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++++
 1 file changed, 5 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-09 15:25:31 UTC (rev 1039360)
+++ PKGBUILD	2021-11-09 15:29:02 UTC (rev 1039361)
@@ -27,6 +27,11 @@
   # https://github.com/aws/aws-xray-sdk-python/blob/2.8.0/aws_xray_sdk/ext/pg8000/patch.py#L27
   # https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
   sed -i "/sql\['database_version'\]/d" tests/ext/pg8000/test_pg8000.py
+
+  # top-level `get_session` is removed by default since aiobotocore 2.0.0
+  # https://github.com/aio-libs/aiobotocore/releases/tag/2.0.0
+  sed -i -e "s/import aiobotocore$/import aiobotocore.session/g" \
+         -e "s/aiobotocore\.get_session/aiobotocore.session.get_session/g" tests/ext/aiobotocore/test_aiobotocore.py
 }
 
 build() {



More information about the arch-commits mailing list