Registry / devops / tox-ignore-env-name-mismatch

tox-ignore-env-name-mismatch

JSON →
library0.2.0.post2pypypiunverified

A tox 4 plugin that allows reusing the same virtual environment across multiple tox environments. This is useful when the base python version and dependencies are identical, but the env name differs. Version 0.2.0.post2, stable but niche. Supports Python >=3.7.

pip install tox-ignore-env-name-mismatch
INSTALL
IMPORT
SIG · TOX-IGNORE-ENV-NAM
T
tox-ignore-env-name-mismatch
devopspythonv0.2.0.post2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ignore_env_name_mismatch
import tox_ignore_env_name_mismatch
from tox_ignore_env_name_mismatch import ignore_env_name_mismatch

Enable the plugin by setting 'ignore_env_name_mismatch = true' in tox.ini under [testenv], or by setting the TOX_IGNORE_ENV_NAME_MISMATCH environment variable to 1. No code changes needed.

# In tox.ini, add under [testenv] ignore_env_name_mismatch = true # Or via environment variable: export TOX_IGNORE_ENV_NAME_MISMATCH=1 # Then run tox normally
Debug
Known issues
gotchaThe plugin only works with tox 4. It does nothing under tox 3 or tox 5 (if ever released).
fix
Ensure you have tox >=4.0.0 installed.
affects: 0.x
gotchaSetting 'ignore_env_name_mismatch = true' in a generic [testenv] section affects all environments. Confirm that environments with different base python versions or conflicting dependencies are not reused accidentally.
fix
Use per-environment overrides or conditional settings if only specific environments should reuse.
affects: all
deprecatedThe environment variable TOX_IGNORE_ENV_NAME_MISMATCH is deprecated in favor of the INI config. It still works but may be removed in a future version.
fix
Migrate to using the INI config: ignore_env_name_mismatch = true.
affects: 0.2.0+
Upgrade
Version history
0.2.0.post2latest on PyPI · released Jan 17, 2023
Audit
Dependencies
toxrequiredPlugin runs only under tox 4.
packagingrequiredUsed for version comparisons.
Agent activity
9 hits · last 30 days
node
8
Resources
tox-ignore-env-name-mismatch — pip install tox-ignore-env-name-mismatch · libregistry