Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2022 21:05:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 267040] devel/py-nbformat and devel/py-black incorrectly install files belonging to the test infrastructure
Message-ID:  <bug-267040-21822-GH5XTkFPvO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267040-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267040-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267040

Kai Knoblich <kai@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kai@FreeBSD.org

--- Comment #5 from Kai Knoblich <kai@FreeBSD.org> ---
Created attachment 237489
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237489&action=
=3Dedit
py-black-fix-packaging-issues.patch

The current version of devel/py-black is still broken as it has packaging
issues. The games/anki port, which requires devel/py-black for build, also
fails to build due this regression.

For instance if one tries to do a

> $ python3.9 -m black
> /usr/local/bin/python3.9: No module named black

or even try to run the script "black"

> $ black
> Traceback (most recent call last):
>   File "/usr/local/bin/black", line 33, in <module>
>     sys.exit(load_entry_point('black=3D=3D22.10.0', 'console_scripts', 'b=
lack')())
>   File "/usr/local/bin/black", line 25, in importlib_load_entry_point
>     return next(matches).load()
>   File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load
>     module =3D import_module(match.group('module'))
>   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in > i=
mport_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_unloc=
ked
> ModuleNotFoundError: No module named 'black'

Attached is a patch that should remedy the packaging issues. (At least
games/anki builds fine so far and I haven't had the time to do a bulk run
against all consumers of devel/py-black, yet).

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267040-21822-GH5XTkFPvO>