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

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Thu Sep 30 15:19:42 UTC 2021


    Date: Thursday, September 30, 2021 @ 15:19:42
  Author: yan12125
Revision: 1026180

archrelease: copy trunk to community-any

Added:
  python-aws-sam-translator/repos/community-any/PKGBUILD
    (from rev 1026179, python-aws-sam-translator/trunk/PKGBUILD)
  python-aws-sam-translator/repos/community-any/no-install-integration-tests.diff
    (from rev 1026179, 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                          |   81 ++++++++++++++++--------------------
 no-install-integration-tests.diff |   26 +++++------
 2 files changed, 51 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-30 15:19:29 UTC (rev 1026179)
+++ PKGBUILD	2021-09-30 15:19:42 UTC (rev 1026180)
@@ -1,43 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aws-sam-translator
-pkgver=1.38.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=('2a6143508add87bca072b119f63c95c8a03bbbe5b06d7b9b34050519702ba7f7'
-            '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
-}

Copied: python-aws-sam-translator/repos/community-any/PKGBUILD (from rev 1026179, python-aws-sam-translator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-30 15:19:42 UTC (rev 1026180)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aws-sam-translator
+# https://github.com/aws/serverless-application-model/releases
+pkgver=1.39.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")
+sha256sums=('266a53c67b6bb9f7c225e80c37a00b825c6fee8906b389be47ed7ecedae5f764')
+
+prepare() {
+  cd serverless-application-model-$pkgver
+  # skip pytest-coverage
+  sed -i -r 's#--cov\S*\s+\S+##g' pytest.ini
+}
+
+build() {
+  cd serverless-application-model-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd serverless-application-model-$pkgver
+  pytest tests
+}
+
+package() {
+  cd serverless-application-model-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Deleted: no-install-integration-tests.diff
===================================================================
--- no-install-integration-tests.diff	2021-09-30 15:19:29 UTC (rev 1026179)
+++ no-install-integration-tests.diff	2021-09-30 15:19:42 UTC (rev 1026180)
@@ -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 1026179, python-aws-sam-translator/trunk/no-install-integration-tests.diff)
===================================================================
--- no-install-integration-tests.diff	                        (rev 0)
+++ no-install-integration-tests.diff	2021-09-30 15:19:42 UTC (rev 1026180)
@@ -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