Bug 284696 - textproc/py-furo: should depend on devel/py-typing-extensions
Summary: textproc/py-furo: should depend on devel/py-typing-extensions
Status: Closed DUPLICATE of bug 284702
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-09 22:38 UTC by Nicholas Taylor
Modified: 2025-02-10 08:04 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Patch to add devel/py-typing-extensions dependency (1.23 KB, patch)
2025-02-09 22:38 UTC, Nicholas Taylor
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Taylor 2025-02-09 22:38:07 UTC
Created attachment 257367 [details]
Patch to add devel/py-typing-extensions dependency

I found devel/py-breathe failed to build in poudriere.  The logs indicated that it was unable to import furo, because typing_extensions wasn't available.

furo is provided by textproc/py-furo; typing_extensions is provided by devel/py-typing-extensions.  Oddly textproc/py-furo built just fine: great are the mysteries of Python.

The attached patch adds devel/py-typing-extensions to the RUN_DEPENDS for textproc/py-furo.  devel/py-breathe now builds for me and seems to work.
Comment 1 Derek Schrock 2025-02-10 03:46:26 UTC
I believe www/py-beautifulsoup is the real issue here.


devel/py-python-gitlab is another port that fails.

https://pkg-status.freebsd.org/beefy16/data/134amd64-default/3bdb37a8f72e/logs/py311-python-gitlab-5.6.0.log

Making the sphinx-build more verbose:


(cd /wrkdirs/usr/ports/devel/py-python-gitlab/work-py311/python_gitlab-5.6.0 && sphinx-build -j auto -n -W --keep-going -b html docs build/sphinx/html)
Running Sphinx v5.3.0
making output directory... done
,,,,

File "/usr/local/lib/python3.11/site-packages/furo/__init__.py", line 24, in <module>
    from .navigation import get_navigation_tree
  File "/usr/local/lib/python3.11/site-packages/furo/navigation.py", line 5, in <module>
    from bs4 import BeautifulSoup, Tag
  File "/usr/local/lib/python3.11/site-packages/bs4/__init__.py", line 64, in <module>
    from .builder import (
  File "/usr/local/lib/python3.11/site-packages/bs4/builder/__init__.py", line 24, in <module>
    from bs4.element import (
  File "/usr/local/lib/python3.11/site-packages/bs4/element.py", line 9, in <module>
    from bs4.css import CSS
  File "/usr/local/lib/python3.11/site-packages/bs4/css.py", line 27, in <module>
    from bs4._typing import _NamespaceMapping
  File "/usr/local/lib/python3.11/site-packages/bs4/_typing.py", line 16, in <module>
    from typing_extensions import (
ModuleNotFoundError: No module named 'typing_extensions'


bs4/_typing.py Is new to bs4 4.13.

So is the depends for typing-extensions

https://git.launchpad.net/beautifulsoup/tree/pyproject.toml?h=4.13#n32
Comment 2 Derek Schrock 2025-02-10 04:08:05 UTC
Wen, see comment 1.  Does this sound correct?
Comment 3 Nicholas Taylor 2025-02-10 07:54:27 UTC
On closer inspection of my logs I agree with Derek and the additional dependency should go in www/py-beautifulsoup, not textproc/py-furo.
Comment 4 Nicholas Taylor 2025-02-10 08:04:48 UTC
... and bug 284702 diagnosed this correctly and has been committed, fixing the issue.

*** This bug has been marked as a duplicate of bug 284702 ***