Date: Monday, November 21, 2022 @ 05:35:30
  Author: yan12125
Revision: 1350144

upgpkg: python-awscrt 0.15.3-1; use proper version in .dist-info

See: https://bugs.archlinux.org/task/76618

Although aws-cli-v2 wants awscrt <= 0.14.0, 0.15.0+ will be needed for
testing on Python 3.11

Modified:
  python-awscrt/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-21 05:34:53 UTC (rev 1350143)
+++ PKGBUILD    2022-11-21 05:35:30 UTC (rev 1350144)
@@ -4,7 +4,7 @@
 _pkgname=aws-crt-python
 pkgname=python-awscrt
 # https://github.com/awslabs/aws-crt-python/releases
-pkgver=0.14.7
+pkgver=0.15.3
 pkgrel=1
 pkgdesc='A common runtime for AWS Python projects'
 arch=(x86_64)
@@ -14,12 +14,15 @@
          aws-c-auth aws-c-cal aws-c-common aws-c-event-stream aws-c-http 
aws-c-io aws-c-mqtt aws-c-s3 aws-checksums)
 makedepends=(cmake python-build python-installer python-setuptools 
python-wheel)
 
source=("https://github.com/awslabs/aws-crt-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha256sums=('e608c46542e1076d00a7270657ddeea726893cb02f38f3c544c2f18643e0ca83')
+sha256sums=('d69c2bb96f593f8aca132f3b426442861981293054b9f0fcdafd7ac1a928a59f')
 
 prepare() {
   cd $_pkgname-$pkgver
   # Allow linking to shared libraries
   sed -i '/:lib/d' setup.py
+  # Use proper version in .dist-info
+  # See 
https://github.com/awslabs/aws-crt-python/blob/main/continuous-delivery/update-version.py
+  sed -i -r "s/__version__ = '[^']+'/__version__ = '$pkgver'/" 
awscrt/__init__.py
 }
 
 build() {

Reply via email to