diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-06-16 15:59:38 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-06-16 16:21:38 +0000 |
| commit | c9ec356ad9739be0f7950229c362e26157d01b18 (patch) | |
| tree | 02e50664f3373efc74f1ffd6dca5d27462bf0731 | |
| parent | 2c9d0d51e381820f23ced0af67a628c5a9c08f0e (diff) | |
devel/py-diff-cover: New port: Run coverage and linting reports on diffs
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-diff-cover/Makefile | 29 | ||||
| -rw-r--r-- | devel/py-diff-cover/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-diff-cover/pkg-descr | 3 |
4 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 6c686c5f7665..3c9bcf4b249e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4553,6 +4553,7 @@ SUBDIR += py-devtools SUBDIR += py-dexml2 SUBDIR += py-diazo + SUBDIR += py-diff-cover SUBDIR += py-dill SUBDIR += py-dirspec SUBDIR += py-diskcache diff --git a/devel/py-diff-cover/Makefile b/devel/py-diff-cover/Makefile new file mode 100644 index 000000000000..fdd3d6106bb5 --- /dev/null +++ b/devel/py-diff-cover/Makefile @@ -0,0 +1,29 @@ +PORTNAME= diff-cover +DISTVERSION= 7.6.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Run coverage and linting reports on diffs +WWW= https://github.com/Bachmann1234/diff_cover + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.7.1:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pluggy>=0.13.1:devel/py-pluggy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=2.9.0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomli>=1.2.1:textproc/py-tomli@${PY_FLAVOR} + +USES= python:3.8+ +USE_PYTHON= pep517 autoplist pytest # 5 tests fail, https://github.com/Bachmann1234/diff_cover/issues/348 + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-diff-cover/distinfo b/devel/py-diff-cover/distinfo new file mode 100644 index 000000000000..e48eb2b193ca --- /dev/null +++ b/devel/py-diff-cover/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1686930357 +SHA256 (diff_cover-7.6.0.tar.gz) = d1007303f6bfba14925f602fc735ca8d6b254d8b57320f2b4b38a3a618453f40 +SIZE (diff_cover-7.6.0.tar.gz) = 93811 diff --git a/devel/py-diff-cover/pkg-descr b/devel/py-diff-cover/pkg-descr new file mode 100644 index 000000000000..68e9cd5adc90 --- /dev/null +++ b/devel/py-diff-cover/pkg-descr @@ -0,0 +1,3 @@ +Automatically find diff lines that need test coverage. Also finds diff lines +that have violations (according to tools such as pycodestyle, pyflakes, flake8, +or pylint). This is used as a code quality metric during code reviews. |
