[arch-commits] Commit in python-moto/repos/community-testing-any (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Nov 29 04:37:48 UTC 2020


    Date: Sunday, November 29, 2020 @ 04:37:48
  Author: yan12125
Revision: 766150

archrelease: copy trunk to community-testing-any

Added:
  python-moto/repos/community-testing-any/PKGBUILD
    (from rev 766149, python-moto/trunk/PKGBUILD)
  python-moto/repos/community-testing-any/sdist-no-pyc.diff
    (from rev 766149, python-moto/trunk/sdist-no-pyc.diff)
Deleted:
  python-moto/repos/community-testing-any/PKGBUILD
  python-moto/repos/community-testing-any/sdist-no-pyc.diff

-------------------+
 PKGBUILD          |  158 ++++++++++++++++++++++++++--------------------------
 sdist-no-pyc.diff |   18 ++---
 2 files changed, 90 insertions(+), 86 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-29 04:37:31 UTC (rev 766149)
+++ PKGBUILD	2020-11-29 04:37:48 UTC (rev 766150)
@@ -1,77 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
-
-pkgname=python-moto
-_pkgname=moto
-pkgver=1.3.16
-pkgrel=3
-pkgdesc='Moto is a library to mock out the boto library.'
-arch=(any)
-url='https://github.com/spulec/moto'
-license=(Apache)
-depends=(python-aws-xray-sdk python-boto python-boto3
-         python-cryptography python-dateutil python-docker python-jinja
-         python-jsondiff python-jose python-mock python-yaml
-         python-pytz python-requests python-responses python-xmltodict
-         python-werkzeug python-cfn-lint python-setuptools python-sshpubkeys)
-checkdepends=(python-flask python-freezegun python-nose python-parameterized
-              python-sure tk)
-optdepends=(
-  'python-flask: for moto_server'
-)
-source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz"
-        "$pkgname-cfn-lint-0.39.patch::https://github.com/spulec/moto/commit/403b06d9c5d9fda4d9c51f44d5213cf584d7dc11.patch"
-        "$pkgname-boto3-1.14.59.patch::https://github.com/spulec/moto/commit/9f0f230d130a839fb2de6bfc97af4182360fbcdb.patch"
-        sdist-no-pyc.diff)
-sha256sums=('6c686b1f117563391957ce47c2106bc3868783d59d0e004d2446dce875bec07f'
-            'afb3a13ccfe1646403e5727c812e26ab88106c212b735d5ab9a55879fcb34e43'
-            'f902d1b01c12e8a1b8e87109a984ab1463b60b04e1dbdeaa94550276d2580a11'
-            '4193bd88380f6ab8dac49be37d940993dee4e31351ffd60c8167b7c8e5ec3208')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  patch -Np1 -i ../sdist-no-pyc.diff
-
-  # https://github.com/spulec/moto/pull/3412
-  patch -Np1 -i ../$pkgname-cfn-lint-0.39.patch
-  # https://github.com/spulec/moto/pull/3308
-  patch -Np1 -i ../$pkgname-boto3-1.14.59.patch
-
-  # 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
-
-  # * test_lambda tests moto.awslambda, which requires a running docker.service
-  # * test_submit_job_by_name calls batch_client.submit_job, and the latter
-  #   creates a Job object, which requires docker
-  # * In test_create_stack_lambda_and_dynamodb, the CloudFormation template
-  #   contain AWS::Lambda resources and thus uses moto.awslambda
-  TZ=UTC nosetests -sv ./tests/ \
-    --exclude='test_lambda' \
-    --exclude='test_list_jobs' \
-    --exclude='test_submit_job' \
-    --exclude='test_submit_job_by_name' \
-    --exclude='test_terminate_job' \
-    --exclude='test_create_stack_lambda_and_dynamodb' \
-    --exclude='test_delete_subscription_filter_errors' \
-    --exclude='test_put_subscription_filter_update' \
-    --exclude='test_put_subscription_filter_with_lambda'
-}
-
-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-testing-any/PKGBUILD (from rev 766149, python-moto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-29 04:37:48 UTC (rev 766150)
@@ -0,0 +1,81 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-moto
+_pkgname=moto
+pkgver=1.3.16
+pkgrel=4
+pkgdesc='Moto is a library to mock out the boto library.'
+arch=(any)
+url='https://github.com/spulec/moto'
+license=(Apache)
+depends=(python-aws-xray-sdk python-boto python-boto3
+         python-cryptography python-dateutil python-docker python-jinja
+         python-jsondiff python-jose python-mock python-yaml
+         python-pytz python-requests python-responses python-xmltodict
+         python-werkzeug python-cfn-lint python-setuptools python-sshpubkeys)
+checkdepends=(python-flask python-freezegun python-nose python-parameterized
+              python-sure tk)
+optdepends=(
+  'python-flask: for moto_server'
+)
+source=("https://files.pythonhosted.org/packages/source/m/moto/moto-${pkgver}.tar.gz"
+        "$pkgname-cfn-lint-0.39.patch::https://github.com/spulec/moto/commit/403b06d9c5d9fda4d9c51f44d5213cf584d7dc11.patch"
+        "$pkgname-boto3-1.14.59.patch::https://github.com/spulec/moto/commit/9f0f230d130a839fb2de6bfc97af4182360fbcdb.patch"
+        "$pkgname-responses-0.12.1.patch::https://github.com/spulec/moto/commit/7749c1f75781cd5fb2367b089c31a92e127b07b1.patch"
+        sdist-no-pyc.diff)
+sha256sums=('6c686b1f117563391957ce47c2106bc3868783d59d0e004d2446dce875bec07f'
+            'afb3a13ccfe1646403e5727c812e26ab88106c212b735d5ab9a55879fcb34e43'
+            'f902d1b01c12e8a1b8e87109a984ab1463b60b04e1dbdeaa94550276d2580a11'
+            'cca3d8749c07eac50a17cff7b6dffdb9aa8d5ce9ca974453a63516d35cb2025a'
+            '4193bd88380f6ab8dac49be37d940993dee4e31351ffd60c8167b7c8e5ec3208')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  patch -Np1 -i ../sdist-no-pyc.diff
+
+  # https://github.com/spulec/moto/pull/3412
+  patch -Np1 -i ../$pkgname-cfn-lint-0.39.patch
+  # https://github.com/spulec/moto/pull/3308
+  patch -Np1 -i ../$pkgname-boto3-1.14.59.patch
+  # https://github.com/spulec/moto/pull/3466
+  patch -Np1 -i ../$pkgname-responses-0.12.1.patch
+
+  # 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
+
+  # * test_lambda tests moto.awslambda, which requires a running docker.service
+  # * test_submit_job_by_name calls batch_client.submit_job, and the latter
+  #   creates a Job object, which requires docker
+  # * In test_create_stack_lambda_and_dynamodb, the CloudFormation template
+  #   contain AWS::Lambda resources and thus uses moto.awslambda
+  TZ=UTC nosetests -s ./tests/ \
+    --exclude='test_lambda' \
+    --exclude='test_list_jobs' \
+    --exclude='test_submit_job' \
+    --exclude='test_submit_job_by_name' \
+    --exclude='test_terminate_job' \
+    --exclude='test_create_stack_lambda_and_dynamodb' \
+    --exclude='test_delete_subscription_filter_errors' \
+    --exclude='test_put_subscription_filter_update' \
+    --exclude='test_put_subscription_filter_with_lambda'
+}
+
+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	2020-11-29 04:37:31 UTC (rev 766149)
+++ sdist-no-pyc.diff	2020-11-29 04:37:48 UTC (rev 766150)
@@ -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-testing-any/sdist-no-pyc.diff (from rev 766149, python-moto/trunk/sdist-no-pyc.diff)
===================================================================
--- sdist-no-pyc.diff	                        (rev 0)
+++ sdist-no-pyc.diff	2020-11-29 04:37:48 UTC (rev 766150)
@@ -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]



More information about the arch-commits mailing list