[arch-commits] Commit in python-cfn-lint/repos (3 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Fri May 31 14:19:29 UTC 2019
Date: Friday, May 31, 2019 @ 14:19:29
Author: yan12125
Revision: 475938
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 475937, python-cfn-lint/trunk/PKGBUILD)
python-cfn-lint/repos/community-testing-any/fix-tests.patch
(from rev 475937, python-cfn-lint/trunk/fix-tests.patch)
-----------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
fix-tests.patch | 11 +++++++++++
2 files changed, 54 insertions(+)
Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 475937, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-05-31 14:19:29 UTC (rev 475938)
@@ -0,0 +1,43 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.21.3
+pkgrel=2
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/aws-cloudformation/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)
+checkdepends=(python-pytest python-mock)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/aws-cloudformation/cfn-python-lint/archive/v$pkgver.tar.gz"
+ fix-tests.patch)
+sha256sums=('75f81dbc43406cd1ccbfc33193bdb6c98cdd637910d4fa48875ca5f4996e3bfb'
+ 'e530839ba21e4aa6d19fb08563aa91b16d5f445e0ceb7f97021a130ff8948465')
+
+prepare() {
+ cd cfn-python-lint-$pkgver
+ patch -Np1 -i ../fix-tests.patch
+ sed -i 's|,<=2.21.0||' setup.py
+
+ # mimic https://github.com/awslabs/serverless-application-model/pull/927
+ sed -i 's#jsonschema~=2.6#jsonschema~=3.0#' setup.py
+}
+
+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-testing-any/fix-tests.patch (from rev 475937, python-cfn-lint/trunk/fix-tests.patch)
===================================================================
--- community-testing-any/fix-tests.patch (rev 0)
+++ community-testing-any/fix-tests.patch 2019-05-31 14:19:29 UTC (rev 475938)
@@ -0,0 +1,11 @@
+--- cfn-python-lint-0.16.0/src/cfnlint/config.py.orig 2019-03-14 22:41:20.817312234 +0800
++++ cfn-python-lint-0.16.0/src/cfnlint/config.py 2019-03-14 22:41:40.973955815 +0800
+@@ -456,7 +456,7 @@
+ if add_filename not in ignore_templates:
+ all_filenames.append(add_filename)
+
+- return all_filenames
++ return sorted(all_filenames)
+
+ def _ignore_templates(self):
+ """ templates """
More information about the arch-commits
mailing list