From e1a95079cf732ba48cb4a05c4b91e6815ec77c01 Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Sat, 22 Mar 2025 16:43:40 +0100 Subject: textproc/py-mkdocstrings: Update to 0.29.0 * For some time now, the test suite has been available in the current sdist tarballs, so switch to PyPI, which is preferred for Python ports, and remove related parts that are no longer needed. Changelog since 0.27.0: https://github.com/mkdocstrings/mkdocstrings/blob/0.29.0/CHANGELOG.md MFH: No (not compatible with NetBox 4.1) --- textproc/py-mkdocstrings/Makefile | 24 ++++++++++++------------ textproc/py-mkdocstrings/distinfo | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'textproc/py-mkdocstrings') diff --git a/textproc/py-mkdocstrings/Makefile b/textproc/py-mkdocstrings/Makefile index 9becf75b96d5..56c8316cdaa9 100644 --- a/textproc/py-mkdocstrings/Makefile +++ b/textproc/py-mkdocstrings/Makefile @@ -1,6 +1,7 @@ PORTNAME= mkdocstrings -DISTVERSION= 0.27.0 +DISTVERSION= 0.29.0 CATEGORIES= textproc python +MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kai@FreeBSD.org @@ -11,20 +12,18 @@ LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.1:devel/py-Jinja2@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.1:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markdown>=3.6:textproc/py-markdown@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markupsafe>=1.1:textproc/py-markupsafe@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}mkdocs>=1.4:textproc/py-mkdocs@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}mkdocs-autorefs>=1.2:textproc/py-mkdocs-autorefs@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}platformdirs>=2.2.0:devel/py-platformdirs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs>=1.6:textproc/py-mkdocs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs-autorefs>=1.4:textproc/py-mkdocs-autorefs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs-get-deps>=0.2:textproc/py-mkdocs-get-deps@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=6.3:textproc/py-pymdown-extensions@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocs-material>0:textproc/py-mkdocs-material@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mkdocstrings-python>0:textproc/py-mkdocstrings-python@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} USES= python:3.9+ -USE_GITHUB= yes USE_PYTHON= autoplist pep517 pytest # Skip "test_sphinx_load_mkdocstrings_inventory_file" as it requires # mkdocs-gen-files (not in Ports tree, yet). @@ -33,10 +32,6 @@ USE_PYTHON= autoplist pep517 pytest # The test_no_double_toc tests, on the other hand, require py-markdown >= 3.6. PYTEST_IGNORED_TESTS= test_sphinx_load_mkdocstrings_inventory_file test_plugin test_no_double_toc -# Required otherwise the build process tries to get the current version via git -MAKE_ENV= PDM_BUILD_SCM_VERSION=${DISTVERSION} -TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} - NO_ARCH= yes OPTIONS_DEFINE= CRYSTAL @@ -50,7 +45,7 @@ PYTHON_DESC= Python language handler CRYSTAL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocstrings-crystal>=0.3.4:textproc/py-mkdocstrings-crystal@${PY_FLAVOR} PYTHONLEGACY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocstrings-python-legacy>=0.2.1:textproc/py-mkdocstrings-python-legacy@${PY_FLAVOR} -PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocstrings-python>=0.5.2:textproc/py-mkdocstrings-python@${PY_FLAVOR} +PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocstrings-python>=0.16.2:textproc/py-mkdocstrings-python@${PY_FLAVOR} .include @@ -59,4 +54,9 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.6:devel/py-importlib- ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.1:devel/py-typing-extensions@${PY_FLAVOR} .endif +# Prevent packaging of the Mypy cache folder +post-extract: + @${RM} -r ${WRKSRC}/src/mkdocstrings/.mypy_cache \ + ${WRKSRC}/src/mkdocstrings/handlers/.mypy_cache + .include diff --git a/textproc/py-mkdocstrings/distinfo b/textproc/py-mkdocstrings/distinfo index bd2f5148c920..d9718b4db093 100644 --- a/textproc/py-mkdocstrings/distinfo +++ b/textproc/py-mkdocstrings/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1732221462 -SHA256 (mkdocstrings-mkdocstrings-0.27.0_GH0.tar.gz) = b0092b9fde1161df831775c686d3bd20c950e0a7025dbad7b16a88abd29a91bf -SIZE (mkdocstrings-mkdocstrings-0.27.0_GH0.tar.gz) = 93313 +TIMESTAMP = 1742640365 +SHA256 (mkdocstrings-0.29.0.tar.gz) = 3657be1384543ce0ee82112c3e521bbf48e41303aa0c229b9ffcccba057d922e +SIZE (mkdocstrings-0.29.0.tar.gz) = 1212185 -- cgit v1.2.3