git: 7809a6883145 - main - textproc/py-tomllint: Update to 0.3.6
Nicola Vitale <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=7809a688314562fe931f061ce56ef7f8b2cf2834 commit 7809a688314562fe931f061ce56ef7f8b2cf2834 Author: Nicola Vitale <[email protected]> AuthorDate: 2026-08-14 15:51:46 +0000 Commit: Nicola Vitale <[email protected]> CommitDate: 2026-08-14 15:55:35 +0000 textproc/py-tomllint: Update to 0.3.6 - Add a post-patch target to fix the license key in pyproject.toml file. This is required because we are using an old version of setuptools. Otherwise the port fails with the error: configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] DESCRIPTION: `Project license <https://www.python.org/dev/peps/pep-0621/#license>`_. GIVEN VALUE: "MIT-0" Reported by: portscout! --- textproc/py-tomllint/Makefile | 10 ++++++++-- textproc/py-tomllint/distinfo | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/textproc/py-tomllint/Makefile b/textproc/py-tomllint/Makefile index 9942f9da8cbf..6684606c91eb 100644 --- a/textproc/py-tomllint/Makefile +++ b/textproc/py-tomllint/Makefile @@ -1,5 +1,5 @@ PORTNAME= tomllint -DISTVERSION= 0.3.3 +DISTVERSION= 0.3.6 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -17,10 +17,16 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0_3:devel/py-setuptools@$ USES= python USE_PYTHON= autoplist pep517 pytest -# tests: 16 passed +# tests: 18 passed TEST_ENV= PYTHONIOENCODING=utf-8 \ PYTHONPATH="${STAGEDIR}${PYTHON_SITELIBDIR}" NO_ARCH= yes +post-patch: + ${REINPLACE_CMD} -E \ + -e 's/^(license = )"([^"]+)"/\1{ text = "\2" }/1' \ + -e '/^license-files/d' \ + ${WRKSRC}/pyproject.toml + .include <bsd.port.mk> diff --git a/textproc/py-tomllint/distinfo b/textproc/py-tomllint/distinfo index 3f65722bee6c..6823272a5704 100644 --- a/textproc/py-tomllint/distinfo +++ b/textproc/py-tomllint/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1781769758 -SHA256 (tomllint-0.3.3.tar.gz) = b9b53d4c9824f47c24fbd12cc693cf4c66a48c2c77bcccc6f1e1766773966e51 -SIZE (tomllint-0.3.3.tar.gz) = 8366 +TIMESTAMP = 1786721017 +SHA256 (tomllint-0.3.6.tar.gz) = 7ed5d87862ba133d72a6b9590fe85445d24008c13629e71f05fbbba8693c786b +SIZE (tomllint-0.3.6.tar.gz) = 6763