From nobody Mon Feb 28 12:03:27 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 263DE19EB426; Mon, 28 Feb 2022 12:03:28 +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 4K6fCz5Vs7z3NW1; Mon, 28 Feb 2022 12:03:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049807; 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=JFOrr+cwfnv+/YlZ+nu7fwTmmO0C73dcABTPmz9VA0o=; b=IwVItBadk3Ph9tf3XQk18Jz0AnlP2Vj52FDQLR5O0tfFBgUKixaBF6LKqVz+MX4hvrAWdG HIOcDSDCsVtcy1Ro9H5+ugVH5axC7vZkTZFrvTdwm+vbx6lKKxZfRSazc6/bWpUeDL6vUH SJAhMlMQ28nMMJp5tAy2FtMLxPa/oWpXTkWYWxDPLIfyOWjZhC5ZXGhHaHTiutBioBSgiY zT9PWZTJS4GSJ7jqDvu477iZOKKtFTf68QmEUBnBFRaIDd/TzBc1HW4UKl+gonSgjYOAWU qlT7iXf+GS2W6u/3rA+yiVb2x7xlwJL6kQb3IW65bPiF69l3+P7Q6jPrH6gu0g== 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 573681B358; Mon, 28 Feb 2022 12:03:27 +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 21SC3RBo095322; Mon, 28 Feb 2022 12:03:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SC3ROm095321; Mon, 28 Feb 2022 12:03:27 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:03:27 GMT Message-Id: <202202281203.21SC3ROm095321@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: f15afaec9821 - main - textproc/py-pytkdocs: 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: f15afaec9821f2c76259d3c959d3d67c9463fa7e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049807; 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=JFOrr+cwfnv+/YlZ+nu7fwTmmO0C73dcABTPmz9VA0o=; b=lasoMdYawQk22N5qlaQD268vGFHtIhHWLcPFIY4F9vUmg/3j3JtcbFjatZjIMX/QcBikUm yKufyMLPDS2WyyOHkQUBC4iXELV9WKW1nN/1wm3UOzLNanUxQmtqn3wwZSxOerJ1lt603L qdjRo3ZtVsvXdMQ2/RJBySvoc7P3dhofrLlgyh43G5XAaCDJqzhoFd7r3uX4jum9J3Bbog fWvHTyIC1A/slFFgp4aIAsWuyjZbQYM+mI+EIQJkkhv7TSd051eobPPlfzedfwG2kDafBc uycZhx7bKuqIaeW8nJmnRWyhbaluY2PjlCONiTfLyTgdyX69AXWEZ0v1+CLPFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646049807; a=rsa-sha256; cv=none; b=iRFHxAcROq2gyYagPmTCEZulVQJ4fKabKBbpapZYLrIM/vOxe4oVoqdPcW6CYRmocf579I 4rYsxX/XKIhmVOMFyKYLa3WSIFrI+twJdnNLPkGifh26xP3qGE3SFn/SoEF31TMs38xO7l Jud7pAL2MwaEmsZPI6XsO8MTjr8InxypYh5WMbihwEsNlAAp7XSByidBlsiq/Fn24l0Yta +PY1Ki9SIomeWjcj3BKb3hJJqMcadv/8SrFCrxNuHLG+jo0Mz7sKd96IlgferjeSO2gDsI xw35/APiVAZdvMrFZll/lCMdhIuYYBogLCz9h2g0dsV7SQI1zUvJGanwBIvaXA== 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=f15afaec9821f2c76259d3c959d3d67c9463fa7e commit f15afaec9821f2c76259d3c959d3d67c9463fa7e Author: Kai Knoblich AuthorDate: 2022-02-28 11:47:02 +0000 Commit: Kai Knoblich CommitDate: 2022-02-28 11:47:02 +0000 textproc/py-pytkdocs: New port This Python package is used to load Python objects documentation. It accepts JSON on standard input and writes JSON on standard output. WWW: https://github.com/mkdocstrings/pytkdocs --- textproc/Makefile | 1 + textproc/py-pytkdocs/Makefile | 48 +++++++++++++++++++++++++++++++ textproc/py-pytkdocs/distinfo | 3 ++ textproc/py-pytkdocs/files/patch-setup.py | 44 ++++++++++++++++++++++++++++ textproc/py-pytkdocs/pkg-descr | 4 +++ 5 files changed, 100 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index b502ac5c204f..b24af10abded 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1438,6 +1438,7 @@ SUBDIR += py-python-slugify SUBDIR += py-python-xmp-toolkit SUBDIR += py-pytidylib + SUBDIR += py-pytkdocs SUBDIR += py-pytoml SUBDIR += py-pyx12 SUBDIR += py-qrcode diff --git a/textproc/py-pytkdocs/Makefile b/textproc/py-pytkdocs/Makefile new file mode 100644 index 000000000000..6f854fdcafc0 --- /dev/null +++ b/textproc/py-pytkdocs/Makefile @@ -0,0 +1,48 @@ +PORTNAME= pytkdocs +DISTVERSION= 0.16.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Load Python objects documentation + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}django32>0:www/py-django32@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}marshmallow>0:devel/py-marshmallow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic>0:devel/py-pydantic@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +OPTIONS_DEFINE= NUMPYSTYLE +OPTIONS_DEFAULT= NUMPYSTYLE + +NUMPYSTYLE_DESC= Enable support for Numpy docstrings +NUMPYSTYLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docstring-parser>=0.7:textproc/py-docstring-parser@${PY_FLAVOR} + +.include + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}astunparse>=1.6:devel/py-astunparse@${PY_FLAVOR} +.endif + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cached-property>=1.5:devel/py-cached-property@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/setup.py + +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs + +.include diff --git a/textproc/py-pytkdocs/distinfo b/textproc/py-pytkdocs/distinfo new file mode 100644 index 000000000000..90ff9cb23946 --- /dev/null +++ b/textproc/py-pytkdocs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645878263 +SHA256 (pytkdocs-0.16.0.tar.gz) = 274407bcefec58d7e411adb03b84da49120107912b1697d17d4a3aea0583f388 +SIZE (pytkdocs-0.16.0.tar.gz) = 56085 diff --git a/textproc/py-pytkdocs/files/patch-setup.py b/textproc/py-pytkdocs/files/patch-setup.py new file mode 100644 index 000000000000..5da3bac57aaa --- /dev/null +++ b/textproc/py-pytkdocs/files/patch-setup.py @@ -0,0 +1,44 @@ +--- setup.py.orig 2022-02-28 05:25:48 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 = [ ++ "astunparse>=1.6; python_version < '3.9'", ++ "cached-property>=1.5; python_version < '3.8'", ++ "typing-extensions>=3.7; python_version < '3.8'", ++] ++EXTRAS_REQUIRE = { ++ 'numpy-style': [ ++ 'docstring_parser>=0.7', ++ ], ++} ++ENTRY_POINTS = { ++ 'console_scripts': [ ++ 'pytkdocs = pytkdocs.cli:main', ++ ], ++} ++ ++setup_kwargs = { ++ 'name': 'pytkdocs', ++ 'version': '%%DISTVERSION%%', ++ 'description': 'Load Python objects documentation.', ++ 'author': '', ++ 'author_email': 'Timothée Mazzucotelli ', ++ 'packages': [ ++ 'pytkdocs', ++ 'pytkdocs.parsers', ++ 'pytkdocs.parsers.docstrings', ++ ], ++ 'package_dir': {'': 'src'}, ++ 'package_data': {'': ['*']}, ++ 'install_requires': INSTALL_REQUIRES, ++ 'extras_require': EXTRAS_REQUIRE, ++ 'python_requires': '>=3.7', ++ 'entry_points': ENTRY_POINTS, ++} ++ ++setup(**setup_kwargs) diff --git a/textproc/py-pytkdocs/pkg-descr b/textproc/py-pytkdocs/pkg-descr new file mode 100644 index 000000000000..6450f1ee4a3f --- /dev/null +++ b/textproc/py-pytkdocs/pkg-descr @@ -0,0 +1,4 @@ +This Python package is used to load Python objects documentation. It accepts +JSON on standard input and writes JSON on standard output. + +WWW: https://github.com/mkdocstrings/pytkdocs