Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2024 06:06:06 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 64a1663273fb - main - devel/py-phmdoctest: New port: Python syntax highlighted Markdown doctest
Message-ID:  <202412200606.4BK6668p042218@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=64a1663273fb82d776458d37d70274bffaecf09f

commit 64a1663273fb82d776458d37d70274bffaecf09f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-20 04:02:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-20 06:05:44 +0000

    devel/py-phmdoctest: New port: Python syntax highlighted Markdown doctest
---
 devel/Makefile                |  1 +
 devel/py-phmdoctest/Makefile  | 32 ++++++++++++++++++++++++++++++++
 devel/py-phmdoctest/distinfo  |  3 +++
 devel/py-phmdoctest/pkg-descr |  4 ++++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7be30a509154..5ebcdf3ed18f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5412,6 +5412,7 @@
     SUBDIR += py-pew
     SUBDIR += py-pex
     SUBDIR += py-phabricator
+    SUBDIR += py-phmdoctest
     SUBDIR += py-phonenumbers
     SUBDIR += py-phply
     SUBDIR += py-phpserialize
diff --git a/devel/py-phmdoctest/Makefile b/devel/py-phmdoctest/Makefile
new file mode 100644
index 000000000000..39b2540608b1
--- /dev/null
+++ b/devel/py-phmdoctest/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	phmdoctest
+DISTVERSION=	1.4.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python syntax highlighted Markdown doctest
+WWW=		https://tmarktaylor.github.io/phmdoctest/ \
+		https://github.com/tmarktaylor/phmdoctest
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=7.1.1:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}CommonMark>=0.9.1:textproc/py-CommonMark@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}monotable>=2.1.1:devel/py-monotable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+# tests as of 1.4.0: 4 failed, 227 passed in 49.71s (4 failues due to missing .github/*** files)
+
+.include <bsd.port.mk>
diff --git a/devel/py-phmdoctest/distinfo b/devel/py-phmdoctest/distinfo
new file mode 100644
index 000000000000..e155b5547e6f
--- /dev/null
+++ b/devel/py-phmdoctest/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734659922
+SHA256 (phmdoctest-1.4.0.tar.gz) = eb9dd5dc415d6e48ccd3a273e250c519b1e2b9e22e21ddf6e6f716efbb0f2e09
+SIZE (phmdoctest-1.4.0.tar.gz) = 113039
diff --git a/devel/py-phmdoctest/pkg-descr b/devel/py-phmdoctest/pkg-descr
new file mode 100644
index 000000000000..1fb08a35819f
--- /dev/null
+++ b/devel/py-phmdoctest/pkg-descr
@@ -0,0 +1,4 @@
+Python syntax highlighted Markdown doctest.
+
+Command line program and Python library to test Python syntax highlighted code
+examples in Markdown.



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