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:
@@ -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
|
||||
|
||||
26
textproc/py-docstring-parser/Makefile
Normal file
26
textproc/py-docstring-parser/Makefile
Normal 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>
|
||||
3
textproc/py-docstring-parser/distinfo
Normal file
3
textproc/py-docstring-parser/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1645879557
|
||||
SHA256 (docstring_parser-0.13.tar.gz) = 66dd7eac7232202bf220fd98a5f11491863c01f958a75fdd535c7eccac9ced78
|
||||
SIZE (docstring_parser-0.13.tar.gz) = 23223
|
||||
10
textproc/py-docstring-parser/pkg-descr
Normal file
10
textproc/py-docstring-parser/pkg-descr
Normal 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
|
||||
Reference in New Issue
Block a user