Skip to content

automated testing for quick, low-friction python uv installation #12931

@rodrigosf672

Description

@rodrigosf672

Thank you for the QA Notes, @isabelizimm. Creating an issue for automated testing for similar process to which you have outlined in the notes. cc @midleman @testlabauto

QA Notes

@:win @:web

Be brave! Uninstall all non-System Pythons. For uv, it looks like this

uv cache clean
rm -r "$(uv python dir)"
rm -r "$(uv tool dir)"
rm ~/.local/bin/uv ~/.local/bin/uvx  
  • Go to the Select Interpreter dropdown. You should see an option to install Python with uv.
  • Select the option to install Python with uv. The quickpick should show ONLY supported Python versions (3.9-3.14), in the MAJOR.MINOR format
  • Choose your Python version. This should install uv and then the chosen Python.
  • If you are in a workspace, next, you have the option to create a venv. If you are not in a workspace, you should not be asked if you want to make a venv since we won't know where to place it.
  • If creating a venv, it should be created and automatically selected in the Console.
  • In venv/non-venv case, you should see your new Python (and maybe your new venv) in the interpreter dropdown.
  • Once you have this new Python, you should no longer see the option to install Python in the interpreter dropdown

For automated testing purposes, we can force the "Install Python" option to always be shown in the "Select Interpreter" dropdown with the setting python.INTERNAL_alwaysShowUvInstallOption equal to True.

Originally posted by @rodrigosf672 in #12904 (comment)

Metadata

Metadata

Assignees

Labels

lang: pythonneeds automated testIssue is candidate for automated testpackagingIssues related to packaging Positron (or components like Ark) for different package installers

Type

No fields configured for Test.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions