1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add devel/py-cfn-lint: AWS CloudFormation Linter

Validate CloudFormation yaml/json templates against the CloudFormation spec and
additional checks. Includes checking valid values for resource properties and
best practices.

WWW: https://pypi.org/project/cfn-lint/

PR:		238534
Submitted by:	nork@ninth-nine.com
This commit is contained in:
Danilo G. Baio 2019-06-15 13:36:54 +00:00
parent 610382e4ea
commit b05e526fbc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504244
5 changed files with 50 additions and 0 deletions

View File

@ -4229,6 +4229,7 @@
SUBDIR += py-cffi
SUBDIR += py-cfgparse
SUBDIR += py-cfgv
SUBDIR += py-cfn-lint
SUBDIR += py-cftime
SUBDIR += py-chainmap
SUBDIR += py-characteristic

View File

@ -0,0 +1,28 @@
# $FreeBSD$
PORTNAME= cfn-lint
PORTVERSION= 0.21.5
CATEGORIES= devel python textproc
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nork@ninth-nine.com
COMMENT= AWS CloudFormation Linter
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.11:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.15.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}aws-sam-translator>=1.10.0:devel/py-aws-sam-translator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonpatch>0:devel/py-jsonpatch@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0:devel/py-jsonschema@${PY_FLAVOR} \
${PY_PATHLIB}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1560602229
SHA256 (cfn-lint-0.21.5.tar.gz) = ce4bf8c0e6d5b8ad3f1b4cd8261e1eca795d61fb3723e3dce85c78eff95ab120
SIZE (cfn-lint-0.21.5.tar.gz) = 2042476

View File

@ -0,0 +1,13 @@
https://github.com/aws-cloudformation/cfn-python-lint/issues/905
--- setup.py.orig 2019-06-15 13:03:38 UTC
+++ setup.py
@@ -78,7 +78,7 @@ setup(
'requests>=2.15.0',
'aws-sam-translator>=1.10.0',
'jsonpatch',
- 'jsonschema~=2.6',
+ 'jsonschema~=3.0',
'pathlib2>=2.3.0;python_version<"3.4"',
'setuptools',
],

View File

@ -0,0 +1,5 @@
Validate CloudFormation yaml/json templates against the CloudFormation spec and
additional checks. Includes checking valid values for resource properties and
best practices.
WWW: https://pypi.org/project/cfn-lint/