Coder Social home page Coder Social logo

Comments (3)

pytoxbot avatar pytoxbot commented on August 15, 2024

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.

pytoxbot avatar pytoxbot commented on August 15, 2024

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.

obestwalter avatar obestwalter commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.