git: 9b5d84dcc28e - main - devel/py-mktestdocs: New port: Run pytest against markdown files and docstrings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Oct 2026 06:22:54 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9b5d84dcc28e247656702775a74f3f884cb336e9
commit 9b5d84dcc28e247656702775a74f3f884cb336e9
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-26 19:23:48 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-27 06:22:42 +0000
devel/py-mktestdocs: New port: Run pytest against markdown files and docstrings
Approved by: no need for approval according to bapt@
---
devel/Makefile | 1 +
devel/py-mktestdocs/Makefile | 30 ++++++++++++++++++++++++++++++
devel/py-mktestdocs/distinfo | 3 +++
devel/py-mktestdocs/pkg-descr | 3 +++
4 files changed, 37 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 007231fc3c83..2b50aabe5ace 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5487,6 +5487,7 @@
SUBDIR += py-minimongo
SUBDIR += py-minio
SUBDIR += py-mirakuru
+ SUBDIR += py-mktestdocs
SUBDIR += py-mmh3
SUBDIR += py-mock
SUBDIR += py-mockito
diff --git a/devel/py-mktestdocs/Makefile b/devel/py-mktestdocs/Makefile
new file mode 100644
index 000000000000..b4b0ae112dd9
--- /dev/null
+++ b/devel/py-mktestdocs/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= mktestdocs
+DISTVERSION= 0.2.5
+CATEGORIES= devel python
+#MASTER_SITES= PYPI # incomplete test data
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Run pytest against markdown files and docstrings
+WWW= https://github.com/koaning/mktestdocs
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= koaning
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ARGS= --disable-plugin-autoload
+
+NO_ARCH= yes
+
+# tests as of 0.2.5: 39 passed, 2 warnings
+
+.include <bsd.port.mk>
diff --git a/devel/py-mktestdocs/distinfo b/devel/py-mktestdocs/distinfo
new file mode 100644
index 000000000000..968d54bbcb30
--- /dev/null
+++ b/devel/py-mktestdocs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1793040420
+SHA256 (koaning-mktestdocs-0.2.5_GH0.tar.gz) = d2ea054fcfb040cbdc3c2fbbdc8de7acc1c495bc7599ced928e0b5cedffbbe19
+SIZE (koaning-mktestdocs-0.2.5_GH0.tar.gz) = 16367
diff --git a/devel/py-mktestdocs/pkg-descr b/devel/py-mktestdocs/pkg-descr
new file mode 100644
index 000000000000..eaa8b8de1b5c
--- /dev/null
+++ b/devel/py-mktestdocs/pkg-descr
@@ -0,0 +1,3 @@
+mktestdocs is a small Python tool that runs pytest against code blocks in
+markdown files and Python docstrings. It helps keep documentation examples
+up to date and free of syntax errors.