Comments (3)
Original comment by @ulope
Take a look at https://github.com/ulope/tox-externalworkdir. The plugin moves the .tox workdir to a location outside the project (by default ~/.cache/tox/<projectname>
, overridable by an env variable TOXWORKDIRBASE
).
Maybe that can solve your problem.
Unfortunately the implementation is a bit ugly for now since there is currently no really fitting hook in tox which could be used. That's also why I haven't released it to PyPI yet, but you can install it straight from GitHub (i.e. pip install git+http://github.com/ulope/tox-externalworkdir.git
). I've been using it on my machines for about a year now on a multitude of projects without any issues.
from tox.
Original comment by @yarikoptic
.tox/ directory seems to be hardcoded... I wish it was possible to override any of the tox variables (e.g. toxinitdir, or toxworkdir) from the command line, then I could run on one system specifying one directory or another. In my case it is not different physical OSs but different Linux docker instances with which get the same repository mounted, while I want to use tox to test in those different environments (with using sitepackages)
from tox.
This is entirely solvable already with tox functionality:
The tox working directory can be set via {toxworkdir} - this can be combined with using an environment variable to set it on invocation e.g.:
[tox]
toxworkdir = {env:TOX_CUSTOM_WORKDIR:.tox}
Now you can call tox with different values from different osses and they all have their own workdir
from tox.
Related Issues (20)
- Section substitution doesn't work in `setenv` HOT 2
- SSLError("Can't connect to HTTPS URL because the SSL module is not available. HOT 2
- ImportError with tox but pytest works when using entry_points plugins.
- tox does not pass environment variables defined in [testenv:*] to the building phase HOT 8
- Tox cannot install package dependencies for local package added with pdm HOT 1
- TOX_DISCOVER not working (micromamba) HOT 5
- Regression: Complex factor conditions (including negative factor conditions) completely omitted from recent (v4?) docs HOT 2
- Excessive /tmp size after running tox test suite HOT 1
- Tests with Python 3.12 fail in macOS (M2 chip) because of virtualenv options not having 'copies' attribute.
- `python -m venv` from within tox env fails with PyPy 7.3.16 on Windows HOT 1
- TypeError: isinstance() argument 2 cannot be a parameterized generic HOT 1
- Python 3.13 test failure: `tests/config/loader/test_str_convert.py::test_str_convert_ok_py39[1,2-value1-Optional] - TypeError: issubclass() arg 1 must be a class` HOT 4
- {env_name} substitution broken since version 4.14.1 HOT 3
- Critical Vulnerability Issue found by Fortify (CVE-2023-37920) HOT 1
- failure on packages dependency change
- `tox devenv`: Integration with running virtualenvs HOT 4
- Include `windir` by default in `pass_env` HOT 1
- [docs] The explanation/docstring in `tox_env_teardown` is the same as for `tox_on_install`
- Tests of tox itself require a lot of disk space HOT 3
- Allow tox to use existing environment if no network connectivity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tox.