Skip to content

UvVenvLockRunner doesn't call MANAGER.tox_on_install #187

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

Open
de-odex opened this issue Mar 14, 2025 · 3 comments
Open

UvVenvLockRunner doesn't call MANAGER.tox_on_install #187

de-odex opened this issue Mar 14, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@de-odex
Copy link

de-odex commented Mar 14, 2025

Issue

Related tox-dev/tox-gh#175
UvVenvLockRunner doesn't call MANAGER.tox_on_install, leading to plugins with tox_on_install not being run properly

Environment

Provide at least:

  • OS: macos, ubuntu, windows GitHub Action runners
Output of pip list of the host Python, where tox is installed

(not pip list but the closest thing I can provide...)

Prepared 14 packages in 221ms
Installed 14 packages in 6ms
 + cachetools==5.5.2
 + chardet==5.2.0
 + colorama==0.4.6
 + distlib==0.3.9
 + filelock==3.18.0
 + packaging==24.2
 + platformdirs==4.3.6
 + pluggy==1.5.0
 + pyproject-api==1.9.0
 + tox==4.24.2
 + tox-gh==1.5.0
 + tox-uv==1.25.0
 + uv==0.6.6
 + virtualenv==20.29.3
Installed 1 executable: tox



py-test: venv> /home/runner/.local/share/uv/tools/tox/bin/uv venv -p /home/runner/.local/share/uv/tools/tox/bin/python --allow-existing --python-preference system /home/runner/work/whoosh-novo/whoosh-novo/.tox/py-test
py-test: uv-sync> uv sync --locked --python-preference system -p /home/runner/.local/share/uv/tools/tox/bin/python
py-test: freeze> /home/runner/.local/share/uv/tools/tox/bin/uv --color never pip freeze
py-test: astor==0.8.1,cached-property==2.0.1,cfgv==3.4.0,distlib==0.3.9,filelock==3.18.0,flynt==1.0.2,identify==2.6.9,iniconfig==2.0.0,nodeenv==1.9.1,nose==1.3.7,packaging==24.2,platformdirs==4.3.6,pluggy==1.5.0,pre-commit==4.1.0,pytest==8.3.5,pytest-sugar==1.0.0,pyyaml==6.0.2,ruff==0.11.0,termcolor==2.5.0,virtualenv==20.29.3,-e file:///home/runner/work/whoosh-novo/whoosh-novo

Output of running tox

Output of tox -rvv

(not sure how to do this for a GitHub Action)

Minimal example

Set up a basic tox project and run it with this GitHub Action

@de-odex de-odex added the bug Something isn't working label Mar 14, 2025
@de-odex
Copy link
Author

de-odex commented Mar 14, 2025

not sure if you'd be able to view the logs, but the relevant GitHub Action the snippets are from is this one

tunakasif added a commit to tunakasif/cookiecutter-pypackage that referenced this issue Apr 3, 2025
Since tox-gh fails with uv-venv-lock-runner, disable the option until
the issue is resolved.

Refs: tox-dev/tox-gh#175
Refs: tox-dev/tox-uv#187
@HarrisonWilde
Copy link

Any planned fix for this?

@gaborbernat
Copy link
Member

PR welcome 👍

edgarrmondragon added a commit to edgarrmondragon/tap-dbf that referenced this issue May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants