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

Commit 18c10ba

Browse files
foutrelissvntogit
foutrelis
authored and
svntogit
committed
db-move: moved python-aws-xray-sdk from [community-testing] to [community] (any)
git-svn-id: file:///srv/repos/svn-community/svn@1069716 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 353eb41 commit 18c10ba

File tree

3 files changed

+18
-75
lines changed

3 files changed

+18
-75
lines changed

repos/community-any/PKGBUILD

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,38 @@
33

44
pkgname=python-aws-xray-sdk
55
_pkgname=aws-xray-sdk-python
6-
pkgver=2.8.0
7-
pkgrel=2
6+
pkgver=2.9.0
7+
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-
# 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)
1614
checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aiohttp
1715
python-pytest-aiohttp python-testing.postgresql python-psycopg2
1816
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)
2019
# 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')
2324

2425
prepare() {
2526
cd $_pkgname-$pkgver
2627
# The 'database_version' field relies on a private member in pg8000 [1], which is removed in pg8000 1.21 [2]
2728
# https://github.com/aws/aws-xray-sdk-python/blob/2.8.0/aws_xray_sdk/ext/pg8000/patch.py#L27
2829
# https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
2930
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
3038
}
3139

3240
build() {
@@ -45,10 +53,7 @@ check() {
4553
# the test suite for pymysql uses testing.mysqld, which is not
4654
# compatible with MariaDB
4755
# 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
5257
}
5358

5459
package() {

repos/community-testing-any/PKGBUILD

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)