Skip to content

Drop `always-copy` Poetry virtualenv option

Tan Le requested to merge drop-always-copy into main

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

  1. Check out to this merge request's branch.
  2. Remove virtualenv by running rm -rf .venv.
  3. 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
  4. This should work with both asdf and mise.

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

Merge request reports

Loading