Created attachment 238254 [details] patch to update textproc/py-sphinxcontrib-towncriere to 0.3.1a3
Current version in tree seems to break sphinx ... Running Sphinx v4.5.0 pip version: 22.2 pip release: 22.2.2 Extension error: Could not import extension sphinxcontrib.towncrier (exception: cannot import name 'load_config_from_file' from 'towncrier._settings' (/usr/local/lib/python3.9/site-packages/towncrier/_settings/__init__.py)) *** Error code 1 How to reproduce: build devel/py-pip with docs
ping ... It is a critical patch !
(In reply to Nicola Vitale from comment #0) The patch is incomplete. Please commit with conditional RUN_DEPENDS on py-importlib-metadata. See [1]. [1] https://github.com/sphinx-contrib/sphinxcontrib-towncrier/blob/v0.3.1a3/setup.cfg#L56 (In reply to Daniel Engberg from comment #1) It was OK before py-towncrier 20.8.0 update. See [2]. [2] https://github.com/sphinx-contrib/sphinxcontrib-towncrier/commit/4fac58fc2e49adf1a64a03d2ac8fd5410359b085
Created attachment 238300 [details] This patch adds devel/py-importlib-metadata to run dependecies I have added devel/py-importlib-metadata to RUN_DEPENDS when Python ver. < 3.8. Note, however, that devel/phinx adds it as its run-dependency for all versions of Python < 3.1: https://cgit.freebsd.org/ports/tree/textproc/py-sphinx/Makefile#n51 https://github.com/sphinx-doc/sphinx/blob/master/pyproject.toml#L73 So maybe that's a surplus...
(In reply to Nicola Vitale from comment #4) "phinx adds it as its run-dependency for all versions of Python < *3.10*" obviously...
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f955d3a346f58cfba00293b582c289ece58566c commit 4f955d3a346f58cfba00293b582c289ece58566c Author: Nicola Vitale <nivit@FreeBSD.org> AuthorDate: 2022-11-25 16:56:27 +0000 Commit: Nicola Vitale <nivit@FreeBSD.org> CommitDate: 2022-11-25 16:56:27 +0000 textproc/py-sphinxcontrib-towncrier: Update to 0.3.1a3 PR: 267927 Reported by: nivit Approved by: sunpoet (maintainer) textproc/py-sphinxcontrib-towncrier/Makefile | 10 ++++++++-- textproc/py-sphinxcontrib-towncrier/distinfo | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-)
(In reply to Po-Chuan Hsieh from comment #3) Committed, thank you for the feedback!