aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2023-08-31 05:17:47 +0000
committerKai Knoblich <kai@FreeBSD.org>2023-08-31 05:43:39 +0000
commit096daca93276d8892f6f3705db4e5b04fb864a89 (patch)
tree78fcad7e313513e132bb702d0902ee7f290c1336
parent54aad5f05fcb858926477ee9f4ba5328c695fbe8 (diff)
textproc/py-griffe: New port
Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-griffe/Makefile29
-rw-r--r--textproc/py-griffe/distinfo3
-rw-r--r--textproc/py-griffe/pkg-descr3
4 files changed, 36 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 6884daa60d2c..46a80495d365 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1370,6 +1370,7 @@
SUBDIR += py-googletrans
SUBDIR += py-grako
SUBDIR += py-grapheme
+ SUBDIR += py-griffe
SUBDIR += py-guess-language
SUBDIR += py-hashids
SUBDIR += py-hexdump
diff --git a/textproc/py-griffe/Makefile b/textproc/py-griffe/Makefile
new file mode 100644
index 000000000000..bc0ee3246d1c
--- /dev/null
+++ b/textproc/py-griffe/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= griffe
+DISTVERSION= 0.35.2
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Signatures for entire Python programs
+WWW= https://github.com/mkdocstrings/griffe
+
+LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>=0.4:devel/py-colorama@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.17.3:devel/py-jsonschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.4:devel/py-pytest-xdist@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+# These test relies on files that are not present in the sdist
+PYTEST_IGNORED_TESTS= git json_schema
+
+TEST_ARGS= -n ${MAKE_JOBS_NUMBER}
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-griffe/distinfo b/textproc/py-griffe/distinfo
new file mode 100644
index 000000000000..2089203be8c9
--- /dev/null
+++ b/textproc/py-griffe/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1693377737
+SHA256 (griffe-0.35.2.tar.gz) = 84ecfe3df17454993b8dd485201566609ac6706a2eb22e3f402da2a39f9f6b5f
+SIZE (griffe-0.35.2.tar.gz) = 120285
diff --git a/textproc/py-griffe/pkg-descr b/textproc/py-griffe/pkg-descr
new file mode 100644
index 000000000000..f50a8df07db0
--- /dev/null
+++ b/textproc/py-griffe/pkg-descr
@@ -0,0 +1,3 @@
+Signatures for entire Python programs. Extract the structure, the frame, the
+skeleton of your project, to generate API documentation or find breaking
+changes in your API.