Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2023 10:07:50 GMT
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7978185b6899 - main - devel/py-cfn-lint: Add make test target
Message-ID:  <202305111007.34BA7oeS032646@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by nork:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7978185b689900727dd32312e3abba5ad1fcee8d

commit 7978185b689900727dd32312e3abba5ad1fcee8d
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2023-05-11 10:05:19 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2023-05-11 10:06:53 +0000

    devel/py-cfn-lint: Add make test target
    
    Approved by:    hrs (mentor)
---
 devel/py-cfn-lint/Makefile                               |  5 ++++-
 devel/py-cfn-lint/files/patch-src_cfnlint_maintenance.py | 13 +++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/devel/py-cfn-lint/Makefile b/devel/py-cfn-lint/Makefile
index c45ec08bf2b3..ef130fbb3c68 100644
--- a/devel/py-cfn-lint/Makefile
+++ b/devel/py-cfn-lint/Makefile
@@ -23,7 +23,10 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aws-sam-translator>=1.65.0:devel/py-aws-sam-
 		${PYTHON_PKGNAMEPREFIX}yaml>5.4:devel/py-yaml@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils unittest
+TEST_ENV=	${MAKE_ENV} \
+		PATH=${STAGEDIR}${PREFIX}/bin:${PATH} \
+		PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
 NO_ARCH=	yes
 
diff --git a/devel/py-cfn-lint/files/patch-src_cfnlint_maintenance.py b/devel/py-cfn-lint/files/patch-src_cfnlint_maintenance.py
new file mode 100644
index 000000000000..9761d68e868a
--- /dev/null
+++ b/devel/py-cfn-lint/files/patch-src_cfnlint_maintenance.py
@@ -0,0 +1,13 @@
+--- src/cfnlint/maintenance.py.orig	2023-05-08 16:34:58 UTC
++++ src/cfnlint/maintenance.py
+@@ -226,9 +226,8 @@ def update_documentation(rules):
+                 "../"
+                 + subprocess.check_output(
+                     [
+-                        "git",
+                         "grep",
+-                        "-l",
++                        "-lr",
+                         'id = "' + rule.id + '"',
+                         "src/cfnlint/rules/",
+                     ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305111007.34BA7oeS032646>