Date: Wednesday, November 20, 2019 @ 10:02:09
  Author: yan12125
Revision: 530730

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

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

Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 530729, 
python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2019-11-20 10:02:09 UTC (rev 530730)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.25.2
+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=('2b27ca167e8eec387ac76681cdb96b4f6eaf0b13b0bc20d056abeddae8c5fbcc')
+
+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