Skip to content

pygmt.show_versions: Improve the reported GMT version - #4813

Open
yvonnefroehlich wants to merge 3 commits into
mainfrom
improve-report-gmt-version
Open

pygmt.show_versions: Improve the reported GMT version#4813
yvonnefroehlich wants to merge 3 commits into
mainfrom
improve-report-gmt-version

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Aug 10, 2026

Copy link
Copy Markdown
Member

Description of proposed changes

xref: #4812 (comment)

Fixes #4812

Preview:

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.20.0 milestone Aug 10, 2026
@yvonnefroehlich yvonnefroehlich self-assigned this Aug 10, 2026
@yvonnefroehlich yvonnefroehlich added the maintenance Boring but important stuff for the core devs label Aug 10, 2026
Comment thread pygmt/clib/session.py
if not hasattr(self, "_info"):
self._info = {
"version": self.get_default("API_VERSION"),
"version": self.get_default("API_BIN_VERSION"),

@seisman seisman Aug 10, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmmm. Someone may likely use Session.info("version") to check the current GMT library version, so this looks like a breaking change.

Maybe keep the Session.info() dictionary unchanged, but only change the output only of pygmt.show_versions? I.e., manipulate the dictionary in _get_clib_info().

@seisman seisman changed the title Improve reporting the GMT version via "pygmt.show_versions()" pygmt.show_versions: Improve the reported GMT version Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve reporting the GMT version via "pygmt.show_versions()"

2 participants