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


Commits:
9f766ee5 by Chih-Hsuan Yen at 2023-09-09T12:11:34+08:00
upgpkg: 4.2.2-1

* Move away from pypi sdists, following
https://rfc.archlinux.page/0020-sources-for-python-packaging/

* python-sure is not needed after
https://github.com/getmoto/moto/issues/6035

* python-crc32c optional since 4.1.14
https://github.com/getmoto/moto/pull/6534

* typing_extensions accidentally(?) introduce since moto 4.1.12
https://github.com/getmoto/moto/pull/6411

- - - - -


2 changed files:

- PKGBUILD
- + typing-extensions.diff


Changes:

=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 pkgname=python-moto
 _pkgname=moto
 # https://github.com/spulec/moto/blob/master/CHANGELOG.md
-pkgver=4.1.14
+pkgver=4.2.2
 pkgrel=1
 pkgdesc='Moto is a library to mock out the boto library.'
 arch=(any)
@@ -21,7 +21,7 @@ depends=(python python-boto3 python-botocore 
python-cryptography python-requests
          python-urllib3)
 makedepends=(python-build python-installer python-setuptools python-wheel)
 # See reqquirements-test.txt, excluding pytest-cov
-checkdepends=(python-pytest python-pytest-ordering python-sure 
python-freezegun)
+checkdepends=(python-pytest python-pytest-ordering python-freezegun)
 # Check extras_require in upstream `setup.cfg` for optional dependencies.
 # Note that ecdsa is excluded as it is pinned for jose and not used by moto.
 optdepends=(
@@ -38,27 +38,36 @@ optdepends=(
   'python-sshpubkeys: for cloudformation, directoryservice, ebs, ec2, efs, eks 
and route53resolver'
   'python-pyparsing: for glue and cloudformation'
   'python-py-partiql-parser: for cloudformation and s3'
+  'python-crc32c: for s3'
   'python-flask: for moto_server'
   'python-flask-cors: for moto_server'
 )
 checkdepends+=(python-yaml python-jose python-openapi-spec-validator 
python-docker
                python-graphql-core python-jsondiff python-aws-xray-sdk
                python-cfn-lint python-sshpubkeys python-pyparsing 
python-py-partiql-parser
+               python-crc32c
                python-flask python-flask-cors)
-source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz";
-        "fix-tests.diff")
-sha256sums=('545afeb4df94dfa730e2d7e87366dc26b4a33c2891f462cbb049f040c80ed1ec'
-            '21305cdf3d650ced1acb1d0f7dde8760b26e32a94c56a5571e798d6b6976cf5a')
+source=("https://github.com/getmoto/moto/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz";
+        "fix-tests.diff"
+        "typing-extensions.diff")
+sha256sums=('995248a7852f241fe488cbcb0317a4c60015cb1cead431b78c5069199b927d63'
+            '21305cdf3d650ced1acb1d0f7dde8760b26e32a94c56a5571e798d6b6976cf5a'
+            '8406f4c68b8b43c3666fe5a153de1321a9bc9f02ad19910c6078d8189d8cb24f')
 
 prepare() {
   cd $_pkgname-$pkgver
 
   patch -Np1 -i ../fix-tests.diff
+  patch -Np1 -i ../typing-extensions.diff
 }
 
 build() {
   cd $_pkgname-$pkgver
 
+  # Update versions in setup.cfg and moto/__init__.py, following upstream 
release pipeline
+  # https://github.com/getmoto/moto/blob/master/.github/workflows/release.yml
+  python update_version_from_git.py $pkgver
+
   python -m build --wheel --no-isolation
 }
 


=====================================
typing-extensions.diff
=====================================
@@ -0,0 +1,16 @@
+diff -ur moto-4.2.2.orig/moto/identitystore/models.py 
moto-4.2.2/moto/identitystore/models.py
+--- moto-4.2.2.orig/moto/identitystore/models.py       2023-09-08 
20:34:39.481595401 +0800
++++ moto-4.2.2/moto/identitystore/models.py    2023-09-08 20:35:43.999914179 
+0800
+@@ -1,5 +1,10 @@
+-from typing import Dict, Tuple, List, Any, NamedTuple, Optional
+-from typing_extensions import Self
++from typing import Dict, Tuple, List, Any, NamedTuple, Optional, TYPE_CHECKING
++
++if TYPE_CHECKING:
++    from typing_extensions import Self
++else:
++    Self = object
++
+ from moto.utilities.paginator import paginate
+ 
+ from botocore.exceptions import ParamValidationError



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-moto/-/commit/9f766ee508494b5867cc02d1786bcb8941205658

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


Reply via email to