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

extend conan version to report current python and system for troubleshooting #16102

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

ErniGH
Copy link
Contributor

@ErniGH ErniGH commented Apr 18, 2024

Changelog: Feature: Extend conan version to report current python and system for troubleshooting.
Docs: conan-io/docs#3691

Close: #15974

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looks good

conan/cli/commands/version.py Outdated Show resolved Hide resolved
'system': {
'version': platform.version(),
'platform': platform.platform(),
'os': platform.system() + ' ' + platform.release(),
Copy link
Member

Choose a reason for hiding this comment

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

These two can return an empty string.

If release is empty, then the field would be "Linux " which might be tricky for downstream users to properly parse if that happens to them :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we prefer to divide it in two? something like this:

Suggested change
'os': platform.system() + ' ' + platform.release(),
'version': platform.version(),
'platform': platform.platform(),
'os_system': platform.system(),
'os_release':platform.release(),

Copy link
Member

Choose a reason for hiding this comment

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

Reads better, but not too sold on the names with the prefix. No strong opinions either!

Copy link
Member

Choose a reason for hiding this comment

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

Probably just system and release is good.
I'd say better them separately, this is structured information, better separated than us artificially joining them with _

Co-authored-by: James <memsharded@gmail.com>
@memsharded memsharded self-assigned this Apr 19, 2024
@memsharded memsharded added this to the 2.3.0 milestone Apr 19, 2024
Copy link
Contributor

@jcar87 jcar87 left a comment

Choose a reason for hiding this comment

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

LGTM! super helpful too

@jcar87 jcar87 merged commit a1334ac into conan-io:develop2 Apr 19, 2024
2 checks passed
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.

[feature] conan command to report current python and system for troubleshooting
5 participants