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

Report simpler Python version string in About and Error dialogs #1625

Conversation

hgohel
Copy link
Member

@hgohel hgohel commented Dec 21, 2023

A gramps user reported on the discourse forum (thread) that information in the about box was truncated, and he could not expand the box to view the rest of the text.

A look at the text in question suggested a simple change: the truncated string is intended to be the Python version which is typically major.minor.patch version, but the text being displayed is the output of sys.version() which includes additional information including build number and compiler used. For the About box this isn't necessarily useful, so this PR replaces that call with platform.python_version() which returns just the version and resolves the truncated string issue. The same change is also made in the error report dialog for consistency.

An unrelated change is also included in this PR: after building the AIO bundle locally several artifacts are generated (or downloaded) to the source folder, which have been added to .gitignore to avoid tracking with git.

Here's what the Python strings look like with the change:

gramps52-about-box-python-ver-short
gramps52-errorreport-python-ver-short

FYI @emyoulation

@Nick-Hall Nick-Hall added the bug label Feb 6, 2024
A gramps user reported on the discourse forum that information in
the about box was truncated, and he could not expand the box to
view the rest of the text.

A look at the text in question suggested a simple change:
the truncated string is intended to be the Python version which is
typically major.minor.patch version, but the text being displayed
is the output of sys.version() which includes additional information
including build number and compiler used. For the About box this
isn't necessarily useful, so this PR replaces that call
with platform.python_version() which returns just the version and
resolves the truncated string issue. The same change is also made
in the error report dialog for consistency.
@Nick-Hall Nick-Hall force-pushed the aboutbox-python-ver-gramps52 branch from be8e476 to 60823e7 Compare February 7, 2024 22:26
@Nick-Hall
Copy link
Member

An unrelated change is also included in this PR: after building the AIO bundle locally several artifacts are generated (or downloaded) to the source folder, which have been added to .gitignore to avoid tracking with git.

Please open a separate PR for the unrelated change.

@Nick-Hall Nick-Hall force-pushed the aboutbox-python-ver-gramps52 branch from 60823e7 to b0fb4f7 Compare February 7, 2024 22:34
@Nick-Hall Nick-Hall merged commit b0fb4f7 into gramps-project:maintenance/gramps52 Feb 7, 2024
2 checks passed
@hgohel hgohel deleted the aboutbox-python-ver-gramps52 branch February 10, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants