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
This commit is contained in:
Kai Knoblich
2022-02-28 12:42:40 +01:00
parent 3661d900d7
commit cde0e8998d
4 changed files with 40 additions and 0 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1645879557
SHA256 (docstring_parser-0.13.tar.gz) = 66dd7eac7232202bf220fd98a5f11491863c01f958a75fdd535c7eccac9ced78
SIZE (docstring_parser-0.13.tar.gz) = 23223

View File

@@ -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