[arch-commits] Commit in python-aws-sam-translator/repos/community-any (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Jul 9 12:55:20 UTC 2021


    Date: Friday, July 9, 2021 @ 12:55:20
  Author: yan12125
Revision: 976209

archrelease: copy trunk to community-any

Added:
  python-aws-sam-translator/repos/community-any/PKGBUILD
    (from rev 976208, python-aws-sam-translator/trunk/PKGBUILD)
  python-aws-sam-translator/repos/community-any/no-install-integration-tests.diff
    (from rev 976208, python-aws-sam-translator/trunk/no-install-integration-tests.diff)
Deleted:
  python-aws-sam-translator/repos/community-any/PKGBUILD
  python-aws-sam-translator/repos/community-any/no-install-integration-tests.diff

-----------------------------------+
 PKGBUILD                          |   86 ++++++++++++++++++------------------
 no-install-integration-tests.diff |   26 +++++-----
 2 files changed, 56 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-09 12:54:59 UTC (rev 976208)
+++ PKGBUILD	2021-07-09 12:55:20 UTC (rev 976209)
@@ -1,43 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aws-sam-translator
-pkgver=1.36.0
-pkgrel=1
-pkgdesc='AWS Serverless Application Model (AWS SAM) prescribes rules for expressing Serverless applications on AWS'
-arch=(any)
-url='https://github.com/aws/serverless-application-model'
-license=(Apache)
-depends=(python python-boto3 python-jsonschema python-six)
-makedepends=(python-setuptools)
-checkdepends=(python-pytest python-yaml python-mock python-parameterized)
-# Upstream intentionally exclude tests from sdist
-# https://github.com/aws/serverless-application-model/pull/381#issuecomment-382143094
-source=("https://github.com/aws/serverless-application-model/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        "no-install-integration-tests.diff")
-sha256sums=('8922e45d2823086b700e89bd2905eab236a7a1f2f845d0e68d59f23001fcafc1'
-            '44545f773c5b8ea750f2aa03a1fb12bfe289bacd0f7c1da0b7e47fd53d8b0c18')
-
-prepare() {
-  cd serverless-application-model-$pkgver
-  # skip pytest-coverage
-  sed -i '/addopts/d' pytest.ini
-
-  patch -Np1 -i ../no-install-integration-tests.diff
-}
-
-build() {
-  cd serverless-application-model-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd serverless-application-model-$pkgver
-  pytest tests
-}
-
-package() {
-  cd serverless-application-model-$pkgver
-  # Work around https://bugs.python.org/issue34033
-  export PYTHONHASHSEED=0
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-aws-sam-translator/repos/community-any/PKGBUILD (from rev 976208, python-aws-sam-translator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-07-09 12:55:20 UTC (rev 976209)
@@ -0,0 +1,43 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aws-sam-translator
+pkgver=1.37.0
+pkgrel=1
+pkgdesc='AWS Serverless Application Model (AWS SAM) prescribes rules for expressing Serverless applications on AWS'
+arch=(any)
+url='https://github.com/aws/serverless-application-model'
+license=(Apache)
+depends=(python python-boto3 python-jsonschema python-six)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pytest-env python-yaml python-mock python-parameterized)
+# Upstream intentionally exclude tests from sdist
+# https://github.com/aws/serverless-application-model/pull/381#issuecomment-382143094
+source=("https://github.com/aws/serverless-application-model/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        "no-install-integration-tests.diff")
+sha256sums=('9033e2b428422a91241ac32b961e9144fcd5390e9215ab12e5f03c8f3177c9e8'
+            '44545f773c5b8ea750f2aa03a1fb12bfe289bacd0f7c1da0b7e47fd53d8b0c18')
+
+prepare() {
+  cd serverless-application-model-$pkgver
+  # skip pytest-coverage
+  sed -i -r 's#--cov\S*\s+\S+##g' pytest.ini
+
+  patch -Np1 -i ../no-install-integration-tests.diff
+}
+
+build() {
+  cd serverless-application-model-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd serverless-application-model-$pkgver
+  pytest tests
+}
+
+package() {
+  cd serverless-application-model-$pkgver
+  # Work around https://bugs.python.org/issue34033
+  export PYTHONHASHSEED=0
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Deleted: no-install-integration-tests.diff
===================================================================
--- no-install-integration-tests.diff	2021-07-09 12:54:59 UTC (rev 976208)
+++ no-install-integration-tests.diff	2021-07-09 12:55:20 UTC (rev 976209)
@@ -1,13 +0,0 @@
-diff --git a/setup.py b/setup.py
-index 38af9df..a34a49f 100755
---- a/setup.py
-+++ b/setup.py
-@@ -58,7 +58,7 @@ setup(
-     url="https://github.com/awslabs/serverless-application-model",
-     license="Apache License 2.0",
-     # Exclude all but the code folders
--    packages=find_packages(exclude=("tests", "tests.*", "docs", "examples", "versions")),
-+    packages=find_packages(exclude=("tests", "tests.*", "integration", "integration.*", "docs", "examples", "versions")),
-     install_requires=read_requirements("base.txt"),
-     include_package_data=True,
-     extras_require={"dev": read_requirements("dev.txt")},

Copied: python-aws-sam-translator/repos/community-any/no-install-integration-tests.diff (from rev 976208, python-aws-sam-translator/trunk/no-install-integration-tests.diff)
===================================================================
--- no-install-integration-tests.diff	                        (rev 0)
+++ no-install-integration-tests.diff	2021-07-09 12:55:20 UTC (rev 976209)
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 38af9df..a34a49f 100755
+--- a/setup.py
++++ b/setup.py
+@@ -58,7 +58,7 @@ setup(
+     url="https://github.com/awslabs/serverless-application-model",
+     license="Apache License 2.0",
+     # Exclude all but the code folders
+-    packages=find_packages(exclude=("tests", "tests.*", "docs", "examples", "versions")),
++    packages=find_packages(exclude=("tests", "tests.*", "integration", "integration.*", "docs", "examples", "versions")),
+     install_requires=read_requirements("base.txt"),
+     include_package_data=True,
+     extras_require={"dev": read_requirements("dev.txt")},




More information about the arch-commits mailing list