Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-awscrt
Commits: 21da6242 by Chih-Hsuan Yen at 2024-10-11T12:25:11+08:00 0.22.0 - add workaround for a slow test - - - - - 6cc5608e by Chih-Hsuan Yen at 2024-10-11T13:20:25+08:00 upgpkg: 0.22.0-2: bump - - - - - 3 changed files: - .SRCINFO - PKGBUILD - + test-timeout-workaround.diff Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-awscrt pkgdesc = A common runtime for AWS Python projects - pkgver = 0.21.5 - pkgrel = 1 + pkgver = 0.22.0 + pkgrel = 2 url = https://github.com/awslabs/aws-crt-python arch = x86_64 license = Apache-2.0 @@ -16,7 +16,8 @@ pkgbase = python-awscrt depends = gcc-libs depends = python depends = openssl - source = git+https://github.com/awslabs/aws-crt-python.git#tag=v0.21.5 + source = git+https://github.com/awslabs/aws-crt-python.git#tag=v0.22.0 + source = test-timeout-workaround.diff source = git+https://github.com/awslabs/aws-c-auth source = git+https://github.com/awslabs/aws-c-cal source = git+https://github.com/awslabs/aws-c-common @@ -29,7 +30,8 @@ pkgbase = python-awscrt source = git+https://github.com/awslabs/aws-c-sdkutils source = git+https://github.com/awslabs/aws-checksums source = git+https://github.com/awslabs/s2n - sha256sums = dfe1b4897b474f9431a39fec507cff77401b3e0d0f4453eb2e999694cc1051e1 + sha256sums = cadc5b1e7bf79e9362ce740fa7e538a9644292ab2bda3624c15b5b30655bab83 + sha256sums = 2a76a90dfa59b2fadf25f6e74cd7ff516a50d6b4005f185b9fa2df48ece86d79 sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP ===================================== PKGBUILD ===================================== @@ -4,8 +4,8 @@ _pkgname=aws-crt-python pkgname=python-awscrt # https://github.com/awslabs/aws-crt-python/releases -pkgver=0.21.5 -pkgrel=1 +pkgver=0.22.0 +pkgrel=2 pkgdesc='A common runtime for AWS Python projects' arch=(x86_64) url='https://github.com/awslabs/aws-crt-python' @@ -15,6 +15,7 @@ depends=(glibc gcc-libs python openssl) makedepends=(git cmake python-build python-installer python-setuptools python-wheel) checkdepends=(python-websockets) source=("git+https://github.com/awslabs/aws-crt-python.git#tag=v$pkgver" + "test-timeout-workaround.diff" "git+https://github.com/awslabs/aws-c-auth" "git+https://github.com/awslabs/aws-c-cal" "git+https://github.com/awslabs/aws-c-common" @@ -27,7 +28,8 @@ source=("git+https://github.com/awslabs/aws-crt-python.git#tag=v$pkgver" "git+https://github.com/awslabs/aws-c-sdkutils" "git+https://github.com/awslabs/aws-checksums" "git+https://github.com/awslabs/s2n") -sha256sums=('dfe1b4897b474f9431a39fec507cff77401b3e0d0f4453eb2e999694cc1051e1' +sha256sums=('cadc5b1e7bf79e9362ce740fa7e538a9644292ab2bda3624c15b5b30655bab83' + '2a76a90dfa59b2fadf25f6e74cd7ff516a50d6b4005f185b9fa2df48ece86d79' 'SKIP' 'SKIP' 'SKIP' @@ -59,6 +61,10 @@ prepare() { git config submodule.crt/$crt.url "$srcdir"/$crt git -c protocol.file.allow=always submodule update crt/$crt done + + # Work-around timeout in test_h2_client. Although the test file takes less than 10 seconds to download with curl, + # the test takes more than 80 seconds. + patch -Np0 -i ../test-timeout-workaround.diff } build() { ===================================== test-timeout-workaround.diff ===================================== @@ -0,0 +1,11 @@ +--- test/test_http_client.py.orig 2024-10-10 11:05:36.316838564 +0800 ++++ test/test_http_client.py 2024-10-10 11:05:44.913421538 +0800 +@@ -359,7 +359,7 @@ + stream.activate() + + # wait for stream to complete (use long timeout, it's a big file) +- stream_completion_result = stream.completion_future.result(80) ++ stream_completion_result = stream.completion_future.result(200) + + # check result + self.assertEqual(200, response.status_code) View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-awscrt/-/compare/f5c173ebb225d4b38399c67c9927d73864d2b4d5...6cc5608e33e8ccf5d93ea3cadcd0e3f448dd0f1d -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-awscrt/-/compare/f5c173ebb225d4b38399c67c9927d73864d2b4d5...6cc5608e33e8ccf5d93ea3cadcd0e3f448dd0f1d You're receiving this email because of your account on gitlab.archlinux.org.