[Bug 267040] devel/py-nbformat and devel/py-black incorrectly install files belonging to the test infrastructure

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 Oct 2022 08:46:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267040

            Bug ID: 267040
           Summary: devel/py-nbformat and devel/py-black incorrectly
                    install files belonging to the test infrastructure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
                CC: python@FreeBSD.org, sunpoet@FreeBSD.org
                CC: python@FreeBSD.org, sunpoet@FreeBSD.org

Scenario:
- FreeBSD 12.3 latest patches
- latest ports
- upgrading using portmaster
- graphics/qgis is installed; this needs devel/py-nbformat which is also
installed
- devel/py-black is installed

Result:
- Upgrading py-black from 22.8.0 to 22.10.0 fails with a conflict during
install:

Installing py39-black-22.10.0...
pkg-static: py39-black-22.10.0 conflicts with py39-nbformat-5.6.1_1 (installs
files into the same place).  Problematic file:
/usr/local/lib/python3.9/site-packages/tests/__init__.py
*** Error code 1

Expected result:
- The install should succeed without conflicting files.

Analysis and suggested fix:
- It seems that devel/py-nbformat and devel/py-black both install files from
the generic python test infrastructure.
- Most likely the staging part for python ports must be changed to exclude such
files.

See also bug 266944.

-- Martin

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