Skip to content
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

create (and pass to sessions) a "temporary directory" they can use for output files #319

Closed
moshez opened this issue May 1, 2020 · 0 comments

Comments

@moshez
Copy link
Contributor

moshez commented May 1, 2020

How would this feature be useful?

When testing documentation builds, it is nice to have the output be under the nox temporary directory instead of in an OS-specific temporary directory. It makes cleanup easier, and it means there is a consistent URL to be loaded in the browser.

Describe the solution you'd like

A session should have access to a variable "environment temporary directory", and pass it on to commands as appropriate (for example, as the -d option to sphinx).

Describe alternatives you've considered

In theory, session could grab the virtual environment directory and create a tmp subdirectory there themselves, but this is a little ugly.

moshez added a commit to moshez/nox that referenced this issue May 3, 2020
theacodes pushed a commit that referenced this issue May 16, 2020
* Address #319: Give a create_tmp API

* more stuff

* fade to black

* woops

* calculate tmp directly from envdir

* cleanup and fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants