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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 19:53:42 UTC 2020


    Date: Monday, November 9, 2020 @ 19:53:42
  Author: felixonmars
Revision: 748109

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cfn-lint/repos/community-staging-any/PKGBUILD (from rev 748108, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 19:53:42 UTC (rev 748109)
@@ -0,0 +1,44 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.40.0
+pkgrel=2
+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-networkx
+         python-junit-xml)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-mock python-pydot)
+optdepends=(
+  'python-pydot: for building graphs from templates'
+)
+source=("https://github.com/aws-cloudformation/cfn-python-lint/archive/v$pkgver/cfn-python-lint-$pkgver.tar.gz")
+sha256sums=('17f82eb30f7dca4be2ce854a52adaba6ef030738a5041ca2a92d5b7ac193515d')
+
+build() {
+  cd cfn-python-lint-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cfn-python-lint-$pkgver
+
+  # Tests in test/integration need the cfn-lint binary
+  python setup.py install_scripts --install-dir="$srcdir"/tmp_install
+
+  export PYTHONPATH="$PWD/src"
+  export PATH="$PATH:$srcdir/tmp_install"
+  # test_update_docs requires cfn-python-lint as a git repo
+  pytest test -k 'not test_update_docs'
+}
+
+package() {
+  cd cfn-python-lint-$pkgver
+  # use PYTHONHASHSEED=0 to work around https://bugs.python.org/issue34033
+  PYTHONHASHSEED=0 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