Skip to content

Allow backends to be called in fresh subprocesses #2712

@stephenfin

Description

@stephenfin

Issue

I'm using pbr for a number of projects. I've observed that when using this with tox 4.x, the package fails to build with the following error message being emitted:

py311: packaging backend failed (code=error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                                                                                                                            
To avoid accidental inclusion of unwanted files or directories,                                                                                                                                                                                                                                                                                                                                                                             
setuptools will not proceed with this build.                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                            
If you are trying to create a single distribution with multiple packages                                                                                                                                                                                                                                                                                                                                                                    
on purpose, you should not rely on automatic discovery.                                                                                                                                                                                                                                                                                                                                                                                     
Instead, consider the following options:                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                            
1. set up custom discovery (`find` directive with `include` or `exclude`)                                                                                                                                                                                                                                                                                                                                                                   
2. use a `src-layout`                                                                                                                                                                                                                                                                                                                                                                                                                       
3. explicitly set `py_modules` or `packages` with a list of names                                                                                                                                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                                                                            
To find more information, look for "package discovery" on setuptools docs.), with SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                                                                                                                            
To avoid accidental inclusion of unwanted files or directories,                                                                                                                                                                                                                                                                                                                                                                             
setuptools will not proceed with this build.

... lots more below here ...

However, I'm already defining packages in my setup.cfg:

[metadata]
name = foo
description = A demo project
license = MIT License
license_file = LICENSE
author = Stephen Finucane
author_email = stephen@that.guru
python_requires = >=3.7

[files]
packages =
    foo

(Note that [files] is the correct section for pbr)

From reading the traceback, it feels like tox is not detecting that I am using pbr and is attempting to use plain-old setuptools. However, tools like build (i.e. python -m build) manage to detect pbr just fine so I don't know what's going on here.

This process also doesn't quietly die. Instead, it hangs around forever. I've seen CI failures on some packages where the build finally timed out after 3 hours. Attempting to kill the process locally with Ctrl + C fails and I need to issue a kill to the parent process.

ps aux | grep python
...
stephen+  181923  137  0.1 772888 34684 pts/6    Sl+  13:16   0:28 /tmp/test/.venv/bin/python /tmp/test/.venv/bin/tox -e py311
stephen+  181939  3.0  0.0      0     0 pts/6    Z+   13:16   0:00 [python] <defunct>
...kill 181923

Environment

Provide at least:

  • OS: Fedora 37
  • pip list of the host Python where tox is installed:
consolepip list
Package       Version
------------- -------
cachetools    5.2.0
chardet       5.1.0
colorama      0.4.6
distlib       0.3.6
filelock      3.8.2
packaging     22.0
pip           22.2.2
platformdirs  2.6.0
pluggy        1.0.0
pyproject_api 1.2.1
setuptools    62.6.0
tox           4.0.9
virtualenv    20.17.1
wheel         0.37.1

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip

Output of running tox

Provide the output of tox -rvv:

