summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2023-11-15 20:57:32 +0800
committerChih-Hsuan Yen2023-11-15 20:57:32 +0800
commit4b757b57e5134aef37c7f59b9e2171e0dc9a71b2 (patch)
treea998d796738f6ceb89c7d5441d8ffb0aa6d7787a
parent76a6447ab2effeeb0f0ef9fb60d389d0012800fa (diff)
downloadaur-4b757b57e5134aef37c7f59b9e2171e0dc9a71b2.tar.gz
upgpkg: 2.13.35-1; drop python-mock dependency
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD26
2 files changed, 27 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c72d78593d62..06e3cccc1aa9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = aws-cli-v2
pkgdesc = Unified command line interface for Amazon Web Services (version 2)
- pkgver = 2.13.33
+ pkgver = 2.13.35
pkgrel = 1
url = https://github.com/aws/aws-cli/tree/v2
install = aws-cli-v2.install
@@ -9,12 +9,12 @@ pkgbase = aws-cli-v2
checkdepends = python-pytest
checkdepends = python-pytest-xdist
checkdepends = python-jsonschema
- checkdepends = python-mock
checkdepends = procps-ng
makedepends = python-build
makedepends = python-wheel
makedepends = python-flit-core
makedepends = python-installer
+ makedepends = git
depends = python
depends = python-awscrt
depends = python-certifi
@@ -29,18 +29,20 @@ pkgbase = aws-cli-v2
depends = python-urllib3
provides = aws-cli
conflicts = aws-cli
- source = https://awscli.amazonaws.com/awscli-2.13.33.tar.gz
- source = https://awscli.amazonaws.com/awscli-2.13.33.tar.gz.sig
+ source = https://awscli.amazonaws.com/awscli-2.13.35.tar.gz
+ source = https://awscli.amazonaws.com/awscli-2.13.35.tar.gz.sig
source = build-ac.index-in-tmp.diff
source = fix-env.diff
source = aws-cli-v2-tz-fix.patch::https://github.com/aws/aws-cli/commit/95aa5ccc7bfaeafc0373e8472c8459030ac18920.patch
source = aws-cli-v2-ruamel-yaml-v4.patch::https://github.com/aws/aws-cli/commit/0331e399231b6cdb54b7b3bdd01a793647053cdd.patch
+ source = aws-cli-v2-mock.patch::https://github.com/aws/aws-cli/commit/3201d4e4e6d22664cf89ac4624003fed38911dd1.patch
validpgpkeys = FB5DB77FD5C118B80511ADA8A6310ACC4672475C
- sha256sums = 71dcdeaef92fe7c3867c95243dced4c579d1bb290195329293576cb9602ff21e
+ sha256sums = 65df756c0da9a6a797c5cd0f29707e24de109335c199a31624a453e8a87fd98b
sha256sums = SKIP
sha256sums = 0267e41561ab2c46a97ebfb024f0b047aabc9e6b9866f204b2c1a84ee5810d63
sha256sums = 893d61d7e958c3c02bfa1e03bf58f6f6abd98849d248cc661f1c56423df9f312
sha256sums = 4fc614b8550d7363bb2d578c6b49326c9255203eb2f933fd0551f96ed5fb1f30
sha256sums = 20a9fcd5235bf606e86a6ec06ca30307ebbcfd36063d2ac561c1f9eff7243046
+ sha256sums = 67a2ea73ed2c09ccc8818983c6ba5f77d05102c4ba5188478955df310f69bb01
pkgname = aws-cli-v2
diff --git a/PKGBUILD b/PKGBUILD
index 2513323660ba..f2a4a79fbe74 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=aws-cli-v2
# https://github.com/aws/aws-cli/raw/v2/CHANGELOG.rst
-pkgver=2.13.33
+pkgver=2.13.35
pkgrel=1
pkgdesc='Unified command line interface for Amazon Web Services (version 2)'
arch=(any)
@@ -13,9 +13,9 @@ 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)
+makedepends=(python-build python-wheel python-flit-core python-installer git)
# Tests need the 'ps' binary
-checkdepends=(python-pytest python-pytest-xdist python-jsonschema python-mock procps-ng)
+checkdepends=(python-pytest python-pytest-xdist python-jsonschema procps-ng)
provides=(aws-cli)
conflicts=(aws-cli)
install=aws-cli-v2.install
@@ -23,13 +23,15 @@ 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/commit/95aa5ccc7bfaeafc0373e8472c8459030ac18920.patch"
- "${pkgname}-ruamel-yaml-v4.patch::https://github.com/aws/aws-cli/commit/0331e399231b6cdb54b7b3bdd01a793647053cdd.patch")
-sha256sums=('71dcdeaef92fe7c3867c95243dced4c579d1bb290195329293576cb9602ff21e'
+ "${pkgname}-ruamel-yaml-v4.patch::https://github.com/aws/aws-cli/commit/0331e399231b6cdb54b7b3bdd01a793647053cdd.patch"
+ "${pkgname}-mock.patch"::"https://github.com/aws/aws-cli/commit/3201d4e4e6d22664cf89ac4624003fed38911dd1.patch")
+sha256sums=('65df756c0da9a6a797c5cd0f29707e24de109335c199a31624a453e8a87fd98b'
'SKIP'
'0267e41561ab2c46a97ebfb024f0b047aabc9e6b9866f204b2c1a84ee5810d63'
'893d61d7e958c3c02bfa1e03bf58f6f6abd98849d248cc661f1c56423df9f312'
'4fc614b8550d7363bb2d578c6b49326c9255203eb2f933fd0551f96ed5fb1f30'
- '20a9fcd5235bf606e86a6ec06ca30307ebbcfd36063d2ac561c1f9eff7243046')
+ '20a9fcd5235bf606e86a6ec06ca30307ebbcfd36063d2ac561c1f9eff7243046'
+ '67a2ea73ed2c09ccc8818983c6ba5f77d05102c4ba5188478955df310f69bb01')
validpgpkeys=(
'FB5DB77FD5C118B80511ADA8A6310ACC4672475C' # the key mentioned on https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
)
@@ -40,6 +42,18 @@ prepare() {
# Don't treat warnings as errors
sed -i '/"error::/d' pyproject.toml
+ # [Use builtin mock](https://github.com/aws/aws-cli/pull/8221) (unmerged)
+ # Although an upstream dev prefers to keep v2 sources as close as v1,
+ # forward porting botocore-related changes requires significant
+ # efforts, so I simply pick the pull request in its current form.
+ # I use `git apply` so that I can exclude requirements-test.txt, which
+ # is not in the source tarball. And yes, `git apply` works outside git
+ # repos!
+ # This is applied first as `git apply` seems not supporting fuzzy
+ # patching, and a file (tests/functional/botocore/test_credentials.py)
+ # will be modified by both this patch and `$pkgname-tz-fix.patch`.
+ git apply -p1 --exclude=requirements-test.txt ../${pkgname}-mock.patch
+
# 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