Date: Saturday, March 11, 2023 @ 06:27:48
  Author: yan12125
Revision: 1418516

archrelease: copy trunk to community-testing-any

Added:
  python-botocore/repos/community-testing-any/
  python-botocore/repos/community-testing-any/PKGBUILD
    (from rev 1418515, python-botocore/trunk/PKGBUILD)
  python-botocore/repos/community-testing-any/tests-keep-env.diff
    (from rev 1418515, python-botocore/trunk/tests-keep-env.diff)

---------------------+
 PKGBUILD            |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests-keep-env.diff |   15 +++++++++++++
 2 files changed, 69 insertions(+)

Copied: python-botocore/repos/community-testing-any/PKGBUILD (from rev 1418515, 
python-botocore/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-03-11 06:27:48 UTC (rev 1418516)
@@ -0,0 +1,54 @@
+# 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
+# UPDATE_BLOCKED: newer python-botocore will likely break python-aiobotocore
+pkgver=1.29.89
+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' '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=('a6a0cef87a99538c5651f3d188a422f8c4788e1d2c000e863ff89f8b2ca6b474'
+            '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
+  PYTHONDONTWRITEBYTECODE=1 pytest tests -n auto --ignore=tests/integration
+}
+
+package() {
+  cd botocore-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-botocore/repos/community-testing-any/tests-keep-env.diff (from 
rev 1418515, python-botocore/trunk/tests-keep-env.diff)
===================================================================
--- community-testing-any/tests-keep-env.diff                           (rev 0)
+++ community-testing-any/tests-keep-env.diff   2023-03-11 06:27:48 UTC (rev 
1418516)
@@ -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):

Reply via email to