Date: Monday, October 10, 2022 @ 02:49:55
  Author: yan12125
Revision: 1324684

archrelease: copy trunk to community-any

Added:
  python-moto/repos/community-any/PKGBUILD
    (from rev 1324683, python-moto/trunk/PKGBUILD)
Deleted:
  python-moto/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  176 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 89 insertions(+), 87 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-10 02:49:41 UTC (rev 1324683)
+++ PKGBUILD    2022-10-10 02:49:55 UTC (rev 1324684)
@@ -1,87 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
-# Contributor: Guillaume Horel <guillaume.ho...@gmail.com>
-
-pkgname=python-moto
-_pkgname=moto
-# https://github.com/spulec/moto/blob/master/CHANGELOG.md
-pkgver=4.0.6
-pkgrel=1
-pkgdesc='Moto is a library to mock out the boto library.'
-arch=(any)
-url='https://github.com/spulec/moto'
-license=(Apache)
-# NOTE: Keep the order of dependencies matching setup.py
-# setup.py includes setuptools, which is a work around for missing 
dependencies in aws-xray-sdk [1].
-# I use the correct dependency in python-aws-xray-sdk, so python-setuptools is 
not needed here.
-# [1] https://github.com/spulec/moto/pull/4142
-depends=(python python-boto3 python-botocore python-cryptography 
python-requests python-xmltodict
-         python-werkzeug python-pytz python-dateutil python-responses
-         python-jinja python-flask python-flask-cors
-         # urllib3 is used by cfnresponse.py, not directly by moto - just to 
make namcap happy
-         python-urllib3)
-# See reqquirements-test.txt, excluding pytest-cov
-checkdepends=(python-pytest python-sure python-freezegun)
-# Below are optional dependencies. The order matches _dep_* items in upstream 
`setup.py`.
-# Note that _dep_python_jose_ecdsa_pin and _dep_idna are excluded as they are 
pins and
-# not used by moto.
-optdepends=(
-  'python-yaml: for apigatewayv2, cloudformation, s3 and ssm'
-  'python-jose: for apigateway, cloudformation and cognitoidp'
-  'python-openapi-spec-validator: for apigateway and cloudformation'
-  # SNS and SQS still uses docker indirectly, while upstream explicitly 
removes them
-  # https://github.com/spulec/moto/pull/4094
-  'python-docker: for awslambda, batch, cloudformation, dynamodb2 and 
dynamodbstreams'
-  'python-graphql-core: For appsync and cloudformation'
-  'python-jsondiff: for iotdata and cloudformation'
-  'python-aws-xray-sdk: for xray and cloudformation'
-  'python-cfn-lint: for cloudformation'
-  'python-sshpubkeys: for ec2, ebs, efs, directoryservice and cloudformation'
-  'python-pyparsing: for glue and cloudformation'
-)
-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)
-source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz";)
-sha256sums=('8627f52bce21f1b95f72a7838f13107e076c0bf18de51acbd1d4a8c37f9545fa')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  # AWS Lambda and Batch tests require docker/podman, while running 
docker/podman
-  # in systemd-nspawn containers appears impossible without special 
configurations -
-  # disable them altogether
-  sed -i '/markers\s*=/a \ \ \ \ needs_docker: marks test which require 
docker' setup.cfg
-  find tests \( -name '*.py' -a ! -name __init__.py \) -print0 | xargs -I % -0 
bash -c '
-    sed -i -E "%" \
-      -e "/__future__/a import pytest" \
-      -e "s/^(\s*)(@mock_batch)$/\1\2\n\1...@pytest.mark.needs_docker/" \
-      -e "s/^(\s*)(@mock_lambda)$/\1\2\n\1...@pytest.mark.needs_docker/"
-    grep __future__ "%" || sed -i "1i import pytest" "%"
-  '
-
-  # Remove upper bounds of dependencies
-  sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
-  diff -u setup.py{.orig,} || true
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  # Ignore server tests as the server is partially broken with werkzeug 2.2.x
-  # https://github.com/spulec/moto/issues/5341
-  PYTHONDONTWRITEBYTECODE=1 TZ=UTC pytest tests -m 'not needs_docker' \
-    --ignore=tests/test_appsync/test_server.py \
-    --ignore=tests/test_s3/test_server.py
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-moto/repos/community-any/PKGBUILD (from rev 1324683, 
python-moto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-10 02:49:55 UTC (rev 1324684)
@@ -0,0 +1,89 @@
+# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
+# Contributor: Guillaume Horel <guillaume.ho...@gmail.com>
+
+pkgname=python-moto
+_pkgname=moto
+# https://github.com/spulec/moto/blob/master/CHANGELOG.md
+pkgver=4.0.7
+pkgrel=1
+pkgdesc='Moto is a library to mock out the boto library.'
+arch=(any)
+url='https://github.com/spulec/moto'
+license=(Apache)
+# NOTE: Keep the order of dependencies matching setup.py
+# setup.py includes setuptools, which is a work around for missing 
dependencies in aws-xray-sdk [1].
+# I use the correct dependency in python-aws-xray-sdk, so python-setuptools is 
not needed here.
+# [1] https://github.com/spulec/moto/pull/4142
+depends=(python python-boto3 python-botocore python-cryptography 
python-requests python-xmltodict
+         python-werkzeug python-pytz python-dateutil python-responses
+         python-jinja
+         # urllib3 is used by cfnresponse.py, not directly by moto - just to 
make namcap happy
+         python-urllib3)
+# See reqquirements-test.txt, excluding pytest-cov
+checkdepends=(python-pytest python-sure python-freezegun)
+# Below are optional dependencies. The order matches _dep_* items in upstream 
`setup.py`.
+# Note that _dep_python_jose_ecdsa_pin and _dep_idna are excluded as they are 
pins and
+# not used by moto.
+optdepends=(
+  'python-yaml: for apigatewayv2, cloudformation, s3 and ssm'
+  'python-jose: for apigateway, cloudformation and cognitoidp'
+  'python-openapi-spec-validator: for apigateway and cloudformation'
+  # SNS and SQS still uses docker indirectly, while upstream explicitly 
removes them
+  # https://github.com/spulec/moto/pull/4094
+  'python-docker: for awslambda, batch, cloudformation, dynamodb2 and 
dynamodbstreams'
+  'python-graphql-core: For appsync and cloudformation'
+  'python-jsondiff: for iotdata and cloudformation'
+  'python-aws-xray-sdk: for xray and cloudformation'
+  'python-cfn-lint: for cloudformation'
+  'python-sshpubkeys: for ec2, ebs, efs, directoryservice and cloudformation'
+  'python-pyparsing: for glue and cloudformation'
+  '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-flask 
python-flask-cors)
+source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz";)
+sha256sums=('869cac77cfc2e03be955453a224f6c3e887878f4b43f2d68477f236e615bd462')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # AWS Lambda and Batch tests require docker/podman, while running 
docker/podman
+  # in systemd-nspawn containers appears impossible without special 
configurations -
+  # disable them altogether
+  sed -i '/markers\s*=/a \ \ \ \ needs_docker: marks test which require 
docker' setup.cfg
+  find tests \( -name '*.py' -a ! -name __init__.py \) -print0 | xargs -I % -0 
bash -c '
+    sed -i -E "%" \
+      -e "/__future__/a import pytest" \
+      -e "s/^(\s*)(@mock_batch)$/\1\2\n\1...@pytest.mark.needs_docker/" \
+      -e "s/^(\s*)(@mock_lambda)$/\1\2\n\1...@pytest.mark.needs_docker/"
+    grep __future__ "%" || sed -i "1i import pytest" "%"
+  '
+
+  # Remove upper bounds of dependencies
+  sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py
+  diff -u setup.py{.orig,} || true
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  # Ignore server tests as the server is partially broken with werkzeug 2.2.x
+  # https://github.com/spulec/moto/issues/5341
+  PYTHONDONTWRITEBYTECODE=1 TZ=UTC pytest tests -m 'not needs_docker' \
+    --ignore=tests/test_appsync/test_server.py \
+    --ignore=tests/test_s3/test_server.py
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Reply via email to