Skip to content

Warn against unsupported Python version when running CLI#575

Merged
GitOnUp merged 6 commits into
mainfrom
george/version-assertion
Oct 6, 2023
Merged

Warn against unsupported Python version when running CLI#575
GitOnUp merged 6 commits into
mainfrom
george/version-assertion

Conversation

@GitOnUp
Copy link
Copy Markdown
Contributor

@GitOnUp GitOnUp commented Oct 6, 2023

During the initialization of the CLI, check the Python version and warn if it's not supported.

I took this approach to attempt to be nice, rather than immediately explode in the SDK itself, though the SDK could certainly leverage the __init__.py code here.


When running on 3.8:

Screenshot 2023-10-05 at 11 10 45 PM

When running on 3.11:

Screenshot 2023-10-05 at 11 10 59 PM

When running on 3.10:

Screenshot 2023-10-05 at 11 14 09 PM

@GitOnUp GitOnUp requested a review from dkolas October 6, 2023 06:18
Copy link
Copy Markdown
Contributor

@dkolas dkolas left a comment

Choose a reason for hiding this comment

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

I really like where / how you've injected this. It feels like it's at a place where you have the developer's attention but warning them about something won't feel overly annoying or hostile.

Only q: Do we want to specifically call out the issues around 3.11 in the warning message? To potentially make it less likely to be hand waved away in that case?

@GitOnUp
Copy link
Copy Markdown
Contributor Author

GitOnUp commented Oct 6, 2023

Only q: Do we want to specifically call out the issues around 3.11 in the warning message? To potentially make it less likely to be hand waved away in that case?

I think that could be misleading, since we know of issues with enums, but there could be more issues that we haven't found yet.

@GitOnUp GitOnUp enabled auto-merge October 6, 2023 18:11
@GitOnUp GitOnUp disabled auto-merge October 6, 2023 18:11
@GitOnUp GitOnUp merged commit 52c1789 into main Oct 6, 2023
@douglas-reid douglas-reid deleted the george/version-assertion branch January 3, 2024 19:24
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.

2 participants