Skip to content

🐛 fix(meta): remove tox_uv namespace conflict#314

Merged
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:309
Mar 12, 2026
Merged

🐛 fix(meta): remove tox_uv namespace conflict#314
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:309

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

The meta tox-uv package was shipping meta/tox_uv/__init__.py, creating a namespace conflict with tox-uv-bare's actual tox_uv package. When both packages are installed (either from upgrade or manual installation), Python's import system might find the meta package's empty tox_uv module before the bare package's full implementation. 🐛

This causes ModuleNotFoundError: No module named 'tox_uv.plugin' when tox tries to load the plugin via the entry point defined in tox-uv-bare.

The fix changes the meta package to ship tox_uv_meta/__init__.py instead, using hatchling's force-include to map the marker file to a non-conflicting namespace. This allows both packages to coexist safely - the meta package acts as a pure dependency wrapper without interfering with the actual implementation from tox-uv-bare.

Fixes #309

@gaborbernat gaborbernat added the bug Something isn't working label Mar 12, 2026
The meta package was shipping meta/tox_uv/__init__.py, creating a namespace
conflict with tox-uv-bare's actual tox_uv package. When both packages are
installed, Python might import the meta package's empty tox_uv instead of
the bare package's full implementation, causing ModuleNotFoundError when
the entry point tries to load tox_uv.plugin.

Changed the meta package to ship tox_uv_meta/__init__.py instead, eliminating
the namespace collision. This allows both packages to coexist safely.

Fixes tox-dev#309
@gaborbernat gaborbernat enabled auto-merge (squash) March 12, 2026 21:19
@gaborbernat gaborbernat merged commit e0b9d0f into tox-dev:main Mar 12, 2026
16 checks passed
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

Successfully merging this pull request may close these issues.

No module named tox_uv.plugin

1 participant