#1518: uv tools are now installed locally#2002
Open
AdemZarrouki wants to merge 13 commits into
Open
Conversation
…ith corresponding unit tests
…nvironment variables in Python and Uv tool configurations
7 tasks
Collaborator
Coverage Report for CI Build 26890891363Coverage increased (+0.002%) to 71.054%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions2 previously-covered lines in 2 files lost coverage.
Coverage Stats💛 - Coveralls |
AdemZarrouki
commented
Jun 3, 2026
| public class UvTest extends AbstractIdeContextTest { | ||
|
|
||
| @Test | ||
| public void testSetEnvironment() { |
Contributor
Author
There was a problem hiding this comment.
this test is also failing in windows as the value is compared in the wrong path format.
[expected](expected: C:\Users\projects\IDEasy\workspaces\main\IDEasy\cli\target\ide-projects\basic\project\software\python\tools)
but was: \c\Users\projects\IDEasy\workspaces\main\IDEasy\cli\target\ide-projects\basic\project\software\python\tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 PR fixes #1518 and replaces PR 1885
Implemented changes:
Full Project Isolation: Redirected uv tool data and virtual environments to the project-local software/python/tools directory via UV_TOOL_DIR.
Explicit Binary Pathing: Replaced XDG_BIN_HOME with UV_TOOL_BIN_DIR to ensure tool executables are scoped to the project's bin folder.
Commandlet Updates: Modified Python.java and Uv.java to export these variables automatically, eliminating all "not on your PATH" warnings.
Regression Testing: Added cross-platform JUnit tests to verify environment isolation across both tools.
Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internal