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

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Mar 1 08:20:06 UTC 2019


    Date: Friday, March 1, 2019 @ 08:20:05
  Author: yan12125
Revision: 437163

archrelease: copy trunk to community-any

Added:
  python-cfn-lint/repos/community-any/
  python-cfn-lint/repos/community-any/PKGBUILD
    (from rev 437162, python-cfn-lint/trunk/PKGBUILD)
  python-cfn-lint/repos/community-any/fix-tests.patch
    (from rev 437162, python-cfn-lint/trunk/fix-tests.patch)

-----------------+
 PKGBUILD        |   40 ++++++++++++++++++++++++++++++++++++++++
 fix-tests.patch |   13 +++++++++++++
 2 files changed, 53 insertions(+)

Copied: python-cfn-lint/repos/community-any/PKGBUILD (from rev 437162, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-03-01 08:20:05 UTC (rev 437163)
@@ -0,0 +1,40 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.15.0
+pkgrel=1
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/awslabs/cfn-python-lint'
+license=('custom:MIT No Attribution')
+depends=(python python-pyaml python-six python-requests python-aws-sam-translator
+         python-jsonpatch python-jsonschema python-setuptools)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-mock)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/awslabs/cfn-python-lint/archive/v$pkgver.tar.gz"
+        fix-tests.patch)
+sha256sums=('53ad1177d3c85a7c20adb38cac9cd08751d7f3f1a0fd40cce790d96dfae1cb76'
+            'c36881e4d33092bdd5173e42e5b2bf4b04d521c95e4365b7eaa94dd93dbaf0ea')
+
+prepare() {
+  cd cfn-python-lint-$pkgver
+  patch -Np1 -i ../fix-tests.patch
+}
+
+build() {
+  cd cfn-python-lint-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cfn-python-lint-$pkgver
+
+  PYTHONPATH=build/lib 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
+}

Copied: python-cfn-lint/repos/community-any/fix-tests.patch (from rev 437162, python-cfn-lint/trunk/fix-tests.patch)
===================================================================
--- community-any/fix-tests.patch	                        (rev 0)
+++ community-any/fix-tests.patch	2019-03-01 08:20:05 UTC (rev 437163)
@@ -0,0 +1,13 @@
+diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py
+index a130acb..2a5f4c9 100644
+--- a/src/cfnlint/config.py
++++ b/src/cfnlint/config.py
+@@ -448,7 +448,7 @@ class ConfigMixIn(TemplateArgs, CliArgs, ConfigFileArgs, object):
+             else:
+                 all_filenames.extend(add_filenames)
+ 
+-        return all_filenames
++        return sorted(all_filenames)
+ 
+     @property
+     def append_rules(self):



More information about the arch-commits mailing list