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

Feature Request - envlist select single latest environment #3414

Open
Hecatron opened this issue Oct 20, 2024 · 0 comments
Open

Feature Request - envlist select single latest environment #3414

Hecatron opened this issue Oct 20, 2024 · 0 comments

Comments

@Hecatron
Copy link

One of the use cases I tend to use tox for is a very simple cross platform way (windows linux) of creating a virtual environment for things like running mkdocs or other python uses.

I realise of course that virtualenv can be used for this, but the advantage here is that everything can just be put into a tox.ini config file and I can just specify a requirements.txt file and have everything needed installed at the same time and setup with a simple "tox" command, which makes things very easy for setup.

Would it be possible for envlist to have an option where we just select a single latest environment detected on the host such as envlist = LATEST
The idea is then you can use tox to setup a single virtual env using the users latest installed version of python without specifically specifying what it is.

Alternative Solutions

Alternative solutions would probably involve creating some complicated bash or powershell scripts to get the first environment found then pass it in via -e perhaps.
I also considered calling virtualenv from it's python cli but it's publicly accessible api's are a bit limited I think in so far as entering into that environment then installing stuff via pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant