diff options
| author | Kai Knoblich <kai@FreeBSD.org> | 2022-02-28 11:42:40 +0000 |
|---|---|---|
| committer | Kai Knoblich <kai@FreeBSD.org> | 2022-02-28 11:42:40 +0000 |
| commit | cde0e8998d182521f686f021c571b86c2fec1305 (patch) | |
| tree | 09b09e060271204e23a40d498d0b6a92836b266b | |
| parent | 3661d900d7aaf873db6c689400cf13010966cfe4 (diff) | |
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
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-docstring-parser/Makefile | 26 | ||||
| -rw-r--r-- | textproc/py-docstring-parser/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-docstring-parser/pkg-descr | 10 |
4 files changed, 40 insertions, 0 deletions
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 <bsd.port.mk> 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 |