.pkg: 123 W remove tox env folder /tmp/test/.tox/.pkg [tox/tox_env/api.py:311]
py37: 127 I find interpreter for spec PythonSpec(major=3) [virtualenv/discovery/builtin.py:56]
py37: 127 D got python info of /usr/bin/python3.11 from /home/stephenfin/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.json [virtualenv/app_data/via_disk_folder.py:129]
py37: 127 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
py37: 127 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
py37: 128 D filesystem is case-sensitive [virtualenv/info.py:24]
py37: 145 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/py37, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
py37: 146 D create folder /tmp/test/.tox/py37/bin [virtualenv/util/path/_sync.py:9]
py37: 146 D create folder /tmp/test/.tox/py37/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py37: 146 D create folder /tmp/test/.tox/py37/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py37: 146 D write /tmp/test/.tox/py37/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py37: 146 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py37: 146 D symlink /usr/bin/python3.11 to /tmp/test/.tox/py37/bin/python [virtualenv/util/path/_sync.py:28]
py37: 146 D create virtualenv import hook file /tmp/test/.tox/py37/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
py37: 146 D create /tmp/test/.tox/py37/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
py37: 147 D ============================== target debug ============================== [virtualenv/run/session.py:50]
py37: 147 D debug via /tmp/test/.tox/py37/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
py37: 147 D {
  "sys": {
    "executable": "/tmp/test/.tox/py37/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/py37",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/py37",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/py37/lib64/python3.11/site-packages",
      "/tmp/test/.tox/py37/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
py37: 166 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
py37: 167 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py37: 167 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py37: 168 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py37: 168 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/py37/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
py37: 168 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/py37/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
py37: 169 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/py37/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
py37: 169 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/py37/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
py37: 169 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/py37/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
py37: 170 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/py37/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
py37: 171 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/py37/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
py37: 176 D generated console scripts wheel wheel-3.11 wheel3.11 wheel3 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py37: 196 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/py37/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
py37: 197 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/py37/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
py37: 202 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/py37/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
py37: 203 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/py37/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
py37: 203 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py37: 218 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/py37/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
py37: 219 D generated console scripts pip pip3 pip-3.11 pip3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py37: 219 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
py37: 220 D write /tmp/test/.tox/py37/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py37: 221 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py37: 221 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py37: 223 W install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt [tox/tox_env/api.py:417]
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting attrs>=19.2.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting iniconfig
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: iniconfig, pluggy, packaging, attrs, pytest
Successfully installed attrs-22.1.0 iniconfig-1.1.1 packaging-22.0 pluggy-1.0.0 pytest-7.2.0
py37: 1577 I exit 0 (1.35 seconds) /tmp/test> python -I -m pip install -r /tmp/test/test-requirements.txt pid=180662 [tox/execute/api.py:275]
.pkg: 1580 I find interpreter for spec PythonSpec(path=/tmp/test/.venv/bin/python) [virtualenv/discovery/builtin.py:56]
.pkg: 1580 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
.pkg: 1580 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
.pkg: 1581 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/.pkg, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
.pkg: 1582 D create folder /tmp/test/.tox/.pkg/bin [virtualenv/util/path/_sync.py:9]
.pkg: 1582 D create folder /tmp/test/.tox/.pkg/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
.pkg: 1582 D create folder /tmp/test/.tox/.pkg/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
.pkg: 1582 D write /tmp/test/.tox/.pkg/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
.pkg: 1582 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1582 D symlink /usr/bin/python3.11 to /tmp/test/.tox/.pkg/bin/python [virtualenv/util/path/_sync.py:28]
.pkg: 1583 D create virtualenv import hook file /tmp/test/.tox/.pkg/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
.pkg: 1583 D create /tmp/test/.tox/.pkg/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
.pkg: 1583 D ============================== target debug ============================== [virtualenv/run/session.py:50]
.pkg: 1583 D debug via /tmp/test/.tox/.pkg/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
.pkg: 1583 D {
  "sys": {
    "executable": "/tmp/test/.tox/.pkg/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/.pkg",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/.pkg",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/.pkg/lib64/python3.11/site-packages",
      "/tmp/test/.tox/.pkg/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
.pkg: 1611 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
.pkg: 1613 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
.pkg: 1613 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
.pkg: 1613 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
.pkg: 1614 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
.pkg: 1614 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
.pkg: 1615 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
.pkg: 1615 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
.pkg: 1615 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
.pkg: 1616 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
.pkg: 1617 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
.pkg: 1623 D generated console scripts wheel3 wheel wheel-3.11 wheel3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
.pkg: 1644 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
.pkg: 1645 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
.pkg: 1651 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
.pkg: 1651 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
.pkg: 1652 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
.pkg: 1666 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/.pkg/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
.pkg: 1667 D generated console scripts pip3.11 pip pip3 pip-3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
.pkg: 1667 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
.pkg: 1668 D write /tmp/test/.tox/.pkg/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
.pkg: 1668 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
.pkg: 1668 W install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel [tox/tox_env/api.py:417]
Requirement already satisfied: setuptools>=40.8.0 in ./.tox/.pkg/lib/python3.11/site-packages (65.6.3)
Requirement already satisfied: wheel in ./.tox/.pkg/lib/python3.11/site-packages (0.38.4)
.pkg: 2474 I exit 0 (0.81 seconds) /tmp/test> python -I -m pip install 'setuptools>=40.8.0' wheel pid=180688 [tox/execute/api.py:275]
.pkg: 2474 W _optional_hooks> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
Backend: run command _optional_hooks with args {}
Backend: Wrote response {'return': {'get_requires_for_build_sdist': True, 'prepare_metadata_for_build_wheel': True, 'get_requires_for_build_wheel': True, 'build_editable': True, 'get_requires_for_build_editable': True, 'prepare_metadata_for_build_editable': True}} to /tmp/pep517__optional_hooks-8dlt64az.json
.pkg: 2780 I exit None (0.31 seconds) /tmp/test> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=180699 [tox/execute/api.py:275]
.pkg: 2780 W get_requires_for_build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
Backend: Wrote response {'return': ['pbr']} to /tmp/pep517_get_requires_for_build_sdist-5j40bh4z.json
.pkg: 2786 I exit None (0.01 seconds) /tmp/test> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=180699 [tox/execute/api.py:275]
.pkg: 2786 W install_requires_for_build_sdist> python -I -m pip install pbr [tox/tox_env/api.py:417]
Collecting pbr
  Using cached pbr-5.11.0-py2.py3-none-any.whl (112 kB)
Installing collected packages: pbr
Successfully installed pbr-5.11.0
.pkg: 3304 I exit 0 (0.52 seconds) /tmp/test> python -I -m pip install pbr pid=180709 [tox/execute/api.py:275]
.pkg: 3304 W prepare_metadata_for_build_wheel> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
Backend: run command prepare_metadata_for_build_wheel with args {'metadata_directory': '/tmp/test/.tox/.pkg/.meta', 'config_settings': {'--build-option': []}}
[pbr] Generating ChangeLog
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running dist_info
creating /tmp/test/.tox/.pkg/.meta/foo.egg-info
writing pbr to /tmp/test/.tox/.pkg/.meta/foo.egg-info/pbr.json
writing /tmp/test/.tox/.pkg/.meta/foo.egg-info/PKG-INFO
writing dependency_links to /tmp/test/.tox/.pkg/.meta/foo.egg-info/dependency_links.txt
writing requirements to /tmp/test/.tox/.pkg/.meta/foo.egg-info/requires.txt
writing top-level names to /tmp/test/.tox/.pkg/.meta/foo.egg-info/top_level.txt
[pbr] Processing SOURCES.txt
writing manifest file '/tmp/test/.tox/.pkg/.meta/foo.egg-info/SOURCES.txt'
[pbr] In git context, generating filelist from git
warning: no files found matching 'AUTHORS'
warning: no files found matching 'ChangeLog'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file '/tmp/test/.tox/.pkg/.meta/foo.egg-info/SOURCES.txt'
creating '/tmp/test/.tox/.pkg/.meta/foo-0.0.1.dev3.dist-info'
Backend: Wrote response {'return': 'foo-0.0.1.dev3.dist-info'} to /tmp/pep517_prepare_metadata_for_build_wheel-52_mezca.json
.pkg: 3497 I exit None (0.19 seconds) /tmp/test> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=180699 [tox/execute/api.py:275]
.pkg: 3498 W build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Traceback (most recent call last):
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1204, in run_command
    self.set_defaults()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 340, in __call__
    self._analyse_package_layout(ignore_ext_modules)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 373, in _analyse_package_layout
    or self._analyse_flat_layout()
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 430, in _analyse_flat_layout
    return self._analyse_flat_packages() or self._analyse_flat_modules()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 436, in _analyse_flat_packages
    self._ensure_no_accidental_inclusion(top_level, "packages")
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 466, in _ensure_no_accidental_inclusion
    raise PackageDiscoveryError(cleandoc(msg))
setuptools.errors.PackageDiscoveryError: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
Backend: run command build_sdist with args {'sdist_directory': '/tmp/test/.tox/.pkg/dist', 'config_settings': None}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 417, in build_sdist
    return self._build_with_temp_dir(['sdist', '--formats', 'gztar'],
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
    self.run_setup()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 5, in <module>
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

Backend: Wrote response {'code': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.', 'exc_type': 'SystemExit', 'exc_msg': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.'} to /tmp/pep517_build_sdist-88gm_hhj.json
To find more information, look for "package discovery" on setuptools docs.
error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
.pkg: 3510 I exit None (0.01 seconds) /tmp/test> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ pid=180699 [tox/execute/api.py:275]
py37: 3511 E packaging backend failed (code=error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.), with SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Traceback (most recent call last):
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1204, in run_command
    self.set_defaults()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 340, in __call__
    self._analyse_package_layout(ignore_ext_modules)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 373, in _analyse_package_layout
    or self._analyse_flat_layout()
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 430, in _analyse_flat_layout
    return self._analyse_flat_packages() or self._analyse_flat_modules()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 436, in _analyse_flat_packages
    self._ensure_no_accidental_inclusion(top_level, "packages")
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 466, in _ensure_no_accidental_inclusion
    raise PackageDiscoveryError(cleandoc(msg))
setuptools.errors.PackageDiscoveryError: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 417, in build_sdist
    return self._build_with_temp_dir(['sdist', '--formats', 'gztar'],
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
    self.run_setup()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 5, in <module>
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
Backend: run command build_sdist with args {'sdist_directory': '/tmp/test/.tox/.pkg/dist', 'config_settings': None}
Backend: Wrote response {'code': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.', 'exc_type': 'SystemExit', 'exc_msg': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.'} to /tmp/pep517_build_sdist-88gm_hhj.json [tox/session/cmd/run/single.py:51]
py37: FAIL ✖ in 3.39 seconds
py38: 3513 I find interpreter for spec PythonSpec(major=3) [virtualenv/discovery/builtin.py:56]
py38: 3513 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
py38: 3513 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
py38: 3514 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/py38, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
py38: 3514 D create folder /tmp/test/.tox/py38/bin [virtualenv/util/path/_sync.py:9]
py38: 3514 D create folder /tmp/test/.tox/py38/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py38: 3514 D create folder /tmp/test/.tox/py38/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py38: 3514 D write /tmp/test/.tox/py38/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py38: 3514 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py38: 3514 D symlink /usr/bin/python3.11 to /tmp/test/.tox/py38/bin/python [virtualenv/util/path/_sync.py:28]
py38: 3514 D create virtualenv import hook file /tmp/test/.tox/py38/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
py38: 3515 D create /tmp/test/.tox/py38/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
py38: 3515 D ============================== target debug ============================== [virtualenv/run/session.py:50]
py38: 3515 D debug via /tmp/test/.tox/py38/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
py38: 3515 D {
  "sys": {
    "executable": "/tmp/test/.tox/py38/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/py38",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/py38",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/py38/lib64/python3.11/site-packages",
      "/tmp/test/.tox/py38/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
py38: 3538 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
py38: 3540 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py38: 3540 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py38: 3540 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py38: 3542 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/py38/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
py38: 3542 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/py38/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
py38: 3542 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/py38/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
py38: 3542 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/py38/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
py38: 3542 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/py38/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
py38: 3543 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/py38/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
py38: 3545 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/py38/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
py38: 3552 D generated console scripts wheel-3.11 wheel3.11 wheel3 wheel [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py38: 3603 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/py38/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
py38: 3605 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/py38/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
py38: 3621 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/py38/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
py38: 3621 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/py38/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
py38: 3622 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py38: 3692 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/py38/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
py38: 3695 D generated console scripts pip3 pip-3.11 pip3.11 pip [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py38: 3695 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
py38: 3696 D write /tmp/test/.tox/py38/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py38: 3696 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py38: 3696 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py38: 3698 W install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt [tox/tox_env/api.py:417]
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting attrs>=19.2.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting iniconfig
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: iniconfig, pluggy, packaging, attrs, pytest
Successfully installed attrs-22.1.0 iniconfig-1.1.1 packaging-22.0 pluggy-1.0.0 pytest-7.2.0
py38: 5232 I exit 0 (1.53 seconds) /tmp/test> python -I -m pip install -r /tmp/test/test-requirements.txt pid=180771 [tox/execute/api.py:275]
.pkg: 5233 W build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
py38: 5233 E internal error [tox/session/cmd/run/single.py:57]
Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 243, in setup
    self._setup_with_env()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 149, in _setup_with_env
    self._setup_pkg()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 172, in _setup_pkg
    self._packages = self._build_packages()
                     ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 110, in _build_packages
    packages = package_env.perform_packaging(self.conf)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 198, in perform_packaging
    sdist = self._frontend.build_sdist(sdist_directory=self.pkg_dir).sdist
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/cachetools/__init__.py", line 641, in wrapper
    v = func(*args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 386, in build_sdist
    basename, out, err = self._send(
                         ^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
py38: FAIL ✖ in 1.73 seconds
py39: 5239 I find interpreter for spec PythonSpec(major=3) [virtualenv/discovery/builtin.py:56]
py39: 5240 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
py39: 5240 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
py39: 5242 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/py39, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
py39: 5242 D create folder /tmp/test/.tox/py39/bin [virtualenv/util/path/_sync.py:9]
py39: 5243 D create folder /tmp/test/.tox/py39/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py39: 5243 D create folder /tmp/test/.tox/py39/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py39: 5243 D write /tmp/test/.tox/py39/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py39: 5243 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py39: 5243 D symlink /usr/bin/python3.11 to /tmp/test/.tox/py39/bin/python [virtualenv/util/path/_sync.py:28]
py39: 5244 D create virtualenv import hook file /tmp/test/.tox/py39/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
py39: 5244 D create /tmp/test/.tox/py39/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
py39: 5244 D ============================== target debug ============================== [virtualenv/run/session.py:50]
py39: 5244 D debug via /tmp/test/.tox/py39/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
py39: 5244 D {
  "sys": {
    "executable": "/tmp/test/.tox/py39/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/py39",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/py39",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/py39/lib64/python3.11/site-packages",
      "/tmp/test/.tox/py39/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
py39: 5270 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
py39: 5271 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py39: 5272 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py39: 5272 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py39: 5274 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/py39/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
py39: 5274 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/py39/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
py39: 5274 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/py39/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
py39: 5275 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/py39/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
py39: 5275 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/py39/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
py39: 5276 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/py39/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
py39: 5279 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/py39/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
py39: 5290 D generated console scripts wheel3 wheel wheel-3.11 wheel3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py39: 5368 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/py39/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
py39: 5372 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/py39/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
py39: 5392 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/py39/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
py39: 5393 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/py39/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
py39: 5394 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py39: 5476 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/py39/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
py39: 5480 D generated console scripts pip3.11 pip pip3 pip-3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py39: 5480 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
py39: 5482 D write /tmp/test/.tox/py39/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py39: 5482 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py39: 5482 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py39: 5484 W install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt [tox/tox_env/api.py:417]
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting attrs>=19.2.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting iniconfig
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: iniconfig, pluggy, packaging, attrs, pytest
Successfully installed attrs-22.1.0 iniconfig-1.1.1 packaging-22.0 pluggy-1.0.0 pytest-7.2.0
py39: 7015 I exit 0 (1.53 seconds) /tmp/test> python -I -m pip install -r /tmp/test/test-requirements.txt pid=180825 [tox/execute/api.py:275]
.pkg: 7016 W build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
py39: 7017 E internal error [tox/session/cmd/run/single.py:57]
Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 243, in setup
    self._setup_with_env()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 149, in _setup_with_env
    self._setup_pkg()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 172, in _setup_pkg
    self._packages = self._build_packages()
                     ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 110, in _build_packages
    packages = package_env.perform_packaging(self.conf)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 198, in perform_packaging
    sdist = self._frontend.build_sdist(sdist_directory=self.pkg_dir).sdist
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/cachetools/__init__.py", line 641, in wrapper
    v = func(*args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 386, in build_sdist
    basename, out, err = self._send(
                         ^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
py39: FAIL ✖ in 1.78 seconds
py310: 7020 I find interpreter for spec PythonSpec(major=3) [virtualenv/discovery/builtin.py:56]
py310: 7020 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
py310: 7020 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
py310: 7021 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/py310, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
py310: 7022 D create folder /tmp/test/.tox/py310/bin [virtualenv/util/path/_sync.py:9]
py310: 7022 D create folder /tmp/test/.tox/py310/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py310: 7022 D create folder /tmp/test/.tox/py310/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py310: 7022 D write /tmp/test/.tox/py310/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py310: 7022 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py310: 7022 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py310: 7023 D symlink /usr/bin/python3.11 to /tmp/test/.tox/py310/bin/python [virtualenv/util/path/_sync.py:28]
py310: 7023 D create virtualenv import hook file /tmp/test/.tox/py310/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
py310: 7023 D create /tmp/test/.tox/py310/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
py310: 7023 D ============================== target debug ============================== [virtualenv/run/session.py:50]
py310: 7023 D debug via /tmp/test/.tox/py310/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
py310: 7023 D {
  "sys": {
    "executable": "/tmp/test/.tox/py310/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/py310",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/py310",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/py310/lib64/python3.11/site-packages",
      "/tmp/test/.tox/py310/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
py310: 7046 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
py310: 7047 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py310: 7048 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py310: 7048 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py310: 7049 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/py310/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
py310: 7049 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/py310/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
py310: 7050 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/py310/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
py310: 7051 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/py310/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
py310: 7051 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/py310/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
py310: 7051 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/py310/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
py310: 7055 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/py310/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
py310: 7065 D generated console scripts wheel3.11 wheel3 wheel wheel-3.11 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py310: 7130 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/py310/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
py310: 7133 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/py310/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
py310: 7154 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/py310/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
py310: 7154 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/py310/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
py310: 7155 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py310: 7242 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/py310/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
py310: 7245 D generated console scripts pip-3.11 pip3.11 pip pip3 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py310: 7246 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
py310: 7247 D write /tmp/test/.tox/py310/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py310: 7247 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py310: 7247 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py310: 7250 W install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt [tox/tox_env/api.py:417]
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting attrs>=19.2.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting iniconfig
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: iniconfig, pluggy, packaging, attrs, pytest
Successfully installed attrs-22.1.0 iniconfig-1.1.1 packaging-22.0 pluggy-1.0.0 pytest-7.2.0
py310: 8795 I exit 0 (1.55 seconds) /tmp/test> python -I -m pip install -r /tmp/test/test-requirements.txt pid=180856 [tox/execute/api.py:275]
.pkg: 8796 W build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
py310: 8797 E internal error [tox/session/cmd/run/single.py:57]
Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 243, in setup
    self._setup_with_env()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 149, in _setup_with_env
    self._setup_pkg()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 172, in _setup_pkg
    self._packages = self._build_packages()
                     ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 110, in _build_packages
    packages = package_env.perform_packaging(self.conf)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 198, in perform_packaging
    sdist = self._frontend.build_sdist(sdist_directory=self.pkg_dir).sdist
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/cachetools/__init__.py", line 641, in wrapper
    v = func(*args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 386, in build_sdist
    basename, out, err = self._send(
                         ^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
py310: FAIL ✖ in 1.78 seconds
py311: 8800 I find interpreter for spec PythonSpec(major=3) [virtualenv/discovery/builtin.py:56]
py311: 8800 I proposed PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
py311: 8800 D accepted PythonInfo(spec=CPython3.11.0.final.0-64, system=/usr/bin/python3.11, exe=/tmp/test/.venv/bin/python, platform=linux, version='3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
py311: 8801 I create virtual environment via CPython3Posix(dest=/tmp/test/.tox/py311, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
py311: 8802 D create folder /tmp/test/.tox/py311/bin [virtualenv/util/path/_sync.py:9]
py311: 8802 D create folder /tmp/test/.tox/py311/lib/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py311: 8802 D create folder /tmp/test/.tox/py311/lib64/python3.11/site-packages [virtualenv/util/path/_sync.py:9]
py311: 8802 D write /tmp/test/.tox/py311/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py311: 8802 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py311: 8802 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py311: 8803 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py311: 8803 D symlink /usr/bin/python3.11 to /tmp/test/.tox/py311/bin/python [virtualenv/util/path/_sync.py:28]
py311: 8803 D create virtualenv import hook file /tmp/test/.tox/py311/lib/python3.11/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
py311: 8803 D create /tmp/test/.tox/py311/lib/python3.11/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
py311: 8804 D ============================== target debug ============================== [virtualenv/run/session.py:50]
py311: 8804 D debug via /tmp/test/.tox/py311/bin/python /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
py311: 8804 D {
  "sys": {
    "executable": "/tmp/test/.tox/py311/bin/python",
    "_base_executable": "/usr/bin/python3.11",
    "prefix": "/tmp/test/.tox/py311",
    "base_prefix": "/usr",
    "real_prefix": null,
    "exec_prefix": "/tmp/test/.tox/py311",
    "base_exec_prefix": "/usr",
    "path": [
      "/usr/lib64/python311.zip",
      "/usr/lib64/python3.11",
      "/usr/lib64/python3.11/lib-dynload",
      "/tmp/test/.tox/py311/lib64/python3.11/site-packages",
      "/tmp/test/.tox/py311/lib/python3.11/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "utf-8"
  },
  "version": "3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]",
  "makefile_filename": "/usr/lib64/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/usr/lib64/python3.11/datetime.py'>",
  "math": "<module 'math' from '/usr/lib64/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/usr/lib64/python3.11/json/__init__.py'>"
} [virtualenv/run/session.py:51]
py311: 8827 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/stephenfin/.local/share/virtualenv) [virtualenv/run/session.py:55]
py311: 8828 D install pip from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py311: 8829 D install setuptools from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py311: 8829 D install wheel from wheel /tmp/test/.venv/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
py311: 8830 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/test/.tox/py311/lib/python3.11/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
py311: 8831 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/test/.tox/py311/lib/python3.11/site-packages/pip [virtualenv/util/path/_sync.py:36]
py311: 8831 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/test/.tox/py311/lib/python3.11/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
py311: 8831 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/test/.tox/py311/lib/python3.11/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
py311: 8833 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/test/.tox/py311/lib/python3.11/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
py311: 8834 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/test/.tox/py311/lib/python3.11/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
py311: 8837 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/test/.tox/py311/lib/python3.11/site-packages/wheel [virtualenv/util/path/_sync.py:36]
py311: 8849 D generated console scripts wheel-3.11 wheel3.11 wheel3 wheel [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py311: 8913 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/test/.tox/py311/lib/python3.11/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
py311: 8915 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/test/.tox/py311/lib/python3.11/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
py311: 8934 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/test/.tox/py311/lib/python3.11/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
py311: 8935 D copy /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/test/.tox/py311/lib/python3.11/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
py311: 8936 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py311: 9021 D copy directory /home/stephenfin/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/test/.tox/py311/lib/python3.11/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
py311: 9024 D generated console scripts pip3 pip-3.11 pip3.11 pip [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
py311: 9024 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
py311: 9026 D write /tmp/test/.tox/py311/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
py311: 9026 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	version_info = 3.11.0.final.0 [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
py311: 9026 D 	base-executable = /usr/bin/python3.11 [virtualenv/create/pyenv_cfg.py:34]
py311: 9028 W install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt [tox/tox_env/api.py:417]
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting attrs>=19.2.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting iniconfig
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: iniconfig, pluggy, packaging, attrs, pytest
Successfully installed attrs-22.1.0 iniconfig-1.1.1 packaging-22.0 pluggy-1.0.0 pytest-7.2.0
py311: 10643 I exit 0 (1.61 seconds) /tmp/test> python -I -m pip install -r /tmp/test/test-requirements.txt pid=180884 [tox/execute/api.py:275]
.pkg: 10644 W build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
py311: 10645 E internal error [tox/session/cmd/run/single.py:57]
Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 243, in setup
    self._setup_with_env()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 149, in _setup_with_env
    self._setup_pkg()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 172, in _setup_pkg
    self._packages = self._build_packages()
                     ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 110, in _build_packages
    packages = package_env.perform_packaging(self.conf)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 198, in perform_packaging
    sdist = self._frontend.build_sdist(sdist_directory=self.pkg_dir).sdist
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/cachetools/__init__.py", line 641, in wrapper
    v = func(*args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 386, in build_sdist
    basename, out, err = self._send(
                         ^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
.pkg: 10646 W _exit> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ [tox/tox_env/api.py:417]
.pkg: 10647 W error while trying to close <_io.BufferedWriter name=6> with BrokenPipeError(32, 'Broken pipe') [tox/execute/local_sub_process/__init__.py:239]
ROOT: 10647 E Internal Error [tox/session/cmd/run/common.py:321]
Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/common.py", line 296, in _queue_and_wait
    result = future.result()
             ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib64/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/common.py", line 273, in _run
    return run_one(tox_env, options.parsed.no_test, suspend_display=live is False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 34, in run_one
    skipped, code, outcomes = _evaluate(tox_env, no_test)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 60, in _evaluate
    tox_env.teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 258, in teardown
    self._teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 88, in _teardown
    self._call_pkg_envs("teardown_env", self.conf)
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 122, in _call_pkg_envs
    getattr(package_env, method_name)(*args)
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 103, in teardown_env
    self._teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 164, in _teardown
    self._frontend._send("_exit")  # try first on amicable shutdown
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Exception in thread tox-interrupt:
Traceback (most recent call last):
  File "/usr/lib64/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/common.py", line 296, in _queue_and_wait
    result = future.result()
             ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib64/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/common.py", line 273, in _run
    return run_one(tox_env, options.parsed.no_test, suspend_display=live is False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 34, in run_one
    skipped, code, outcomes = _evaluate(tox_env, no_test)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 60, in _evaluate
    tox_env.teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/api.py", line 258, in teardown
    self._teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 88, in _teardown
    self._call_pkg_envs("teardown_env", self.conf)
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/runner.py", line 122, in _call_pkg_envs
    getattr(package_env, method_name)(*args)
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 103, in teardown_env
    self._teardown()
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/package.py", line 47, in _func
    return meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 164, in _teardown
    self._frontend._send("_exit")  # try first on amicable shutdown
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 333, in _send
    return super()._send(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_frontend.py", line 489, in _send
    with self._send_msg(cmd, result_file, msg) as status:
  File "/usr/lib64/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 352, in _send_msg
    execute_status.write_stdin(f"{msg}{os.linesep}")
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/execute/local_sub_process/__init__.py", line 115, in write_stdin
    stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/tmp/test/.venv/bin/tox", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/run.py", line 19, in run
    result = main(sys.argv[1:] if args is None else args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/run.py", line 45, in main
    result = handler(state)
             ^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/legacy.py", line 107, in legacy
    return run_sequential(state)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/sequential.py", line 22, in run_sequential
    return execute(state, max_workers=1, has_spinner=False, live=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/tox/session/cmd/run/common.py", line 226, in execute
    ordered_results.append(name_to_run[env])
                           ~~~~~~~~~~~^^^^^
KeyError: 'py311'

Minimal example

You can find a minimal reproducer here.

The full output given when running tox -e py311 is:

❯ tox -e py311
py311: install_deps> python -I -m pip install -r /tmp/test/test-requirements.txt
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg: _optional_hooks> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: install_requires_for_build_sdist> python -I -m pip install pbr
.pkg: prepare_metadata_for_build_wheel> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: build_sdist> python /tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py311: packaging backend failed (code=error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.), with SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Traceback (most recent call last):
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1204, in run_command
    self.set_defaults()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 340, in __call__
    self._analyse_package_layout(ignore_ext_modules)
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 373, in _analyse_package_layout
    or self._analyse_flat_layout()
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 430, in _analyse_flat_layout
    return self._analyse_flat_packages() or self._analyse_flat_modules()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 436, in _analyse_flat_packages
    self._ensure_no_accidental_inclusion(top_level, "packages")
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/discovery.py", line 466, in _ensure_no_accidental_inclusion
    raise PackageDiscoveryError(cleandoc(msg))
setuptools.errors.PackageDiscoveryError: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 417, in build_sdist
    return self._build_with_temp_dir(['sdist', '--formats', 'gztar'],
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
    self.run_setup()
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 5, in <module>
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/tmp/test/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
error: Multiple top-level packages discovered in a flat-layout: ['man', 'foo'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
Backend: run command build_sdist with args {'sdist_directory': '/tmp/test/.tox/.pkg/dist', 'config_settings': None}
Backend: Wrote response {'code': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.', 'exc_type': 'SystemExit', 'exc_msg': 'error: Multiple top-level packages discovered in a flat-layout: [\'man\', \'foo\'].\n\nTo avoid accidental inclusion of unwanted files or directories,\nsetuptools will not proceed with this build.\n\nIf you are trying to create a single distribution with multiple packages\non purpose, you should not rely on automatic discovery.\nInstead, consider the following options:\n\n1. set up custom discovery (`find` directive with `include` or `exclude`)\n2. use a `src-layout`\n3. explicitly set `py_modules` or `packages` with a list of names\n\nTo find more information, look for "package discovery" on setuptools docs.'} to /tmp/pep517_build_sdist-eq__ngmi.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:newsomething does not exist yet, but shouldhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions