git: 134fc3101820 - main - textproc/py-pytkdocs: Update to 0.16.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Sep 2024 13:55:44 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=134fc31018209267e3b8bdef69c88b7cf94dd660 commit 134fc31018209267e3b8bdef69c88b7cf94dd660 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2024-09-27 13:51:28 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2024-09-27 13:51:28 +0000 textproc/py-pytkdocs: Update to 0.16.2 * Switch to the PEP517 build framework and remove the no longer required workarounds for it. * Simplify the Makefile even further by using USE_PYTHON=pytest. Changelog: https://github.com/mkdocstrings/pytkdocs/releases/tag/0.16.2 --- textproc/py-pytkdocs/Makefile | 14 +++------- textproc/py-pytkdocs/distinfo | 6 ++--- textproc/py-pytkdocs/files/patch-setup.py | 44 ------------------------------- 3 files changed, 7 insertions(+), 57 deletions(-) diff --git a/textproc/py-pytkdocs/Makefile b/textproc/py-pytkdocs/Makefile index 26d7108d870b..28123ca9cb22 100644 --- a/textproc/py-pytkdocs/Makefile +++ b/textproc/py-pytkdocs/Makefile @@ -1,5 +1,5 @@ PORTNAME= pytkdocs -DISTVERSION= 0.16.1 +DISTVERSION= 0.16.2 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,13 +11,13 @@ WWW= https://github.com/mkdocstrings/pytkdocs LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}marshmallow>0:devel/py-marshmallow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic>0:devel/py-pydantic@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 pytest TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} @@ -35,10 +35,4 @@ NUMPYSTYLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docstring-parser>=0.7:textproc/py RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}astunparse>=1.6:devel/py-astunparse@${PY_FLAVOR} .endif -post-patch: - @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/setup.py - -do-test: - @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs - .include <bsd.port.post.mk> diff --git a/textproc/py-pytkdocs/distinfo b/textproc/py-pytkdocs/distinfo index 4992c68d9ed1..e2049c1b937d 100644 --- a/textproc/py-pytkdocs/distinfo +++ b/textproc/py-pytkdocs/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1647897079 -SHA256 (pytkdocs-0.16.1.tar.gz) = e2ccf6dfe9dbbceb09818673f040f1a7c32ed0bffb2d709b06be6453c4026045 -SIZE (pytkdocs-0.16.1.tar.gz) = 55806 +TIMESTAMP = 1727017685 +SHA256 (pytkdocs-0.16.2.tar.gz) = e75538a34932996b8803fbad4e4f6851fc0e9fd9aea86fc6602d6582c12098f3 +SIZE (pytkdocs-0.16.2.tar.gz) = 82673 diff --git a/textproc/py-pytkdocs/files/patch-setup.py b/textproc/py-pytkdocs/files/patch-setup.py deleted file mode 100644 index 5da3bac57aaa..000000000000 --- a/textproc/py-pytkdocs/files/patch-setup.py +++ /dev/null @@ -1,44 +0,0 @@ ---- setup.py.orig 2022-02-28 05:25:48 UTC -+++ setup.py -@@ -0,0 +1,41 @@ -+# Generated via "pdm export -f setuppy" (run "pdm lock" beforehand) -+# -+# -*- coding: utf-8 -*- -+from setuptools import setup -+ -+INSTALL_REQUIRES = [ -+ "astunparse>=1.6; python_version < '3.9'", -+ "cached-property>=1.5; python_version < '3.8'", -+ "typing-extensions>=3.7; python_version < '3.8'", -+] -+EXTRAS_REQUIRE = { -+ 'numpy-style': [ -+ 'docstring_parser>=0.7', -+ ], -+} -+ENTRY_POINTS = { -+ 'console_scripts': [ -+ 'pytkdocs = pytkdocs.cli:main', -+ ], -+} -+ -+setup_kwargs = { -+ 'name': 'pytkdocs', -+ 'version': '%%DISTVERSION%%', -+ 'description': 'Load Python objects documentation.', -+ 'author': '', -+ 'author_email': 'Timothée Mazzucotelli <pawamoy@pm.me>', -+ 'packages': [ -+ 'pytkdocs', -+ 'pytkdocs.parsers', -+ 'pytkdocs.parsers.docstrings', -+ ], -+ 'package_dir': {'': 'src'}, -+ 'package_data': {'': ['*']}, -+ 'install_requires': INSTALL_REQUIRES, -+ 'extras_require': EXTRAS_REQUIRE, -+ 'python_requires': '>=3.7', -+ 'entry_points': ENTRY_POINTS, -+} -+ -+setup(**setup_kwargs)