summaryrefslogtreecommitdiff
path: root/textproc/py-mkdocstrings-python
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2024-07-13 09:21:36 +0200
committerKai Knoblich <kai@FreeBSD.org>2024-07-13 09:25:36 +0200
commitd9968fa361bc6eca7d5152e6e03efabd506bcb7c (patch)
tree2d93776c927133ca1d88fd0845fdc3d72794473f /textproc/py-mkdocstrings-python
parenttextproc/py-griffe: Update to 0.47.0 (diff)
textproc/py-mkdocstrings-python: Update to 1.10.5
* Switch to GitHub to continue using the test suite, which is currently not included with the recent sdist tarballs. This now makes it possible to run all tests, some of which were not included in the sdist. Changelog since 1.10.3: https://github.com/mkdocstrings/python/blob/1.10.5/CHANGELOG.md
Diffstat (limited to 'textproc/py-mkdocstrings-python')
-rw-r--r--textproc/py-mkdocstrings-python/Makefile17
-rw-r--r--textproc/py-mkdocstrings-python/distinfo6
2 files changed, 12 insertions, 11 deletions
diff --git a/textproc/py-mkdocstrings-python/Makefile b/textproc/py-mkdocstrings-python/Makefile
index e75e43b019c0..d18b919634a9 100644
--- a/textproc/py-mkdocstrings-python/Makefile
+++ b/textproc/py-mkdocstrings-python/Makefile
@@ -1,9 +1,7 @@
PORTNAME= mkdocstrings-python
-DISTVERSION= 1.10.3
+DISTVERSION= 1.10.5
CATEGORIES= textproc python
-MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= mkdocstrings_python-${DISTVERSION}
MAINTAINER= kai@FreeBSD.org
COMMENT= Python handler for mkdocstrings
@@ -13,18 +11,21 @@ LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}griffe>=0.44:textproc/py-griffe@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocstrings>0:textproc/py-mkdocstrings@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}griffe>=0.47:textproc/py-griffe@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocs-material>0:textproc/py-mkdocs-material@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mkdocstrings>0:textproc/py-mkdocstrings@${PY_FLAVOR}
# textproc/py-mkdocstrings belongs to RUN_DEPENDS as well but would cause
# a circular dependency (via py-mkdocstrings' PYTHON option). It was therefore
# moved to TEST_DEPENDS to at least allow the test suite to run.
USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= mkdocstrings
+GH_PROJECT= python
USE_PYTHON= autoplist pep517 pytest
-# These tests relies on files that aren't available in the sdist
-PYTEST_IGNORED_TESTS= test_render_themes test_render_docstring \
- test_rendering_object_source_without_lineno
+# 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}
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}mkdocstrings-python-legacy
diff --git a/textproc/py-mkdocstrings-python/distinfo b/textproc/py-mkdocstrings-python/distinfo
index 24b4da1bfee6..ee0e8e49ac4f 100644
--- a/textproc/py-mkdocstrings-python/distinfo
+++ b/textproc/py-mkdocstrings-python/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1718444588
-SHA256 (mkdocstrings_python-1.10.3.tar.gz) = 321cf9c732907ab2b1fedaafa28765eaa089d89320f35f7206d00ea266889d03
-SIZE (mkdocstrings_python-1.10.3.tar.gz) = 42095
+TIMESTAMP = 1720853222
+SHA256 (mkdocstrings-python-1.10.5_GH0.tar.gz) = 0c98306101822d955be745bc003c94342fb8bbcd57e5b61f11e0e119e40599ac
+SIZE (mkdocstrings-python-1.10.5_GH0.tar.gz) = 157091