Skip to content
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

#39 ⬆️ update default python version from 3.9.16 to 3.11.4 to… #42

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

d-ryan-ashcraft
Copy link
Contributor

… ensure latest binary installer is available; ✨ catch poetry check error and perform remediation

…latest binary installer is available; ✨ catch poetry check error and perform remediation
@d-ryan-ashcraft d-ryan-ashcraft force-pushed the 39-default-python-version-bump branch from 4ff66d3 to b5da2db Compare August 24, 2023 18:30
@@ -21,27 +21,35 @@ public class InitializeHabushuMojo extends AbstractHabushuMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I (Informational): recommend hiding whitespace

PoetryCommandHelper poetryHelper = createPoetryCommandHelper();
try {
poetryHelper.execute(Arrays.asList("check"));
} catch (HabushuException e) {
Copy link
Contributor Author

@d-ryan-ashcraft d-ryan-ashcraft Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to occur when you update the minimum python version in your pyproject.toml. It is easy to remiediate, so we catch the error and have poetry resync pypoject.toml and poetry.lock. If it were to fail during this, the error would be throw to the user.

@d-ryan-ashcraft d-ryan-ashcraft requested a review from a team August 24, 2023 18:36
@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Pyenv
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I (Informational): Need newer version of pyenv to install python 3.11.4

Copy link

@Ross-Jeffrey Ross-Jeffrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change seems fine in my limited experience. I've reviewed the build check and based on that clearing I'd say this is an approved change. I do still see a few spots in the habushu repo that reference python version of 3.10.4 like
cleanHabushuMojo.java and ValidatePyenvAndPoetryMojo.java, unless I'm misunderstanding things?

@d-ryan-ashcraft
Copy link
Contributor Author

Change seems fine in my limited experience. I've reviewed the build check and based on that clearing I'd say this is an approved change. I do still see a few spots in the habushu repo that reference python version of 3.10.4 like cleanHabushuMojo.java and ValidatePyenvAndPoetryMojo.java, unless I'm misunderstanding things?

Those are examples of how to specify a non-default version of Python - I think it is useful they are different than the default version, but could be convinced otherwise as well.

@d-ryan-ashcraft d-ryan-ashcraft merged commit ac16112 into dev Aug 25, 2023
@d-ryan-ashcraft d-ryan-ashcraft deleted the 39-default-python-version-bump branch August 25, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants