[arch-commits] Commit in python-cfn-lint/trunk (PKGBUILD)

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


    Date: Wednesday, November 13, 2019 @ 07:07:38
  Author: yan12125
Revision: 527084

upgpkg: python-cfn-lint 0.25.0-1

* check() fails unless a patch is added to python-botocore for upstream issue
  https://github.com/boto/botocore/issues/1872

Modified:
  python-cfn-lint/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-13 06:37:57 UTC (rev 527083)
+++ PKGBUILD	2019-11-13 07:07:38 UTC (rev 527084)
@@ -1,7 +1,7 @@
 # Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 
 pkgname=python-cfn-lint
-pkgver=0.24.8
+pkgver=0.25.0
 pkgrel=1
 pkgdesc='CloudFormation Linter'
 arch=(any)
@@ -11,7 +11,7 @@
          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')
+sha256sums=('3c873d2289f41f43ef6f97545780f3e12fcb18a7364ea7a14c3c572218e398b1')
 
 build() {
   cd cfn-python-lint-$pkgver
@@ -21,7 +21,14 @@
 check() {
   cd cfn-python-lint-$pkgver
 
-  PYTHONPATH="$PWD/build/lib" pytest -v test
+  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() {



More information about the arch-commits mailing list