Date: Sunday, May 7, 2023 @ 08:55:04
Author: yan12125
Revision: 1459227
archrelease: copy trunk to community-any
Added:
aws-cli-v2/repos/community-any/PKGBUILD
(from rev 1459226, aws-cli-v2/trunk/PKGBUILD)
aws-cli-v2/repos/community-any/build-ac.index-in-tmp.diff
(from rev 1459226, aws-cli-v2/trunk/build-ac.index-in-tmp.diff)
aws-cli-v2/repos/community-any/fix-env.diff
(from rev 1459226, aws-cli-v2/trunk/fix-env.diff)
aws-cli-v2/repos/community-any/keys/
Deleted:
aws-cli-v2/repos/community-any/PKGBUILD
aws-cli-v2/repos/community-any/build-ac.index-in-tmp.diff
aws-cli-v2/repos/community-any/fix-env.diff
aws-cli-v2/repos/community-any/keys/
----------------------------+
PKGBUILD | 158 +++++++++++++++++++++----------------------
build-ac.index-in-tmp.diff | 58 +++++++--------
fix-env.diff | 20 ++---
3 files changed, 118 insertions(+), 118 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-07 08:54:18 UTC (rev 1459226)
+++ PKGBUILD 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -1,79 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: Marcel Campello <[email protected]>
-# Contributor: David Birks <[email protected]>
-
-pkgname=aws-cli-v2
-pkgver=2.11.14
-pkgrel=2
-pkgdesc='Unified command line interface for Amazon Web Services (version 2)'
-arch=(any)
-url='https://github.com/aws/aws-cli/tree/v2'
-license=(Apache)
-depends=(python python-awscrt python-certifi python-colorama
python-cryptography python-dateutil
- python-distro python-docutils python-jmespath python-prompt_toolkit
python-ruamel-yaml
- python-urllib3)
-makedepends=(python-build python-wheel python-flit-core python-installer)
-# Tests need the 'ps' binary
-checkdepends=(python-pytest python-pytest-xdist python-jsonschema python-mock
procps-ng)
-provides=(aws-cli)
-conflicts=(aws-cli)
-source=("https://awscli.amazonaws.com/awscli-$pkgver.tar.gz"{,.sig}
- build-ac.index-in-tmp.diff
- fix-env.diff
-
"$pkgname-tz-fix.patch::https://github.com/aws/aws-cli/pull/7762.patch")
-sha256sums=('7adbfc53585f1587cce05850b931113921ae74c1deb30dcaf5b3c4c40c9208c7'
- 'SKIP'
- '0267e41561ab2c46a97ebfb024f0b047aabc9e6b9866f204b2c1a84ee5810d63'
- '893d61d7e958c3c02bfa1e03bf58f6f6abd98849d248cc661f1c56423df9f312'
- '4fc614b8550d7363bb2d578c6b49326c9255203eb2f933fd0551f96ed5fb1f30')
-validpgpkeys=(
- 'FB5DB77FD5C118B80511ADA8A6310ACC4672475C' # the key mentioned on
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
-)
-
-prepare() {
- cd awscli-$pkgver
-
- # Don't treat warnings as errors
- sed -i '/"error::/d' pyproject.toml
-
- # ac.index is an SQLite database, and building it on copy-on-write
filesystems (ex: BTRFS) takes ages
- patch -Np1 -i ../build-ac.index-in-tmp.diff
-
- # Fix conflicts between tests/functional/test_clidriver.py::TestSession and
tests/functional/botocore/leak/test_resource_leaks.py
- patch -Np1 -i ../fix-env.diff
-
- # Fix possible test failure with a non-UTC time zone
(https://bugs.archlinux.org/task/77919)
- patch -Np1 -i ../$pkgname-tz-fix.patch
-}
-
-build() {
- cd awscli-$pkgver
-
- # flit-core adds runtime dependencies to reported build-time dependencies
[1],
- # and upstream often lags behind the latest dependencies [2], thus
--skip-dependency-check
- # [1] https://github.com/pypa/flit/issues/354
- # [2] https://github.com/aws/aws-cli/issues/5943
- python -m build --wheel --no-isolation --skip-dependency-check
- # Copy the built ac.index for tests
- cp -v build/unpacked_wheel/awscli/data/ac.index awscli/data/ac.index
-}
-
-check() {
- cd awscli-$pkgver
-
- export AWS_SECRET_ACCESS_KEY=fake_key
- export AWS_ACCESS_KEY_ID=fake_id
-
- export PYTHONPATH="$PWD"
-
- # * Use --dist=loadfile following upstream. The default --dist=load may
cause test failures and is not faster
- # * Disable backend tests - those tests check if aws-cli can be installed or
not, and are not compatible with all kinds of environments
- pytest tests -n auto --dist loadfile --ignore=tests/backends
--ignore=tests/integration
-}
-
-package() {
- cd awscli-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm 644 bin/aws_bash_completer
"$pkgdir/usr/share/bash-completion/completions/aws"
-}
Copied: aws-cli-v2/repos/community-any/PKGBUILD (from rev 1459226,
aws-cli-v2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -0,0 +1,79 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Marcel Campello <[email protected]>
+# Contributor: David Birks <[email protected]>
+
+pkgname=aws-cli-v2
+pkgver=2.11.18
+pkgrel=1
+pkgdesc='Unified command line interface for Amazon Web Services (version 2)'
+arch=(any)
+url='https://github.com/aws/aws-cli/tree/v2'
+license=(Apache)
+depends=(python python-awscrt python-certifi python-colorama
python-cryptography python-dateutil
+ python-distro python-docutils python-jmespath python-prompt_toolkit
python-ruamel-yaml
+ python-urllib3)
+makedepends=(python-build python-wheel python-flit-core python-installer)
+# Tests need the 'ps' binary
+checkdepends=(python-pytest python-pytest-xdist python-jsonschema python-mock
procps-ng)
+provides=(aws-cli)
+conflicts=(aws-cli)
+source=("https://awscli.amazonaws.com/awscli-$pkgver.tar.gz"{,.sig}
+ build-ac.index-in-tmp.diff
+ fix-env.diff
+
"$pkgname-tz-fix.patch::https://github.com/aws/aws-cli/pull/7762.patch")
+sha256sums=('b09bee1a52a1dc8c3f5e904195933fd27583f867276dd0deefc53358b9074b9d'
+ 'SKIP'
+ '0267e41561ab2c46a97ebfb024f0b047aabc9e6b9866f204b2c1a84ee5810d63'
+ '893d61d7e958c3c02bfa1e03bf58f6f6abd98849d248cc661f1c56423df9f312'
+ '4fc614b8550d7363bb2d578c6b49326c9255203eb2f933fd0551f96ed5fb1f30')
+validpgpkeys=(
+ 'FB5DB77FD5C118B80511ADA8A6310ACC4672475C' # the key mentioned on
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
+)
+
+prepare() {
+ cd awscli-$pkgver
+
+ # Don't treat warnings as errors
+ sed -i '/"error::/d' pyproject.toml
+
+ # ac.index is an SQLite database, and building it on copy-on-write
filesystems (ex: BTRFS) takes ages
+ patch -Np1 -i ../build-ac.index-in-tmp.diff
+
+ # Fix conflicts between tests/functional/test_clidriver.py::TestSession and
tests/functional/botocore/leak/test_resource_leaks.py
+ patch -Np1 -i ../fix-env.diff
+
+ # Fix possible test failure with a non-UTC time zone
(https://bugs.archlinux.org/task/77919)
+ patch -Np1 -i ../$pkgname-tz-fix.patch
+}
+
+build() {
+ cd awscli-$pkgver
+
+ # flit-core adds runtime dependencies to reported build-time dependencies
[1],
+ # and upstream often lags behind the latest dependencies [2], thus
--skip-dependency-check
+ # [1] https://github.com/pypa/flit/issues/354
+ # [2] https://github.com/aws/aws-cli/issues/5943
+ python -m build --wheel --no-isolation --skip-dependency-check
+ # Copy the built ac.index for tests
+ cp -v build/unpacked_wheel/awscli/data/ac.index awscli/data/ac.index
+}
+
+check() {
+ cd awscli-$pkgver
+
+ export AWS_SECRET_ACCESS_KEY=fake_key
+ export AWS_ACCESS_KEY_ID=fake_id
+
+ export PYTHONPATH="$PWD"
+
+ # * Use --dist=loadfile following upstream. The default --dist=load may
cause test failures and is not faster
+ # * Disable backend tests - those tests check if aws-cli can be installed or
not, and are not compatible with all kinds of environments
+ pytest tests -n auto --dist loadfile --ignore=tests/backends
--ignore=tests/integration
+}
+
+package() {
+ cd awscli-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm 644 bin/aws_bash_completer
"$pkgdir/usr/share/bash-completion/completions/aws"
+}
Deleted: build-ac.index-in-tmp.diff
===================================================================
--- build-ac.index-in-tmp.diff 2023-05-07 08:54:18 UTC (rev 1459226)
+++ build-ac.index-in-tmp.diff 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -1,29 +0,0 @@
---- a/backends/pep517.py 2023-02-16 02:15:30.000000000 +0800
-+++ b/backends/pep517.py 2023-02-18 01:31:54.245328767 +0800
-@@ -30,6 +30,7 @@
- import os
- import glob
- import tarfile
-+import tempfile
- import shutil
- import sys
- import zipfile
-@@ -214,14 +215,16 @@
-
-
- def _build_and_inject_ac_index(build_dir, extracted_wheel_dir):
-- ac_index_build_name = _build_ac_index(build_dir)
-+ ac_index_dir = tempfile.mkdtemp()
-+ ac_index_build_name = _build_ac_index(ac_index_dir)
- extracted_ac_index = os.path.join(extracted_wheel_dir, AC_INDEX_REL_PATH)
- _remove_file_if_exists(extracted_ac_index)
- print("Adding auto-complete index into wheel")
-- os.rename(
-+ shutil.copy2(
- ac_index_build_name,
- extracted_ac_index,
- )
-+ shutil.rmtree(ac_index_dir)
-
-
- def _build_ac_index(build_dir, rebuild=True):
Copied: aws-cli-v2/repos/community-any/build-ac.index-in-tmp.diff (from rev
1459226, aws-cli-v2/trunk/build-ac.index-in-tmp.diff)
===================================================================
--- build-ac.index-in-tmp.diff (rev 0)
+++ build-ac.index-in-tmp.diff 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -0,0 +1,29 @@
+--- a/backends/pep517.py 2023-02-16 02:15:30.000000000 +0800
++++ b/backends/pep517.py 2023-02-18 01:31:54.245328767 +0800
+@@ -30,6 +30,7 @@
+ import os
+ import glob
+ import tarfile
++import tempfile
+ import shutil
+ import sys
+ import zipfile
+@@ -214,14 +215,16 @@
+
+
+ def _build_and_inject_ac_index(build_dir, extracted_wheel_dir):
+- ac_index_build_name = _build_ac_index(build_dir)
++ ac_index_dir = tempfile.mkdtemp()
++ ac_index_build_name = _build_ac_index(ac_index_dir)
+ extracted_ac_index = os.path.join(extracted_wheel_dir, AC_INDEX_REL_PATH)
+ _remove_file_if_exists(extracted_ac_index)
+ print("Adding auto-complete index into wheel")
+- os.rename(
++ shutil.copy2(
+ ac_index_build_name,
+ extracted_ac_index,
+ )
++ shutil.rmtree(ac_index_dir)
+
+
+ def _build_ac_index(build_dir, rebuild=True):
Deleted: fix-env.diff
===================================================================
--- fix-env.diff 2023-05-07 08:54:18 UTC (rev 1459226)
+++ fix-env.diff 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -1,10 +0,0 @@
---- a/tests/functional/test_clidriver.py
-+++ b/tests/functional/test_clidriver.py
-@@ -46,6 +46,7 @@ class TestSession(BaseCLIDriverTest):
- self._responses = []
-
- def tearDown(self):
-+ super(TestSession, self).tearDown()
- self._urllib3_patch.stop()
-
- def get_response(self, request):
Copied: aws-cli-v2/repos/community-any/fix-env.diff (from rev 1459226,
aws-cli-v2/trunk/fix-env.diff)
===================================================================
--- fix-env.diff (rev 0)
+++ fix-env.diff 2023-05-07 08:55:04 UTC (rev 1459227)
@@ -0,0 +1,10 @@
+--- a/tests/functional/test_clidriver.py
++++ b/tests/functional/test_clidriver.py
+@@ -46,6 +46,7 @@ class TestSession(BaseCLIDriverTest):
+ self._responses = []
+
+ def tearDown(self):
++ super(TestSession, self).tearDown()
+ self._urllib3_patch.stop()
+
+ def get_response(self, request):