-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[217] Support UV /Poetry switch for maven plugin - InitializeHabushuMojo #224
[217] Support UV /Poetry switch for maven plugin - InitializeHabushuMojo #224
Conversation
log.info("Validating UV-based project structure..."); | ||
UVCommandHelper uvHelper = new UVCommandHelper(baseDir); | ||
try { | ||
uvHelper.execute(Arrays.asList("lock", "--check")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I: Given that UV is immature than poetry, some of the commands are WIP,
They have uv check command WIP as seen here
log.warn("Corrected - pyproject.toml and uv.lock now synced"); | ||
} | ||
|
||
String currentPythonPackageVersion = uvHelper.executeUVTool(Arrays.asList("--from=toml-cli", "toml", "get", "--toml-path=pyproject.toml", "project.version")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I: Same as above, this is just workaround for now, once this issue is implement we can replace it for more readable command.
habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/InitializeHabushuUV.java
Show resolved
Hide resolved
habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/UVCommandHelper.java
Outdated
Show resolved
Hide resolved
habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/UVCommandHelper.java
Outdated
Show resolved
Hide resolved
6f8a75f
to
faf6f9d
Compare
habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/exec/UVCommandHelper.java
Outdated
Show resolved
Hide resolved
faf6f9d
to
c78be3d
Compare
Issue: #217