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

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Nov 27 15:05:52 UTC 2019


    Date: Wednesday, November 27, 2019 @ 15:05:51
  Author: yan12125
Revision: 534178

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 534177, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-11-27 15:05:51 UTC (rev 534178)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.25.5
+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=('fb9ca029598650a232e3ba89fdda1c6d9ed78f52ed50dfa165817061d924b156')
+
+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