Date: Thursday, May 6, 2021 @ 04:42:35 Author: yan12125 Revision: 928361
archrelease: copy trunk to community-any Added: python-moto/repos/community-any/PKGBUILD (from rev 928360, python-moto/trunk/PKGBUILD) python-moto/repos/community-any/sdist-no-pyc.diff (from rev 928360, python-moto/trunk/sdist-no-pyc.diff) Deleted: python-moto/repos/community-any/PKGBUILD python-moto/repos/community-any/sdist-no-pyc.diff -------------------+ PKGBUILD | 158 ++++++++++++++++++++++++++-------------------------- sdist-no-pyc.diff | 18 ++--- 2 files changed, 88 insertions(+), 88 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-05-06 04:42:20 UTC (rev 928360) +++ PKGBUILD 2021-05-06 04:42:35 UTC (rev 928361) @@ -1,79 +0,0 @@ -# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> -# Contributor: Guillaume Horel <guillaume.ho...@gmail.com> - -pkgname=python-moto -_pkgname=moto -pkgver=2.0.5 -pkgrel=1 -pkgdesc='Moto is a library to mock out the boto library.' -arch=(any) -url='https://github.com/spulec/moto' -license=(Apache) -# depends on python-setuptools as pkg_resources is used is several modules -# NOTE: Keep the order of dependencies matching setup.py -depends=(python-boto3 python-botocore python-cryptography python-requests python-xmltodict - python-six python-werkzeug python-pytz python-dateutil python-responses - # Below dependencies varied with Python versions - python-jinja python-more-itertools python-setuptools python-zipp) -# See reqquirements-test.txt, excluding pytest-cov -checkdepends=(python-pytest python-sure python-freezegun - # boto is vendored (#3503), but still imported in tests - python-boto) -# 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 cloudformation, s3 and ssm' - 'python-jose: for apigateway and cognitoidp' - 'python-docker: for awslambda, batch, cloudformation, dynamodb2, dynamodbstreams, ec2, ses, sns, sqs and ssm' - 'python-jsondiff: for iotdata' - 'python-aws-xray-sdk: for xray' - 'python-cfn-lint: for cloudformation and ssm' - 'python-sshpubkeys: for ec2' - 'python-flask: for moto_server' - 'python-flask-cors: for moto_server' -) -checkdepends+=(python-yaml python-jose python-docker python-jsondiff python-aws-xray-sdk - python-cfn-lint python-sshpubkeys python-flask python-flask-cors) -source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz" - sdist-no-pyc.diff) -sha256sums=('17219c9e8d79bc7450615896b37e5bd639c2038d4672bcab114ac4661e27f8ae' - '4193bd88380f6ab8dac49be37d940993dee4e31351ffd60c8167b7c8e5ec3208') - -prepare() { - cd $_pkgname-$pkgver - - patch -Np1 -i ../sdist-no-pyc.diff - - # 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 - - # XXX: there are too many tests that depend on docker/podman, and there is no simple way - # other than listing one-by-one for exclusion. To make things worse, running docker/podman - # in systemd-nspawn containers appears impossible without special configurations. I gave - # it up and running podman _outside_ the container for testing. - # $ podman system service "unix:$XDG_RUNTIME_DIR/podman/podman.sock" -t 0 - # $ extra-x86_64-build -- -d "$XDG_RUNTIME_DIR/podman:/tmp/podman" - PODMAN_SOCK=/tmp/podman/podman.sock - if [ -S $PODMAN_SOCK ]; then - DOCKER_HOST="unix://$PODMAN_SOCK" TZ=UTC pytest tests - fi -} - -package() { - cd $_pkgname-$pkgver - - # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722 - PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build -} Copied: python-moto/repos/community-any/PKGBUILD (from rev 928360, python-moto/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-05-06 04:42:35 UTC (rev 928361) @@ -0,0 +1,79 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> +# Contributor: Guillaume Horel <guillaume.ho...@gmail.com> + +pkgname=python-moto +_pkgname=moto +pkgver=2.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) +# depends on python-setuptools as pkg_resources is used is several modules +# NOTE: Keep the order of dependencies matching setup.py +depends=(python-boto3 python-botocore python-cryptography python-requests python-xmltodict + python-six python-werkzeug python-pytz python-dateutil python-responses + # Below dependencies varied with Python versions + python-jinja python-more-itertools python-setuptools python-zipp) +# See reqquirements-test.txt, excluding pytest-cov +checkdepends=(python-pytest python-sure python-freezegun + # boto is vendored (#3503), but still imported in tests + python-boto) +# 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 cloudformation, s3 and ssm' + 'python-jose: for apigateway and cognitoidp' + 'python-docker: for awslambda, batch, cloudformation, dynamodb2, dynamodbstreams, ec2, ses, sns, sqs and ssm' + 'python-jsondiff: for iotdata' + 'python-aws-xray-sdk: for xray' + 'python-cfn-lint: for cloudformation and ssm' + 'python-sshpubkeys: for ec2' + 'python-flask: for moto_server' + 'python-flask-cors: for moto_server' +) +checkdepends+=(python-yaml python-jose python-docker python-jsondiff python-aws-xray-sdk + python-cfn-lint python-sshpubkeys python-flask python-flask-cors) +source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz" + sdist-no-pyc.diff) +sha256sums=('7982176837406cabb47a84785125d337b6df357ae92ae29423724d072764dd90' + '4193bd88380f6ab8dac49be37d940993dee4e31351ffd60c8167b7c8e5ec3208') + +prepare() { + cd $_pkgname-$pkgver + + patch -Np1 -i ../sdist-no-pyc.diff + + # 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 + + # XXX: there are too many tests that depend on docker/podman, and there is no simple way + # other than listing one-by-one for exclusion. To make things worse, running docker/podman + # in systemd-nspawn containers appears impossible without special configurations. I gave + # it up and running podman _outside_ the container for testing. + # $ systemctl --user start podman.socket + # $ extra-x86_64-build -- -d "$XDG_RUNTIME_DIR/podman:/tmp/podman" + PODMAN_SOCK=/tmp/podman/podman.sock + if [ -S $PODMAN_SOCK ]; then + DOCKER_HOST="unix://$PODMAN_SOCK" TZ=UTC pytest tests + fi +} + +package() { + cd $_pkgname-$pkgver + + # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722 + PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} Deleted: sdist-no-pyc.diff =================================================================== --- sdist-no-pyc.diff 2021-05-06 04:42:20 UTC (rev 928360) +++ sdist-no-pyc.diff 2021-05-06 04:42:35 UTC (rev 928361) @@ -1,9 +0,0 @@ -diff --git a/MANIFEST.in b/MANIFEST.in -index 51d1b223..30ca14c0 100644 ---- a/MANIFEST.in -+++ b/MANIFEST.in -@@ -6,3 +6,4 @@ include moto/cognitoidp/resources/*.json - include moto/dynamodb2/parsing/reserved_keywords.txt - recursive-include moto/templates * - recursive-include tests * -+global-exclude *.py[cod] Copied: python-moto/repos/community-any/sdist-no-pyc.diff (from rev 928360, python-moto/trunk/sdist-no-pyc.diff) =================================================================== --- sdist-no-pyc.diff (rev 0) +++ sdist-no-pyc.diff 2021-05-06 04:42:35 UTC (rev 928361) @@ -0,0 +1,9 @@ +diff --git a/MANIFEST.in b/MANIFEST.in +index 51d1b223..30ca14c0 100644 +--- a/MANIFEST.in ++++ b/MANIFEST.in +@@ -6,3 +6,4 @@ include moto/cognitoidp/resources/*.json + include moto/dynamodb2/parsing/reserved_keywords.txt + recursive-include moto/templates * + recursive-include tests * ++global-exclude *.py[cod]