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

Commit 2bb1a88

Browse files
yan12125svntogit
yan12125
authored and
svntogit
committed
python-aws-xray-sdk: fix building with newer deps
git-svn-id: file:///srv/repos/svn-community/svn@1339001 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 5c86631 commit 2bb1a88

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

trunk/PKGBUILD

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ optdepends=(python-aiobotocore python-aiohttp python-bottle python-django
1818
python-pg8000 python-psycopg2 python-pymongo python-pymysql
1919
python-pynamodb python-requests python-sqlalchemy)
2020
makedepends=(python-setuptools ${optdepends[@]})
21-
checkdepends=(python-pytest python-pytest-aiohttp python-testing.postgresql
21+
checkdepends=(python-pytest python-pytest-asyncio python-pytest-aiohttp python-testing.postgresql
2222
python-webtest python-django-fake-model python-mock python-pytest-benchmark)
2323
# Not using PyPI source tarball as it does not include tests
2424
source=("https://github.com/aws/aws-xray-sdk-python/archive/$pkgver/$pkgname-$pkgver.tar.gz"
@@ -38,6 +38,11 @@ prepare() {
3838

3939
# https://github.com/aws/aws-xray-sdk-python/issues/321
4040
patch -Np1 -i ../python310.diff
41+
42+
cat > pytest.ini <<EOF
43+
[pytest]
44+
asyncio_mode = auto
45+
EOF
4146
}
4247

4348
build() {
@@ -53,10 +58,13 @@ check() {
5358
export AWS_SECRET_ACCESS_KEY=fake_key
5459
export AWS_ACCESS_KEY_ID=fake_id
5560

56-
# the test suite for pymysql uses testing.mysqld, which is not
57-
# compatible with MariaDB
58-
# https://github.com/tk0miya/testing.mysqld/issues/3
59-
pytest -v tests --ignore tests/ext/pymysql
61+
# * the test suite for aiohttp uses test_client fixture, which is
62+
# dropped in the latest pytest-aiohttp
63+
# * the test suite for pymysql uses testing.mysqld, which is not
64+
# compatible with MariaDB [1]
65+
# [1] https://github.com/tk0miya/testing.mysqld/issues/3
66+
pytest -v tests --ignore tests/ext/aiohttp \
67+
--ignore tests/ext/pymysql
6068
}
6169

6270
package() {

0 commit comments

Comments
 (0)