Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes it easier to programmatically access paths relative to the
virtualenv. A common use case is to activate the virtualenv
This programmatic access can be used to automate virtualenvs upon cd-ing
into a project or as an alias, for example
#401
Pull Request Check List
I'm basing this change on the
master
branch, as thedevelop
branch appears to be behind master. For example, the MockEnv class does not exist yet on develop, despite existing in master.I'm just throwing this up here to get this ticket started, but I'm up to alternative ideas about implementation.
A few other thoughts:
info
command which is likedebug:info
but returns a single field. e.g.poetry info:venv
would return the venv whilepoetry info:python_version
would return the python version.debug:info:venv
(although given that it would become api, I wouldn't like the debug prefix), whiledebug:info
gives you all the infosource ${poetry activate}
or the contents of the activate script:
eval ${poetry activate}