Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages /
python-boto3
Commits:
18286b1f by Chih-Hsuan Yen at 2023-12-08T23:09:41+08:00
unblock & misc changes around tests
* avoid requests to IMDS and speed up testing by fake credentials
* do parallel testing only when makepkg.conf specifies parallel building
- - - - -
0aaa7f79 by Chih-Hsuan Yen at 2023-12-08T23:45:36+08:00
upgpkg: 1.33.1-1: bump
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = python-boto3
pkgdesc = The AWS SDK for Python
- pkgver = 1.28.64
+ pkgver = 1.33.1
pkgrel = 1
url = https://github.com/boto/boto3
arch = any
@@ -15,7 +15,7 @@ pkgbase = python-boto3
depends = python-botocore
depends = python-jmespath
depends = python-s3transfer
- source =
python-boto3-1.28.64.tar.gz::https://github.com/boto/boto3/archive/1.28.64.tar.gz
- sha512sums =
ca0042e173c4a35dc9d6ab8ed362d3308753d3722bb4cf25302fd0018c5d94e66a2ea288610192ad5a353ca54f0ab8f1942224269935b1fe3444b2e70842da13
+ source =
python-boto3-1.33.1.tar.gz::https://github.com/boto/boto3/archive/1.33.1.tar.gz
+ sha512sums =
95996e4005d33e85de8f15889e69c4725943b5a0dd74ee97ae82c282b9da68cdbfcbd494b66c4adca5b530eefbe5505b963f9fcb9e97bd78bc74525c78708818
pkgname = python-boto3
=====================================
PKGBUILD
=====================================
@@ -3,8 +3,7 @@
# Contributor: Felix Yan <[email protected]>
pkgname=python-boto3
-# UPDATE_BLOCKED: blocked as python-botocore is blocked
-pkgver=1.28.64
+pkgver=1.33.1
pkgrel=1
pkgdesc='The AWS SDK for Python'
arch=('any')
@@ -14,7 +13,7 @@ depends=('python' 'python-botocore' 'python-jmespath'
'python-s3transfer')
makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
checkdepends=('python-pytest' 'python-pytest-xdist')
source=("$pkgname-$pkgver.tar.gz::https://github.com/boto/boto3/archive/$pkgver.tar.gz")
-sha512sums=('ca0042e173c4a35dc9d6ab8ed362d3308753d3722bb4cf25302fd0018c5d94e66a2ea288610192ad5a353ca54f0ab8f1942224269935b1fe3444b2e70842da13')
+sha512sums=('95996e4005d33e85de8f15889e69c4725943b5a0dd74ee97ae82c282b9da68cdbfcbd494b66c4adca5b530eefbe5505b963f9fcb9e97bd78bc74525c78708818')
build() {
cd boto3-$pkgver
@@ -23,8 +22,18 @@ build() {
check() {
cd boto3-$pkgver
+
+ export AWS_SECRET_ACCESS_KEY=fake_key
+ export AWS_ACCESS_KEY_ID=fake_id
+
+ export PYTEST_XDIST_AUTO_NUM_WORKERS=$(echo "$MAKEFLAGS" | grep -oP
'\-j\s*\K[0-9]+')
+ pytest_args=()
+ if [ -n "$PYTEST_XDIST_AUTO_NUM_WORKERS" ]; then
+ pytest_args+=(-n auto)
+ fi
+
# Many integration tests need real credentials
- pytest tests -n auto --ignore=tests/integration
+ pytest tests "${pytest_args[@]}" --ignore=tests/integration
}
package() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-boto3/-/compare/039ad56c5532ff2e4131316237dfbf9463d3c207...0aaa7f79d2c158e40dbc2411af7f465da680d0cf
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-boto3/-/compare/039ad56c5532ff2e4131316237dfbf9463d3c207...0aaa7f79d2c158e40dbc2411af7f465da680d0cf
You're receiving this email because of your account on gitlab.archlinux.org.