[arch-commits] Commit in python-cfn-lint/repos/community-testing-any (2 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Nov 13 07:07:53 UTC 2019


    Date: Wednesday, November 13, 2019 @ 07:07:52
  Author: yan12125
Revision: 527085

archrelease: copy trunk to community-testing-any

Added:
  python-cfn-lint/repos/community-testing-any/PKGBUILD
    (from rev 527084, python-cfn-lint/trunk/PKGBUILD)
Deleted:
  python-cfn-lint/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 39 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-13 07:07:38 UTC (rev 527084)
+++ PKGBUILD	2019-11-13 07:07:52 UTC (rev 527085)
@@ -1,32 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-cfn-lint
-pkgver=0.24.8
-pkgrel=1
-pkgdesc='CloudFormation Linter'
-arch=(any)
-url='https://github.com/aws-cloudformation/cfn-python-lint'
-license=('custom:MIT No Attribution')
-depends=(python python-yaml python-six python-aws-sam-translator
-         python-jsonpatch python-jsonschema python-setuptools)
-checkdepends=(python-pytest python-mock)
-source=("https://github.com/aws-cloudformation/cfn-python-lint/archive/v$pkgver/cfn-python-lint-$pkgver.tar.gz")
-sha256sums=('c55210404e3d1b4612b8c5be9da00b4d9324f6d186783356b4f4605d2faac836')
-
-build() {
-  cd cfn-python-lint-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd cfn-python-lint-$pkgver
-
-  PYTHONPATH="$PWD/build/lib" pytest -v test
-}
-
-package() {
-  cd cfn-python-lint-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}

Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 527084, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-13 07:07:52 UTC (rev 527085)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.25.0
+pkgrel=1
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/aws-cloudformation/cfn-python-lint'
+license=('custom:MIT No Attribution')
+depends=(python python-yaml python-six python-aws-sam-translator
+         python-jsonpatch python-jsonschema python-setuptools)
+checkdepends=(python-pytest python-mock)
+source=("https://github.com/aws-cloudformation/cfn-python-lint/archive/v$pkgver/cfn-python-lint-$pkgver.tar.gz")
+sha256sums=('3c873d2289f41f43ef6f97545780f3e12fcb18a7364ea7a14c3c572218e398b1')
+
+build() {
+  cd cfn-python-lint-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cfn-python-lint-$pkgver
+
+  site_packages_path=$(python -c 'import site; print(site.getsitepackages()[0])')
+
+  # Tests in test/integration need the cfn-lint binary
+  python setup.py install --root="$srcdir"/tmp_install
+
+  export PYTHONPATH="$srcdir"/tmp_install$site_packages_path
+  export PATH="$PATH:$srcdir/tmp_install/usr/bin"
+  pytest -v test
+}
+
+package() {
+  cd cfn-python-lint-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list