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

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Sat Jul 2 09:30:16 UTC 2022


    Date: Saturday, July 2, 2022 @ 09:30:15
  Author: yan12125
Revision: 1243612

upgpkg: python-aws-xray-sdk 2.10.0-1; reorganize deps to address namcap reports

* add patch for Django 4.x compatibility
* remove patch for aiobotocore 2.x compatibility - fixed upstream https://github.com/aws/aws-xray-sdk-python/pull/322

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

----------+
 PKGBUILD |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-02 09:11:25 UTC (rev 1243611)
+++ PKGBUILD	2022-07-02 09:30:15 UTC (rev 1243612)
@@ -3,23 +3,27 @@
 
 pkgname=python-aws-xray-sdk
 _pkgname=aws-xray-sdk-python
-pkgver=2.9.0
+pkgver=2.10.0
 pkgrel=1
 pkgdesc='AWS X-Ray SDK for Python'
 arch=(any)
 url='https://github.com/aws/aws-xray-sdk-python'
 license=(Apache)
-makedepends=(python-setuptools)
-depends=(python python-botocore python-future python-wrapt)
-checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aiohttp
-              python-pytest-aiohttp python-testing.postgresql python-psycopg2
-              python-pg8000 python-requests python-aiobotocore python-bottle
-              python-webtest python-django-fake-model python-mock python-sqlalchemy
-              python-pytest-benchmark)
+# Not including python-future as it's needed only on Python 2
+# https://github.com/aws/aws-xray-sdk-python/pull/343
+depends=(python python-botocore python-wrapt)
+# See extensions in https://github.com/aws/aws-xray-sdk-python/tree/master/aws_xray_sdk/ext
+optdepends=(python-aiobotocore python-aiohttp python-bottle python-django
+            python-flask python-flask-sqlalchemy python-mysql-connector
+            python-pg8000 python-psycopg2 python-pymongo python-pymysql
+            python-pynamodb python-requests python-sqlalchemy)
+makedepends=(python-setuptools ${optdepends[@]})
+checkdepends=(python-pytest python-pytest-aiohttp python-testing.postgresql
+              python-webtest python-django-fake-model python-mock python-pytest-benchmark)
 # Not using PyPI source tarball as it does not include tests
 source=("https://github.com/aws/aws-xray-sdk-python/archive/$pkgver/$pkgname-$pkgver.tar.gz"
         "python310.diff")
-sha256sums=('03de6e87e46394ea02a9dc605a4038462f41eca9e2e4d39eca6b0cfaa50fa280'
+sha256sums=('ac44b578718a6d975e980354194e1a4e300f9713bf60b74dbe1ce62efe6dd1ed'
             '11784ed0d9b9f89bf1cc43a6d97d8488672b74e3419e121be1a50f09e409ad71')
 
 prepare() {
@@ -29,11 +33,10 @@
   # 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
+  # Django 4.x compatibility; see https://docs.djangoproject.com/en/3.2/ref/urls/#url
+  sed -i 's#from django.conf.urls import url#from django.urls import re_path as url#' tests/ext/django/app/views.py
 
+  # https://github.com/aws/aws-xray-sdk-python/issues/321
   patch -Np1 -i ../python310.diff
 }
 



More information about the arch-commits mailing list