Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / 
python-aiobotocore


Commits:
76e5fd06 by Chih-Hsuan Yen at 2024-09-02T00:50:30+08:00
Cherry-pick upstream patch for older setuptools

Meanwhile, switching to git sources for easier cherry-picking

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-aiobotocore
        pkgdesc = asyncio support for botocore library using aiohttp
        pkgver = 2.14.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/aio-libs/aiobotocore
        arch = any
        license = Apache-2.0
@@ -20,6 +20,7 @@ pkgbase = python-aiobotocore
        makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-wheel
+       makedepends = git
        depends = python
        depends = python-aiohttp
        depends = python-botocore
@@ -29,9 +30,9 @@ pkgbase = python-aiobotocore
        depends = python-jmespath
        depends = python-multidict
        depends = python-urllib3
-       source = 
https://github.com/aio-libs/aiobotocore/archive/2.14.0/python-aiobotocore-2.14.0.tar.gz
+       source = git+https://github.com/aio-libs/aiobotocore.git#tag=2.14.0
        source = moto-5.x.diff
-       sha256sums = 
08611f89a4831323321a2207a8827d31d90eca9b1aa7f72b027a32a3026262f1
+       sha256sums = 
1430f03fd6d72fb87fcbd1ba2a293f9c816c53aca0459675a26fd4d581e9ee01
        sha256sums = 
2bfadc984a4ad3a6420b356d572c8085b82a46949fc0ecaea98ddce45980503b
 
 pkgname = python-aiobotocore


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@ pkgname=python-aiobotocore
 _pkgname=aiobotocore
 # https://github.com/aio-libs/aiobotocore/releases
 pkgver=2.14.0
-pkgrel=1
+pkgrel=2
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
 url='https://github.com/aio-libs/aiobotocore'
@@ -13,33 +13,33 @@ license=('Apache-2.0')
 depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools
          # detected by namcap but not listed in setup.py
          python-dateutil python-jmespath python-multidict python-urllib3)
-makedepends=(python-build python-installer python-setuptools python-wheel)
+makedepends=(python-build python-installer python-setuptools python-wheel git)
 checkdepends=(python-moto python-pytest python-pytest-asyncio python-dill 
python-docutils python-pip
               # moto optdepends
               python-docker python-openapi-spec-validator python-yaml 
python-flask python-flask-cors)
-source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz";
+source=("git+https://github.com/aio-libs/aiobotocore.git#tag=$pkgver";
         "moto-5.x.diff")
-sha256sums=('08611f89a4831323321a2207a8827d31d90eca9b1aa7f72b027a32a3026262f1'
+sha256sums=('1430f03fd6d72fb87fcbd1ba2a293f9c816c53aca0459675a26fd4d581e9ee01'
             '2bfadc984a4ad3a6420b356d572c8085b82a46949fc0ecaea98ddce45980503b')
 
 prepare() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname
   # Work-around test failures with moto 5.x
   # See: https://github.com/aio-libs/aiobotocore/issues/1108
   patch -Np1 -i ../moto-5.x.diff
 
-  # The version requirement for setuptools seems not really necessary
+  # relax setuptools build dependency specification
   # https://github.com/aio-libs/aiobotocore/discussions/1193
-  sed -i -r 's#setuptools>=[0-9.]+#setuptools#' pyproject.toml
+  git cherry-pick -n 24a44d7ecf4679b059349989eda0e3d39160c8be
 }
 
 build() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname
 
   export PYTHONPATH="$PWD"
   # test_lambda uses moto.awslambda, which requires a running Docker service
@@ -49,6 +49,6 @@ check() {
 }
 
 package() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname
   python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiobotocore/-/commit/76e5fd06cdf43acb2917de0eb4374b6edc83d450

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiobotocore/-/commit/76e5fd06cdf43acb2917de0eb4374b6edc83d450
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to