Skip to content

Use modern distro API for platform info #1613

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

Closed
wants to merge 1 commit into from

Conversation

emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR resolves the distro deprecation warning:

DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.

The formatted output example:

Linux Distribution: Ubuntu 22.04 (jammy)

It also fixes a small typo along the way.

@BillyDonahue BillyDonahue self-requested a review June 9, 2025 21:50
@BillyDonahue
Copy link
Contributor

Thanks Emmanuel.
This small change looks fine.
These changes have to go through our processes though. I'll do that now.

@BillyDonahue
Copy link
Contributor

Done!

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