Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_generated_extension FAILED on tox 4 with envlist = default #70

Open
jfishe opened this issue Oct 14, 2024 · 1 comment
Open

test_generated_extension FAILED on tox 4 with envlist = default #70

jfishe opened this issue Oct 14, 2024 · 1 comment

Comments

@jfishe
Copy link

jfishe commented Oct 14, 2024

Describe your use-case

test_generated_extension fails with tox version 4, when envlist = default is present in tox.ini. It passes when envlist is empty.

I've tried without uv--i.e., with python -m venv .venv, so this is not uv specific.

putup --custom-extension pre-commit-ruff
cd pyscaffoldext-pre-commit-ruff
uvx --isolated --from='tox>4.0' tox -vvv > tox-4.21.2.txt 2>&1 # fails
uvx --isolated --from='tox<4.0' tox -vvv > tox-3.28.0.txt 2>&1 # succeeds

tox.ini contains:

[tox]
minversion = 3.24
envlist = default
isolated_build = True

Describe the solution you would like to see for your use-case

Please update the template to tox version 4 and remove envlist and isolated_build (v4 default), e.g:

[tox]
minversion = 4.0
@jfishe
Copy link
Author

jfishe commented Oct 14, 2024

This appears to be the relevant output when envlist = default is selected. It is not present when envlist is empty.

default: 1539 I create virtual environment via CPython3Posix(dest=/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:50]
default: 1539 D create folder /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/bin [virtualenv/util/path/_sync.py:12]
default: 1540 D create folder /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages [virtualenv/util/path/_sync.py:12]
default: 1540 D write /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:33]
default: 1540 D 	home = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	version_info = 3.12.7.final.0 [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	virtualenv = 20.26.6 [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	base-prefix = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	base-exec-prefix = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D 	base-executable = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin/python3.12 [virtualenv/create/pyenv_cfg.py:38]
default: 1540 D symlink /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin/python3.12 to /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/bin/python [virtualenv/util/path/_sync.py:32]
default: 1540 D create virtualenv import hook file /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:91]
default: 1541 D create /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:94]
default: 1541 D ============================== target debug ============================== [virtualenv/run/session.py:52]
default: 1541 D debug via /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/bin/python /home/jdfen/.cache/uv/archive-v0/DU_EUPJ52wyY9fKFcqev9/lib/python3.12/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:200]
default: 1541 D {
  "sys": {
    "executable": "/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/bin/python",
    "_base_executable": "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin/python3.12",
    "prefix": "/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default",
    "base_prefix": "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu",
    "real_prefix": null,
    "exec_prefix": "/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default",
    "base_exec_prefix": "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu",
    "path": [
      "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python312.zip",
      "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python3.12",
      "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python3.12/lib-dynload",
      "/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/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.12.7 (main, Oct  8 2024, 00:20:25) [Clang 18.1.8 ]",
  "makefile_filename": "/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python3.12/config-3.12-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' (frozen)>",
  "site": "<module 'site' (frozen)>",
  "datetime": "<module 'datetime' from '/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python3.12/datetime.py'>",
  "math": "<module 'math' (built-in)>",
  "json": "<module 'json' from '/home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/lib/python3.12/json/__init__.py'>"
} [virtualenv/run/session.py:53]
default: 1558 I add seed packages via FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/jdfen/.local/share/virtualenv) [virtualenv/run/session.py:57]
default: 1559 D got embed update of distribution %s from ('pip', PosixPath('/home/jdfen/.local/share/virtualenv/wheel/3.12/embed/3/pip.json')) [virtualenv/app_data/via_disk_folder.py:131]
default: 1560 D install pip from wheel /home/jdfen/.cache/uv/archive-v0/DU_EUPJ52wyY9fKFcqev9/lib/python3.12/site-packages/virtualenv/seed/wheels/embed/pip-24.2-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:49]
default: 1561 D copy directory /home/jdfen/.local/share/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.2-py3-none-any/pip to /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages/pip [virtualenv/util/path/_sync.py:40]
default: 1580 D copy /home/jdfen/.local/share/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.2-py3-none-any/pip-24.2.virtualenv to /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages/pip-24.2.virtualenv [virtualenv/util/path/_sync.py:40]
default: 1580 D copy directory /home/jdfen/.local/share/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.2-py3-none-any/pip-24.2.dist-info to /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/lib/python3.12/site-packages/pip-24.2.dist-info [virtualenv/util/path/_sync.py:40]
default: 1581 D generated console scripts pip pip3.12 pip3 pip-3.12 [virtualenv/seed/embed/via_app_data/pip_install/base.py:43]
default: 1581 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:63]
default: 1583 D write /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/default/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:33]
default: 1583 D 	home = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	version_info = 3.12.7.final.0 [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	virtualenv = 20.26.6 [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	base-prefix = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	base-exec-prefix = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu [virtualenv/create/pyenv_cfg.py:38]
default: 1583 D 	base-executable = /home/jdfen/.local/share/uv/python/cpython-3.12.7-linux-x86_64-gnu/bin/python3.12 [virtualenv/create/pyenv_cfg.py:38]
.pkg: 1587 D package .tmp/package/20/pyscaffoldext_pre_commit_ruff-0.0.post1.dev1+g3e1993e.tar.gz links to .pkg/dist/pyscaffoldext_pre_commit_ruff-0.0.post1.dev1+g3e1993e.tar.gz (/home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox) [tox/util/file_view.py:39]
Installing collected packages: distlib, tomlkit, setuptools, pyyaml, pluggy, platformdirs, packaging, nodeenv, iniconfig, identify, filelock, execnet, coverage, configupdater, colorama, chardet, cfgv, cachetools, virtualenv, setuptools-scm, pytest, pyproject-api, tox, pytest-xdist, pytest-cov, pyscaffold, pre-commit
Successfully installed cachetools-5.5.0 cfgv-3.4.0 chardet-5.2.0 colorama-0.4.6 configupdater-3.2 coverage-7.6.3 distlib-0.3.9 execnet-2.1.1 filelock-3.16.1 identify-2.6.1 iniconfig-2.0.0 nodeenv-1.9.1 packaging-24.1 platformdirs-4.3.6 pluggy-1.5.0 pre-commit-4.0.1 pyproject-api-1.8.0 pyscaffold-4.6 pytest-8.3.3 pytest-cov-5.0.0 pytest-xdist-3.6.1 pyyaml-6.0.2 setuptools-75.1.0 setuptools-scm-8.1.0 tomlkit-0.13.2 tox-4.21.2 virtualenv-20.26.6
default: 5506 I exit 0 (3.92 seconds) /home/jdfen/dev/pyscaffoldext-pre-commit-ruff> python -I -m pip install configupdater 'importlib-metadata; python_version < "3.8"' pre-commit 'pyscaffold<5.0a0,>=4.6' pytest pytest-cov pytest-xdist setuptools-scm tox virtualenv pid=106090 [tox/execute/api.py:286]
default: 5506 W install_package> python -I -m pip install --force-reinstall --no-deps /home/jdfen/dev/pyscaffoldext-pre-commit-ruff/.tox/.tmp/package/20/pyscaffoldext_pre_commit_ruff-0.0.post1.dev1+g3e1993e.tar.gz [tox/tox_env/api.py:426]
Processing ./.tox/.tmp/package/20/pyscaffoldext_pre_commit_ruff-0.0.post1.dev1+g3e1993e.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant