Skip to content

show version information - #1146

Merged
kbengs merged 5 commits into
pdfarranger:mainfrom
Its-Just-Nans:show-version
Nov 17, 2024
Merged

kbengs merged 5 commits into
pdfarranger:mainfrom
Its-Just-Nans:show-version

Conversation

@Its-Just-Nans

@Its-Just-Nans Its-Just-Nans commented Nov 10, 2024 •

Copy link
Copy Markdown
Contributor

may fix #909

touch tests/__init__.py
python3 -m unittest -v -f tests.test.TestBatch9

@codecov

codecov Bot commented Nov 10, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 13 lines in your changes missing coverage. Please review.

Project coverage is 78.44%. Comparing base (dc852e5) to head (a37d03a).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pdfarranger/pdfarranger.py 50.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1146      +/-   ##
==========================================
- Coverage   78.47%   78.44%   -0.03%     
==========================================
  Files          13       13              
  Lines        5166     5192      +26     
==========================================
+ Hits         4054     4073      +19     
- Misses       1112     1119       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Its-Just-Nans
Its-Just-Nans force-pushed the show-version branch 2 times, most recently from a0bb182 to a5342f1 Compare November 10, 2024 16:28
@kbengs

kbengs commented Nov 12, 2024

Copy link
Copy Markdown
Member

This is how it looks on my machine:
image
Maybe it could be prettier. 🤔 platform.freedesktop_os_release() will give PRETTY_NAME': 'KDE neon 6.2' What do you think about that? (instead of platform.version())

TESTING.md changes could be in a separate commit. And as dreua commented before "Also the perfect commit message starts with a capital letter" "Show OS version information" 😃

@Its-Just-Nans
Its-Just-Nans force-pushed the show-version branch 3 times, most recently from 79a7eee to febaa56 Compare November 12, 2024 17:17
@kbengs

kbengs commented Nov 14, 2024

Copy link
Copy Markdown
Member

I'd vote for having only one line in about dialog:
Windows: "Running on" platform.platform() (Windows 11 is actually reported as Windows 10, don't know if this can be fixed)
Linux: "Running on" platform.freedesktop_os_release()["PRETTY_NAME"] (in a try except OSError, which return a empty string in case of exception)
Darwin: Have not tested

Comment thread pdfarranger/pdfarranger.py Fixed
Comment thread pdfarranger/pdfarranger.py Fixed
@kbengs

kbengs commented Nov 17, 2024

Copy link
Copy Markdown
Member

Could you clean the commit history so you have only two commits again. (force push)

@Its-Just-Nans

Copy link
Copy Markdown
Contributor Author

You can just squash no ?

image

@kbengs
kbengs merged commit 81c867c into pdfarranger:main Nov 17, 2024
@kbengs

kbengs commented Nov 17, 2024

Copy link
Copy Markdown
Member

@Its-Just-Nans Thank you!

@kbengs kbengs added this to the 1.12 milestone May 20, 2025
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.

Display OS in about dialogue

3 participants