Date: Saturday, December 7, 2019 @ 03:44:03
  Author: yan12125
Revision: 536137

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 536136, python-cfn-lint/trunk/PKGBUILD)

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

Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 536136, 
python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2019-12-07 03:44:03 UTC (rev 536137)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.26.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=('88f4209808ccd4c974ede6432fec120a51e4fd6306b8b23adc0399e27a296816')
+
+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
+}

Reply via email to