Date: Sunday, October 23, 2022 @ 15:44:38 Author: yan12125 Revision: 1334330
upgpkg: python-botocore 1.27.96-1; add check(); update deps; list myself as the maintainer; switch to sha256sums Among new deps, python-certifi addresses https://archlinux.org/todo/use-system-ca-store/ Also, drops python-docutils as upstream dropped it some time ago https://github.com/boto/botocore/pull/2154 Added: python-botocore/trunk/tests-keep-env.diff Modified: python-botocore/trunk/PKGBUILD ---------------------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++------ tests-keep-env.diff | 15 +++++++++++++++ 2 files changed, 47 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-23 15:33:13 UTC (rev 1334329) +++ PKGBUILD 2022-10-23 15:44:38 UTC (rev 1334330) @@ -1,25 +1,51 @@ -# Maintainer: Jonathan Steel <jsteel at archlinux.org> +# Maintainer: Chih-Hsuan Yen <[email protected]> +# Contributor: Jonathan Steel <jsteel at archlinux.org> # Contributor: Chris Severance aur.severach AatT spamgourmet.com # Contributor: Ainola # Contributor: Chris Fordham pkgname=python-botocore -pkgver=1.27.91 +pkgver=1.27.96 pkgrel=1 pkgdesc='A low-level interface to a growing number of Amazon Web Services' arch=('any') url="https://github.com/boto/botocore" license=('Apache') -depends=('python-dateutil' 'python-jmespath' 'python-docutils' 'python-urllib3') -makedepends=('python-setuptools') -source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) -md5sums=('4fe6316083f06c27836aa6b383bb4046') +depends=('python' 'python-certifi' 'python-dateutil' 'python-jmespath' 'python-urllib3') +makedepends=('python-setuptools' 'python-awscrt') +# Tests need the 'ps' binary +checkdepends=('python-pytest' 'python-pytest-xdist' 'python-jsonschema' 'procps-ng') +optdepends=( + 'python-awscrt' +) +source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz + tests-keep-env.diff) +sha256sums=('9c109da05b54861c9794f703a52e5f03f92b6cb420364170668f6db8b08d326c' + '15c588d3f4cfcc0ef26fc4ff367eb6dc12dc2f303e299cbe397288089ee52a11') +prepare() { + cd botocore-$pkgver + # https://github.com/boto/botocore/pull/2791 + patch -Np1 -i ../tests-keep-env.diff +} + build() { cd botocore-$pkgver python setup.py build } +check() { + cd botocore-$pkgver + + export AWS_SECRET_ACCESS_KEY=fake_key + export AWS_ACCESS_KEY_ID=fake_id + + export PYTHONPATH="$PWD" + + # Many integration tests need real credentials + pytest tests -n auto --ignore=tests/integration +} + package() { cd botocore-$pkgver python setup.py install --root="$pkgdir" --optimize=1 Added: tests-keep-env.diff =================================================================== --- tests-keep-env.diff (rev 0) +++ tests-keep-env.diff 2022-10-23 15:44:38 UTC (rev 1334330) @@ -0,0 +1,15 @@ +--- a/tests/__init__.py 2022-10-17 14:59:15.734686304 +0800 ++++ b/tests/__init__.py 2022-10-17 14:59:20.814593222 +0800 +@@ -165,9 +165,10 @@ + + def setUp(self): + self.driver = ClientDriver() +- env = None ++ env = os.environ.copy() + if self.INJECT_DUMMY_CREDS: +- env = {'AWS_ACCESS_KEY_ID': 'foo', 'AWS_SECRET_ACCESS_KEY': 'bar'} ++ env['AWS_ACCESS_KEY_ID'] = 'foo' ++ env['AWS_SECRET_ACCESS_KEY'] = 'bar' + self.driver.start(env=env) + + def cmd(self, *args):
