[Bug 270549] devel/py-poetry-core: Does not install py files since switching to pep517

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Mar 2023 18:43:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270549

            Bug ID: 270549
           Summary: devel/py-poetry-core: Does not install py files since
                    switching to pep517
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: rhurlin@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

If I try to update textproc/py-rich, I get


===>  Building for py39-rich-13.3.3_1
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line
321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File
"/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py",
line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry.core.masonry.api'

ERROR Backend 'poetry.core.masonry.api' is not available.


textproc/py-rich seems to expect the module 'poetry.core.masonry.api' belonging
to devel/py-poetry-core(?), but this port does not install .py files anymore.
This happens since the change from distutils to pep517 ...


BTW, there are newer versions of py-poetry-core at Github[1].

[1] https://github.com/python-poetry/poetry-core/releases/tag/1.5.2

-- 
You are receiving this mail because:
You are the assignee for the bug.