3
3
4
4
pkgname=python-aws-xray-sdk
5
5
_pkgname=aws-xray-sdk-python
6
- pkgver=2.8 .0
7
- pkgrel=2
6
+ pkgver=2.9 .0
7
+ pkgrel=1
8
8
pkgdesc=' AWS X-Ray SDK for Python'
9
9
arch=(any)
10
10
url=' https://github.com/aws/aws-xray-sdk-python'
11
11
license=(Apache)
12
- # XXX: move setuptools back to makedepends in the next version
13
- # https://github.com/aws/aws-xray-sdk-python/pull/306
14
- makedepends=()
15
- depends=(python python-botocore python-future python-wrapt python-setuptools)
12
+ makedepends=(python-setuptools)
13
+ depends=(python python-botocore python-future python-wrapt)
16
14
checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aiohttp
17
15
python-pytest-aiohttp python-testing.postgresql python-psycopg2
18
16
python-pg8000 python-requests python-aiobotocore python-bottle
19
- python-webtest python-django-fake-model python-mock python-sqlalchemy)
17
+ python-webtest python-django-fake-model python-mock python-sqlalchemy
18
+ python-pytest-benchmark)
20
19
# Not using PyPI source tarball as it does not include tests
21
- source=(" https://github.com/aws/aws-xray-sdk-python/archive/$pkgver /$pkgname -$pkgver .tar.gz" )
22
- sha256sums=(' 3f94ee35d8e34022939153dcc6d5bd8bce1428ee4811f0ee4713e40dae8b22dd' )
20
+ source=(" https://github.com/aws/aws-xray-sdk-python/archive/$pkgver /$pkgname -$pkgver .tar.gz"
21
+ " python310.diff" )
22
+ sha256sums=(' 03de6e87e46394ea02a9dc605a4038462f41eca9e2e4d39eca6b0cfaa50fa280'
23
+ ' 11784ed0d9b9f89bf1cc43a6d97d8488672b74e3419e121be1a50f09e409ad71' )
23
24
24
25
prepare () {
25
26
cd $_pkgname -$pkgver
26
27
# The 'database_version' field relies on a private member in pg8000 [1], which is removed in pg8000 1.21 [2]
27
28
# https://github.com/aws/aws-xray-sdk-python/blob/2.8.0/aws_xray_sdk/ext/pg8000/patch.py#L27
28
29
# https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
29
30
sed -i " /sql\['database_version'\]/d" tests/ext/pg8000/test_pg8000.py
31
+
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
+
37
+ patch -Np1 -i ../python310.diff
30
38
}
31
39
32
40
build () {
@@ -45,10 +53,7 @@ check() {
45
53
# the test suite for pymysql uses testing.mysqld, which is not
46
54
# compatible with MariaDB
47
55
# https://github.com/tk0miya/testing.mysqld/issues/3
48
- # Tests in test_sqlalchemy_core_2.py need sqlalchemy >= 1.4 [1]
49
- # https://github.com/aws/aws-xray-sdk-python/pull/289
50
- pytest -v tests --ignore tests/ext/pymysql \
51
- --ignore tests/ext/sqlalchemy_core/test_sqlalchemy_core_2.py
56
+ pytest -v tests --ignore tests/ext/pymysql
52
57
}
53
58
54
59
package () {
0 commit comments