diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-12-30 13:21:14 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-12-30 13:29:03 +0000 |
| commit | b1ebd44a5fbcfb37e10b388601ca0d9f5f167fc6 (patch) | |
| tree | 4a41673577658c4759e7f594b97bb2c5a935fad6 | |
| parent | 5776980f866198c9f78b84535c81f0835a7deb94 (diff) | |
devel/py-diagnostic: Add py-diagnostic 3.0.0
diagnostic makes it easier to build command line tools with great error
reporting.
Features:
- Unique codes on every Diagnostic
- Tooling to help ensure all codes in the codebase are documented
- Fancy graphical output, built on top of rich, with graceful fallbacks to ASCII
and plain strings
- Present a causal chain if needed
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-diagnostic/Makefile | 25 | ||||
| -rw-r--r-- | devel/py-diagnostic/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-diagnostic/pkg-descr | 9 |
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 8a13bfdcc12b..32856beb136d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4828,6 +4828,7 @@ SUBDIR += py-deptry SUBDIR += py-devtools SUBDIR += py-dexml2 + SUBDIR += py-diagnostic SUBDIR += py-diff-cover SUBDIR += py-dill SUBDIR += py-dirspec diff --git a/devel/py-diagnostic/Makefile b/devel/py-diagnostic/Makefile new file mode 100644 index 000000000000..b3c975a8c8d7 --- /dev/null +++ b/devel/py-diagnostic/Makefile @@ -0,0 +1,25 @@ +PORTNAME= diagnostic +PORTVERSION= 3.0.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Present errors that contain causes better understand what happened +WWW= https://diagnostic.readthedocs.io/en/latest/ \ + https://github.com/pradyunsg/diagnostic + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0,1:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=0:textproc/py-markdown-it-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-diagnostic/distinfo b/devel/py-diagnostic/distinfo new file mode 100644 index 000000000000..2c6b7c6bc1fa --- /dev/null +++ b/devel/py-diagnostic/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1766953300 +SHA256 (diagnostic-3.0.0.tar.gz) = 5c80d7f77706dca775cc85d7b0492e4e96385dade2103052cf06cf6ab105b855 +SIZE (diagnostic-3.0.0.tar.gz) = 8651 diff --git a/devel/py-diagnostic/pkg-descr b/devel/py-diagnostic/pkg-descr new file mode 100644 index 000000000000..9d6ea4fb4eca --- /dev/null +++ b/devel/py-diagnostic/pkg-descr @@ -0,0 +1,9 @@ +diagnostic makes it easier to build command line tools with great error +reporting. + +Features: +- Unique codes on every Diagnostic +- Tooling to help ensure all codes in the codebase are documented +- Fancy graphical output, built on top of rich, with graceful fallbacks to ASCII + and plain strings +- Present a causal chain if needed |
