git: bb5d8e05d609 - main - textproc/py-mkdocstrings-python-legacy: Update to 0.2.5

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 22 Mar 2025 16:16:08 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb5d8e05d609b5d664f67f2d8509a4fdc166f57c

commit bb5d8e05d609b5d664f67f2d8509a4fdc166f57c
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2025-03-22 15:48:11 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2025-03-22 16:11:34 +0000

    textproc/py-mkdocstrings-python-legacy: Update to 0.2.5
    
    * Switch to GitHub for while as the sdist tarball at PyPI doesn't
      contain all required Python source files.
    
    * Support for Python 3.8 was dropped with this release, thus remove
      a now obsolete hint regarding the Python version.
    
    Changelog:
    
    https://github.com/mkdocstrings/python-legacy/releases/tag/0.2.5
---
 textproc/py-mkdocstrings-python-legacy/Makefile           | 11 ++++++-----
 textproc/py-mkdocstrings-python-legacy/distinfo           |  6 +++---
 .../files/patch-pyproject.toml                            | 15 +++++++++++++++
 3 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/textproc/py-mkdocstrings-python-legacy/Makefile b/textproc/py-mkdocstrings-python-legacy/Makefile
index fd5c91beba8b..8cde915966ea 100644
--- a/textproc/py-mkdocstrings-python-legacy/Makefile
+++ b/textproc/py-mkdocstrings-python-legacy/Makefile
@@ -1,9 +1,7 @@
 PORTNAME=	mkdocstrings-python-legacy
-DISTVERSION=	0.2.4
+DISTVERSION=	0.2.5
 CATEGORIES=	textproc python
-MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	mkdocstrings_python_legacy-${PORTVERSION}
 
 MAINTAINER=	kai@FreeBSD.org
 COMMENT=	Legacy Python handler for mkdocstrings
@@ -16,12 +14,15 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FL
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mkdocs-autorefs>=1.1:textproc/py-mkdocs-autorefs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytkdocs>=0.14:textproc/py-pytkdocs@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mkdocs-material>0:textproc/py-mkdocs-material@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mkdocstrings>0:textproc/py-mkdocstrings@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}mkdocstrings>=0.28.3:textproc/py-mkdocstrings@${PY_FLAVOR}
 # textproc/py-mkdocstrings belongs to RUN_DEPENDS as well but would cause
 # a circular dependency (via py-mkdocstrings' PYTHONLEGACY option).  It was
 # therefore # moved to TEST_DEPENDS to at least allow the test suite to run.
 
-USES=		python:3.9+ # textproc/py-mkdocs-autorefs requires Python 3.9+
+USES=		python:3.9+
+USE_GITHUB=	yes
+GH_ACCOUNT=	mkdocstrings
+GH_PROJECT=	python-legacy
 USE_PYTHON=	autoplist pep517 pytest
 
 TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
diff --git a/textproc/py-mkdocstrings-python-legacy/distinfo b/textproc/py-mkdocstrings-python-legacy/distinfo
index 08337311400a..6b6d865eb311 100644
--- a/textproc/py-mkdocstrings-python-legacy/distinfo
+++ b/textproc/py-mkdocstrings-python-legacy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1730629881
-SHA256 (mkdocstrings_python_legacy-0.2.4.tar.gz) = 36d160ac7af5a3cec764eeb66522f42a116088a41289e04372592b91e14abbbc
-SIZE (mkdocstrings_python_legacy-0.2.4.tar.gz) = 97213
+TIMESTAMP = 1742643034
+SHA256 (mkdocstrings-python-legacy-0.2.5_GH0.tar.gz) = ebd32964843859d0594eeb6cd1405ddb4d275cd9432faf0297c6bea20650564a
+SIZE (mkdocstrings-python-legacy-0.2.5_GH0.tar.gz) = 100037
diff --git a/textproc/py-mkdocstrings-python-legacy/files/patch-pyproject.toml b/textproc/py-mkdocstrings-python-legacy/files/patch-pyproject.toml
new file mode 100644
index 000000000000..976766bb46ae
--- /dev/null
+++ b/textproc/py-mkdocstrings-python-legacy/files/patch-pyproject.toml
@@ -0,0 +1,15 @@
+Re-add relevant lines that were removed with upstream commit e6f429e64b1e to be
+able to build a wheel containing the Python source files.
+
+--- pyproject.toml.orig	2025-03-22 11:37:42 UTC
++++ pyproject.toml
+@@ -50,6 +50,9 @@ getter = "scripts.get_version:get_version"
+ getter = "scripts.get_version:get_version"
+ 
+ [tool.pdm.build]
++package-dir = "src"
++editable-backend = "editables"
++includes = ["src/mkdocstrings_handlers"]
+ # Include as much as possible in the source distribution, to help redistributors.
+ excludes = ["**/.pytest_cache"]
+ source-includes = [