[arch-commits] Commit in python-cfn-lint/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at gemini.archlinux.org
Fri Jul 16 19:39:55 UTC 2021
Date: Friday, July 16, 2021 @ 19:39:55
Author: yan12125
Revision: 977736
python-cfn-lint: add a workaround to make tests pass
Ref: https://github.com/aws-cloudformation/cfn-lint/issues/1779
Modified:
python-cfn-lint/trunk/PKGBUILD
----------+
PKGBUILD | 6 ++++++
1 file changed, 6 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-16 19:37:30 UTC (rev 977735)
+++ PKGBUILD 2021-07-16 19:39:55 UTC (rev 977736)
@@ -18,6 +18,12 @@
source=("https://github.com/aws-cloudformation/cfn-lint/archive/v$pkgver/cfn-lint-$pkgver.tar.gz")
sha256sums=('1aaac7a8f921e0bd8f011c85ce720b7f99deda7c9624620ff831cec02e2de111')
+prepare() {
+ cd cfn-lint-$pkgver
+ # Workarounds a time-based test; see https://github.com/aws-cloudformation/cfn-lint/issues/1779
+ sed -i 's#Runtime: python2\.7#Runtime: python3.8#' test/fixtures/templates/quickstart/{cis_benchmark,openshift}.yaml
+}
+
build() {
cd cfn-lint-$pkgver
python setup.py build
More information about the arch-commits
mailing list