Skip to content

Conversation

@vebjorre
Copy link
Contributor

@vebjorre vebjorre commented Oct 15, 2025

Finishing the work of @akx in #2144, removing any use of distutils in order to support python>=3.12.

Fixes #2091

@sonarqubecloud
Copy link

@vebjorre vebjorre changed the title don't use distutils in env_helper.py remove distutils in order to support python 3.12 Oct 15, 2025
def strtobool(val: str) -> bool:
return val.lower() in ("yes", "y", "true", "t", "1")


Copy link
Contributor

Choose a reason for hiding this comment

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

Hello @vebjorre , thanks very much for this contribution! We'd like to request two small edits after which we'd be happy to merge and release this.

  1. It looks like "on" should be in the tuple
  2. The original strtobool implementation throws a ValueError if you pass in an invalid value, we'd like to keep that behavior

If you could make those edits then we'll move this forward, thanks again!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you, that's perfect!

I'm seeing a failure in our CI, I think it's probably spurious but I'll have to investigate that before we can merge. I'll investigate next week and update you.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll need to make a small change to our workflow file to update some credentials, should be able to get to it this week, thanks for your patience.

Copy link
Contributor

Choose a reason for hiding this comment

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

I had to move some other things ahead of this in my to-do list, I will come back to this as soon as I can, and I'll keep you updated. Thank you

@sonarqubecloud
Copy link

@vebjorre vebjorre requested a review from paulteehan November 28, 2025 12:54
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link
Contributor

@paulteehan paulteehan left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@paulteehan paulteehan merged commit 5576b3b into sodadata:main Jan 5, 2026
25 of 27 checks passed
@vebjorre vebjorre deleted the drop-distutils-dep branch January 6, 2026 07:57
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.

distutils is deprecated. distutils.util.strtobool needs replacement.

3 participants