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

Update mise.toml virtualenv location #22

Open
bchopson opened this issue Oct 9, 2024 · 1 comment
Open

Update mise.toml virtualenv location #22

bchopson opened this issue Oct 9, 2024 · 1 comment

Comments

@bchopson
Copy link
Member

bchopson commented Oct 9, 2024

Default to VIRTUALENVS_DIR/<virtualenv_name> if VIRTUALENVS_DIR is defined, otherwise .venv

@bchopson
Copy link
Member Author

bchopson commented Oct 9, 2024

Something like this should do the trick, although combining mise tera templating with jinja templating could get tricky:
python.virtualenv = '{% if env.VIRTUALENVS_DIR %}{{ env.VIRTUALENVS_DIR }}/{{virtualenv_name}}{% else %}.venv{% endif %}'

Note that virutalenv_name would be templated by copier, while the rest of the template directives should be read at runtime by mise.

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

No branches or pull requests

1 participant