From nobody Mon Feb 28 12:03:26 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 C588E19EB546; Mon, 28 Feb 2022 12:03:26 +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 4K6fCy3SkBz3NVX; Mon, 28 Feb 2022 12:03:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049806; 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=4LFmcU/cXzIq1xqvpaF8LzfZ4KCbw6TuxeJ1/VmuCBs=; b=ClGNJH2Q8vv+BSBiI4xjeq9Hpp0GwJDy9y3bc1/8zexsp2TcoASta3876Eh137XjGXypvg xJzHYtRQwvH4ZNOgvS6r+wDwVvHFeslSiKV2Yduw0OAHs205B/RcTSXJJHfmL6jthsnkDi sh4CxcoDaLY5rXbhuRLQ46rytVkSyOGwBy2wRLgKYQxJ6rIC3ns7AJLVjytsvMxtJ7s7RD HFy5Uo6vSju1aMxsOjSTVO0ycD+jmqCIlyVmbYbYuOPhowUnwbfWodKAp2w6dfSWLCSVtV 3kTMvbiAnrUqxmt1bi/oTHLC7IphPaCp6g5D4A+SmU81Gbx7XePFUye/y8tX1w== 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 3C5FA1B09E; Mon, 28 Feb 2022 12:03:26 +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 21SC3QvK095298; Mon, 28 Feb 2022 12:03:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SC3QGg095297; Mon, 28 Feb 2022 12:03:26 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:03:26 GMT Message-Id: <202202281203.21SC3QGg095297@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: cde0e8998d18 - main - textproc/py-docstring-parser: 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: cde0e8998d182521f686f021c571b86c2fec1305 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646049806; 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=4LFmcU/cXzIq1xqvpaF8LzfZ4KCbw6TuxeJ1/VmuCBs=; b=j4izyu833wtqCAC5iJNkX08Em/OI3T5dGmwEWYzK7GRphcnsy2VKmWQqy8YKp5bJ2IA8AF UBrLYTP5zxCDbIaXnTfhr+p5tG98ftHFBPVV8TlIwS604b4xOw4881okzkPnB11hJgwmgF EOjk4xlpS9qW13tPLN+F2Gm1lKTGAwpTKuqA5lC5PA4UO97xSu/khM2TOlrlTVIRRjt6dn /OVhorOi/4F96jOCsXzhj4QTPKUAdO41tlpx4k2bq2lyL3oBNI5NJZKuHi4G+3vmkYOgVI o+G3eYLRvI/7fiXRaepzKyNRS4XCCCQbkUZ3cmn0vw4azdwREnc71kdNGE3cUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646049806; a=rsa-sha256; cv=none; b=x3hY/pgiwwpsxAMcdXtItlEZYgFNy65cbMbPdHsZoBgRNFwtPr5XKYvO9lcPzmnRc9YCsZ Q9CrHFKbbo0Pr+3xVYidWplXbM+oubVXVj2wtLjFVkP2Lb+jfwToeDSJCC2XOQVe6NkClK nUvA16OlVOZ7VSD0LkkWqVsL6pu/x3SBkm0AOhE2LY1jMeo5VL241k3LL0j9DwI1dDezu4 v0NKa5HpGLVqGbKs6sam1E+jbRGJoCSaO9VNzhu2svIsqGRoqcceEZ5wII1AqN9QUsRYer MNBACcAW4CCssQTSYFRrfmfDcDlcd+Ju4bjkmg8Jtf2UvK9Ehgg/TBZNGxOokg== 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=cde0e8998d182521f686f021c571b86c2fec1305 commit cde0e8998d182521f686f021c571b86c2fec1305 Author: Kai Knoblich AuthorDate: 2022-02-28 11:42:40 +0000 Commit: Kai Knoblich CommitDate: 2022-02-28 11:42:40 +0000 textproc/py-docstring-parser: New port This package makes the parsing of Python docstrings easier. Currently supported docstrings are: * Epydoc docstrings. * Google * Numpydoc-style * ReST WWW: https://github.com/rr-/docstring_parser --- textproc/Makefile | 1 + textproc/py-docstring-parser/Makefile | 26 ++++++++++++++++++++++++++ textproc/py-docstring-parser/distinfo | 3 +++ textproc/py-docstring-parser/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 9b6d6815c70b..b502ac5c204f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1289,6 +1289,7 @@ SUBDIR += py-dbfread SUBDIR += py-diff-match-patch SUBDIR += py-docrepr + SUBDIR += py-docstring-parser SUBDIR += py-docutils SUBDIR += py-docx2txt SUBDIR += py-dominate diff --git a/textproc/py-docstring-parser/Makefile b/textproc/py-docstring-parser/Makefile new file mode 100644 index 000000000000..ab8f65b4617a --- /dev/null +++ b/textproc/py-docstring-parser/Makefile @@ -0,0 +1,26 @@ +PORTNAME= docstring-parser +DISTVERSION= 0.13 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= docstring_parser-${DISTVERSION} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Parse Python docstrings in ReST, Google and Numpydoc format + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist distutils + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs + +.include diff --git a/textproc/py-docstring-parser/distinfo b/textproc/py-docstring-parser/distinfo new file mode 100644 index 000000000000..fc7f6847c192 --- /dev/null +++ b/textproc/py-docstring-parser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645879557 +SHA256 (docstring_parser-0.13.tar.gz) = 66dd7eac7232202bf220fd98a5f11491863c01f958a75fdd535c7eccac9ced78 +SIZE (docstring_parser-0.13.tar.gz) = 23223 diff --git a/textproc/py-docstring-parser/pkg-descr b/textproc/py-docstring-parser/pkg-descr new file mode 100644 index 000000000000..788f649f2fd0 --- /dev/null +++ b/textproc/py-docstring-parser/pkg-descr @@ -0,0 +1,10 @@ +This package makes the parsing of Python docstrings easier. + +Currently supported docstrings are: + +* Epydoc docstrings. +* Google +* Numpydoc-style +* ReST + +WWW: https://github.com/rr-/docstring_parser