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

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Feb 7 12:38:41 UTC 2020


    Date: Friday, February 7, 2020 @ 12:38:40
  Author: yan12125
Revision: 563717

upgpkg: python-cfn-lint 0.27.4-1; simplify temporary installation in check()

Modified:
  python-cfn-lint/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-07 12:02:17 UTC (rev 563716)
+++ PKGBUILD	2020-02-07 12:38:40 UTC (rev 563717)
@@ -1,7 +1,7 @@
 # Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 
 pkgname=python-cfn-lint
-pkgver=0.27.3
+pkgver=0.27.4
 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=('209bfee4087f06fda44faccf867628e1fac53056d1c952203da0076e2d488437')
+sha256sums=('26f1da3df317deeffc157cba45d0b31a3ef2095b549c570558adebb9000c8b06')
 
 build() {
   cd cfn-python-lint-$pkgver
@@ -21,13 +21,11 @@
 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
+  python setup.py install_scripts --install-dir="$srcdir"/tmp_install
 
-  export PYTHONPATH="$srcdir"/tmp_install$site_packages_path
-  export PATH="$PATH:$srcdir/tmp_install/usr/bin"
+  export PYTHONPATH="$PWD/src"
+  export PATH="$PATH:$srcdir/tmp_install"
   pytest -v test
 }
 



More information about the arch-commits mailing list