Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2024 08:14:19 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5d832102e93a - main - textproc/py-mkdocs-get-deps: New port
Message-ID:  <202405040814.4448EJ90032057@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=5d832102e93a9684ae8d265b48c040d9b2cfacfb

commit 5d832102e93a9684ae8d265b48c040d9b2cfacfb
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-05-04 07:35:48 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-05-04 08:13:23 +0000

    textproc/py-mkdocs-get-deps: New port
    
    This package offers an extra command for MkDocs that infers required
    PyPI packages from plugins in mkdocs.yml.
---
 textproc/Makefile                     |  1 +
 textproc/py-mkdocs-get-deps/Makefile  | 33 +++++++++++++++++++++++++++++++++
 textproc/py-mkdocs-get-deps/distinfo  |  3 +++
 textproc/py-mkdocs-get-deps/pkg-descr |  2 ++
 4 files changed, 39 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index a48c152049ca..35acdf46fbd5 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1434,6 +1434,7 @@
     SUBDIR += py-mistune2
     SUBDIR += py-mkdocs
     SUBDIR += py-mkdocs-autorefs
+    SUBDIR += py-mkdocs-get-deps
     SUBDIR += py-mkdocs-git-revision-date-localized-plugin
     SUBDIR += py-mkdocs-material
     SUBDIR += py-mkdocs-material-extensions
diff --git a/textproc/py-mkdocs-get-deps/Makefile b/textproc/py-mkdocs-get-deps/Makefile
new file mode 100644
index 000000000000..1bf4ce339ca5
--- /dev/null
+++ b/textproc/py-mkdocs-get-deps/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	mkdocs-get-deps
+DISTVERSION=	0.2.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	mkdocs_get_deps-${DISTVERSION}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	MkDocs extension that lists all dependencies according to a mkdocs.yml
+WWW=		https://github.com/mkdocs/get-deps
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mergedeep>=1.3.4:devel/py-mergedeep@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}platformdirs>=2.2.0:devel/py-platformdirs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.4:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/py-mkdocs-get-deps/distinfo b/textproc/py-mkdocs-get-deps/distinfo
new file mode 100644
index 000000000000..93c298442df7
--- /dev/null
+++ b/textproc/py-mkdocs-get-deps/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714706840
+SHA256 (mkdocs_get_deps-0.2.0.tar.gz) = 162b3d129c7fad9b19abfdcb9c1458a651628e4b1dea628ac68790fb3061c60c
+SIZE (mkdocs_get_deps-0.2.0.tar.gz) = 10239
diff --git a/textproc/py-mkdocs-get-deps/pkg-descr b/textproc/py-mkdocs-get-deps/pkg-descr
new file mode 100644
index 000000000000..8c464ad4135e
--- /dev/null
+++ b/textproc/py-mkdocs-get-deps/pkg-descr
@@ -0,0 +1,2 @@
+This package offers an extra command for MkDocs that infers required PyPI
+packages from plugins in mkdocs.yml.



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