Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 300027a

Browse files
author
yan12125
committed
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 aws/aws-xray-sdk-python#322 git-svn-id: file:///srv/repos/svn-community/svn@1243612 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent a36cf8e commit 300027a

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

python-aws-xray-sdk/trunk/PKGBUILD

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@
33

44
pkgname=python-aws-xray-sdk
55
_pkgname=aws-xray-sdk-python
6-
pkgver=2.9.0
6+
pkgver=2.10.0
77
pkgrel=1
88
pkgdesc='AWS X-Ray SDK for Python'
99
arch=(any)
1010
url='https://github.com/aws/aws-xray-sdk-python'
1111
license=(Apache)
12-
makedepends=(python-setuptools)
13-
depends=(python python-botocore python-future python-wrapt)
14-
checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aiohttp
15-
python-pytest-aiohttp python-testing.postgresql python-psycopg2
16-
python-pg8000 python-requests python-aiobotocore python-bottle
17-
python-webtest python-django-fake-model python-mock python-sqlalchemy
18-
python-pytest-benchmark)
12+
# Not including python-future as it's needed only on Python 2
13+
# https://github.com/aws/aws-xray-sdk-python/pull/343
14+
depends=(python python-botocore python-wrapt)
15+
# See extensions in https://github.com/aws/aws-xray-sdk-python/tree/master/aws_xray_sdk/ext
16+
optdepends=(python-aiobotocore python-aiohttp python-bottle python-django
17+
python-flask python-flask-sqlalchemy python-mysql-connector
18+
python-pg8000 python-psycopg2 python-pymongo python-pymysql
19+
python-pynamodb python-requests python-sqlalchemy)
20+
makedepends=(python-setuptools ${optdepends[@]})
21+
checkdepends=(python-pytest python-pytest-aiohttp python-testing.postgresql
22+
python-webtest python-django-fake-model python-mock python-pytest-benchmark)
1923
# Not using PyPI source tarball as it does not include tests
2024
source=("https://github.com/aws/aws-xray-sdk-python/archive/$pkgver/$pkgname-$pkgver.tar.gz"
2125
"python310.diff")
22-
sha256sums=('03de6e87e46394ea02a9dc605a4038462f41eca9e2e4d39eca6b0cfaa50fa280'
26+
sha256sums=('ac44b578718a6d975e980354194e1a4e300f9713bf60b74dbe1ce62efe6dd1ed'
2327
'11784ed0d9b9f89bf1cc43a6d97d8488672b74e3419e121be1a50f09e409ad71')
2428

2529
prepare() {
@@ -29,11 +33,10 @@ prepare() {
2933
# https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
3034
sed -i "/sql\['database_version'\]/d" tests/ext/pg8000/test_pg8000.py
3135

32-
# top-level `get_session` is removed by default since aiobotocore 2.0.0
33-
# https://github.com/aio-libs/aiobotocore/releases/tag/2.0.0
34-
sed -i -e "s/import aiobotocore$/import aiobotocore.session/g" \
35-
-e "s/aiobotocore\.get_session/aiobotocore.session.get_session/g" tests/ext/aiobotocore/test_aiobotocore.py
36+
# Django 4.x compatibility; see https://docs.djangoproject.com/en/3.2/ref/urls/#url
37+
sed -i 's#from django.conf.urls import url#from django.urls import re_path as url#' tests/ext/django/app/views.py
3638

39+
# https://github.com/aws/aws-xray-sdk-python/issues/321
3740
patch -Np1 -i ../python310.diff
3841
}
3942

0 commit comments

Comments
 (0)