Date: Monday, November 21, 2022 @ 05:35:48
  Author: yan12125
Revision: 1350145

archrelease: copy trunk to community-x86_64

Added:
  python-awscrt/repos/community-x86_64/PKGBUILD
    (from rev 1350144, python-awscrt/trunk/PKGBUILD)
Deleted:
  python-awscrt/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   85 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 44 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-21 05:35:30 UTC (rev 1350144)
+++ PKGBUILD    2022-11-21 05:35:48 UTC (rev 1350145)
@@ -1,41 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: TheEdgeOfRage on AUR
-
-_pkgname=aws-crt-python
-pkgname=python-awscrt
-# https://github.com/awslabs/aws-crt-python/releases
-pkgver=0.14.7
-pkgrel=1
-pkgdesc='A common runtime for AWS Python projects'
-arch=(x86_64)
-url='https://github.com/awslabs/aws-crt-python'
-license=(Apache)
-depends=(glibc python
-         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')
-
-prepare() {
-  cd $_pkgname-$pkgver
-  # Allow linking to shared libraries
-  sed -i '/:lib/d' setup.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  pyver=$(python -c "import sys; print('{}{}'.format(*sys.version_info[:2]))")
-  export PYTHONPATH="$PWD:$PWD/build/lib.linux-$CARCH-cpython-$pyver"
-  python -m unittest discover test
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-}

Copied: python-awscrt/repos/community-x86_64/PKGBUILD (from rev 1350144, 
python-awscrt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-11-21 05:35:48 UTC (rev 1350145)
@@ -0,0 +1,44 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: TheEdgeOfRage on AUR
+
+_pkgname=aws-crt-python
+pkgname=python-awscrt
+# https://github.com/awslabs/aws-crt-python/releases
+pkgver=0.15.3
+pkgrel=1
+pkgdesc='A common runtime for AWS Python projects'
+arch=(x86_64)
+url='https://github.com/awslabs/aws-crt-python'
+license=(Apache)
+depends=(glibc python
+         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=('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() {
+  cd $_pkgname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  pyver=$(python -c "import sys; print('{}{}'.format(*sys.version_info[:2]))")
+  export PYTHONPATH="$PWD:$PWD/build/lib.linux-$CARCH-cpython-$pyver"
+  python -m unittest discover test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to