From nobody Mon Feb 28 12:03:29 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 28AB719EB827; Mon, 28 Feb 2022 12:03:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6fD1678tz3Nbl; Mon, 28 Feb 2022 12:03:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=acNLK3ZKJQao595P6EhbUruatffet5TvzKzoeNX9q4c=; b=t1TWWYe3a+EnNM9Fp6Qr+kqGBg93pNk7QRBRdBkZba1yI+QkBUWFJr+3EkXWvnUjxRX/Mj c1sDXnDsAvKb9rEd7B6SHiEeL7Yj3AHbHlGkY/NcZ2FNx75fmaI3eSORGmNAFde4HGnuAJ J4AdMUv+dy4vSVhWtMsd/LNQSqO8TxpcF7Uri/CcmPJoCs0quU48ZxcmErv0yypxZkGJm4 3i8MiTsh4VZQqQOoq0CWL9eh5lc+ZWxrP5cxJSAFKmDJx4azcI+LdNTP3QEm6OuQle8v72 uVzfwJH5AH85rTXDPZxYmMwiiNkOIAQe4N4aU0LcPV3zMj4Gag+7Lgou/J1xXQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 95C8B1B12E; Mon, 28 Feb 2022 12:03:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21SC3TWa095370; Mon, 28 Feb 2022 12:03:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SC3Til095369; Mon, 28 Feb 2022 12:03:29 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:03:29 GMT Message-Id: <202202281203.21SC3Til095369@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: e30bd8fffa1a - main - textproc/py-mkdocstrings: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e30bd8fffa1affd0aa00d336f170a102f819d633 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=acNLK3ZKJQao595P6EhbUruatffet5TvzKzoeNX9q4c=; b=kIuqxScq2/FzH8RROftQw84e/yaX2whUtHda6MIlB10Ed9crsGg6L/HBUOeUO4+xhhf2Jr bL8uXlvK8YsRi+MUGxlIL0otaVAjlz45ZSmD1gglKlosFIHWRGXHe6fAWbnRp5JDrgXH7C 7nl4quptlRdte8maIrohJy/TI78Gy0xRHIeNpsGuT8SyRymzIYq0ThpRP3sS7QmK3Jsh3x SqBxkcTuuLgrg71obgABosxVQ/kszdTU1mS3TO7nTgD2u7TUAsuF8j067BY5TXkmPWRDPj LWdN+d2wRTx9WJoe+SJ4DMksUEP1RglJ2uqtuN/J2O7zFb9ddgX7USmrxZV5dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646049810; a=rsa-sha256; cv=none; b=loAy6Hce9VitKUKQ/Uh0hvFrkml0/ddLGG/BuUeoh5V/sItXv4i5J2Lpez1dk9aV/rWDA0 iCUFbW7p8DpLgzn036bCSadRXUXQsKoCKKW3t796tPJB/5QtOZHV5E3RjfdNrt6ZAXgkfu n+8KPMscv8HB2x8Vikv7f+bVn5tFGd+ZFHwCGKzau7OBI/wEFyzWUoTVMgnlw7GacYOktZ fs9El+7YtenArjqNEZriQgH++necbtpOfWeTcg58xoHHYScrdjikq2rfEowmWOyf6Nekmq 2sy1U6pJSIERSXZpeyLCjvtC/w+kwkeoXTP6qEGk54Rf0zwkyIub3tJB5ZpJLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=e30bd8fffa1affd0aa00d336f170a102f819d633 commit e30bd8fffa1affd0aa00d336f170a102f819d633 Author: Kai Knoblich AuthorDate: 2022-02-28 11:50:26 +0000 Commit: Kai Knoblich CommitDate: 2022-02-28 11:50:26 +0000 textproc/py-mkdocstrings: New port This Python package is an extension for MkDocs and its main purpose is the automation of documentation from sources. Features: * Language-agnostic * Multiple themes support * Cross-references across pages * Cross-references across sites * Inline injection in Markdown * Global and local configuration * Watch source code directories * Reasonable defaults WWW: https://github.com/mkdocstrings/mkdocstrings --- textproc/Makefile | 1 + textproc/py-mkdocstrings/Makefile | 40 ++++++++++++++++++++++++ textproc/py-mkdocstrings/distinfo | 3 ++ textproc/py-mkdocstrings/files/patch-setup.py | 44 +++++++++++++++++++++++++++ textproc/py-mkdocstrings/pkg-descr | 15 +++++++++ 5 files changed, 103 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 0debc484f844..249d51a1f581 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1368,6 +1368,7 @@ SUBDIR += py-mkdocs-material SUBDIR += py-mkdocs-material-extensions SUBDIR += py-mkdocs-nature + SUBDIR += py-mkdocstrings SUBDIR += py-mwparserfromhell SUBDIR += py-myst-parser SUBDIR += py-nbsphinx diff --git a/textproc/py-mkdocstrings/Makefile b/textproc/py-mkdocstrings/Makefile new file mode 100644 index 000000000000..70d9385e0aba --- /dev/null +++ b/textproc/py-mkdocstrings/Makefile @@ -0,0 +1,40 @@ +PORTNAME= mkdocstrings +DISTVERSION= 0.17.0 +CATEGORIES= textproc python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Automatic documentation from sources for MkDocs + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.1:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown>=3.3:textproc/py-markdown@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markupsafe>=1.1:textproc/py-markupsafe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs>=1.2:textproc/py-mkdocs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=6.3:textproc/py-pymdown-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs-autorefs>=0.1:textproc/py-mkdocs-autorefs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytkdocs>=0.14.0:textproc/py-pytkdocs@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs-material>0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} + +USES= python:3.6+ +USE_GITHUB= yes +USE_PYTHON= autoplist distutils + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/setup.py + +# Skip "test_sphinx_load_mkdocstrings_inventory_file" as it requires +# mkdocs-gen-files (not in Ports tree, yet). +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs \ + -k 'not test_sphinx_load_mkdocstrings_inventory_file' + +.include diff --git a/textproc/py-mkdocstrings/distinfo b/textproc/py-mkdocstrings/distinfo new file mode 100644 index 000000000000..7ffaec2dfc77 --- /dev/null +++ b/textproc/py-mkdocstrings/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645976995 +SHA256 (mkdocstrings-mkdocstrings-0.17.0_GH0.tar.gz) = dcd8f03387c423bb1ddf6fbbec8dfa0432dfc3d01001adb4a0c07985f333971c +SIZE (mkdocstrings-mkdocstrings-0.17.0_GH0.tar.gz) = 73551 diff --git a/textproc/py-mkdocstrings/files/patch-setup.py b/textproc/py-mkdocstrings/files/patch-setup.py new file mode 100644 index 000000000000..99fdbaca862e --- /dev/null +++ b/textproc/py-mkdocstrings/files/patch-setup.py @@ -0,0 +1,44 @@ +--- setup.py.orig 2022-02-28 05:29:01 UTC ++++ setup.py +@@ -0,0 +1,41 @@ ++# Generated via pdm export -f setuppy" (run "pdm lock" beforehand) ++# -*- coding: utf-8 -*- ++from setuptools import setup ++ ++INSTALL_REQUIRES = [ ++ 'Jinja2>=2.11.1', ++ 'Markdown>=3.3', ++ 'MarkupSafe>=1.1', ++ 'mkdocs>=1.2', ++ 'mkdocs-autorefs>=0.1', ++ 'pymdown-extensions>=6.3', ++ 'pytkdocs>=0.14.0', ++] ++ENTRY_POINTS = { ++ 'mkdocs.plugins': [ ++ 'mkdocstrings = mkdocstrings.plugin:MkdocstringsPlugin', ++ ], ++} ++ ++setup_kwargs = { ++ 'name': 'mkdocstrings', ++ 'version': '%%DISTVERSION%%', ++ 'description': 'Automatic documentation from sources, for MkDocs.', ++ 'author': '', ++ 'author_email': 'Timothée Mazzucotelli ', ++ 'package_dir': {'': 'src/'}, ++ 'packages': [ ++ 'mkdocstrings', ++ 'mkdocstrings.handlers', ++ 'mkdocstrings.templates.python', ++ 'mkdocstrings.templates.python.material', ++ 'mkdocstrings.templates.python.mkdocs', ++ 'mkdocstrings.templates.python.readthedocs' ++ ], ++ 'package_data': {'': ['*']}, ++ 'install_requires': INSTALL_REQUIRES, ++ 'python_requires': '>=3.6.2', ++ 'entry_points': ENTRY_POINTS, ++} ++ ++setup(**setup_kwargs) diff --git a/textproc/py-mkdocstrings/pkg-descr b/textproc/py-mkdocstrings/pkg-descr new file mode 100644 index 000000000000..e2c6e34360cd --- /dev/null +++ b/textproc/py-mkdocstrings/pkg-descr @@ -0,0 +1,15 @@ +This Python package is an extension for MkDocs and its main purpose is the +automation of documentation from sources. + +Features: + +* Language-agnostic +* Multiple themes support +* Cross-references across pages +* Cross-references across sites +* Inline injection in Markdown +* Global and local configuration +* Watch source code directories +* Reasonable defaults + +WWW: https://github.com/mkdocstrings/mkdocstrings