[arch-commits] Commit in (5 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Fri Mar 1 08:17:01 UTC 2019
Date: Friday, March 1, 2019 @ 08:17:00
Author: yan12125
Revision: 437162
addpkg: python-cfn-lint
* A new dependency in the next version of python-moto [1]
[1] https://github.com/spulec/moto/pull/1921
Added:
python-cfn-lint/
python-cfn-lint/repos/
python-cfn-lint/trunk/
python-cfn-lint/trunk/PKGBUILD
python-cfn-lint/trunk/fix-tests.patch
-----------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
fix-tests.patch | 13 +++++++++++++
2 files changed, 53 insertions(+)
Added: python-cfn-lint/trunk/PKGBUILD
===================================================================
--- python-cfn-lint/trunk/PKGBUILD (rev 0)
+++ python-cfn-lint/trunk/PKGBUILD 2019-03-01 08:17:00 UTC (rev 437162)
@@ -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
+}
Added: python-cfn-lint/trunk/fix-tests.patch
===================================================================
--- python-cfn-lint/trunk/fix-tests.patch (rev 0)
+++ python-cfn-lint/trunk/fix-tests.patch 2019-03-01 08:17:00 UTC (rev 437162)
@@ -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