Drop `always-copy` Poetry virtualenv option
What does this merge request do and why?
Drop always-copy
Poetry virtualenv option.
This option doesn't necessarily help because it doesn't copy the Python
shared library over. If a user uninstalls the needed Python version, the
virtualenv will be broken in any case. In addition, mise
doesn't work
with this option since the shared library is a relative path.
Similar MR on AI Gateway gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!1332 (merged)
How to set up and validate locally
- Check out to this merge request's branch.
- Remove virtualenv by running
rm -rf .venv
. - Set up virtualenv.
$ poetry env use 3.12.6 Creating virtualenv eli5 in /Users/tanle/code/gitlab/gdk/gitlab-eli5/.venv Using virtualenv: /Users/tanle/code/gitlab/gdk/gitlab-eli5/.venv
- This should work with both
asdf
andmise
.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Edited by Tan Le