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

About dialogue improvements #698

Merged
merged 3 commits into from Mar 1, 2022
Merged

Conversation

corubba
Copy link
Contributor

@corubba corubba commented Feb 14, 2022

Fix changeset detection

With 7f1fa4f the puddlestuff package was moved and as a result its
relative path/position to the git root changed. The changeset detection
has been updated to accommodate the new location.
And since I was at it, also replaced the usage of hardcoded / with
os.path.join(), and changed from the master branch to HEAD which
always points to the current commit. The downside is that HEAD can
contain references, but the upside is that it now also works for tags
and all other commits.
This solution does not require deps like gitpython or assumes the
git command is avilable (though that would be resonable).

Slightly reorganize about dialogue

Moved the library versions to its own tab, so we have more space for
more and it can be easily copied. And moved the version logic into a
separate function, in the hope we can reuse that for e.g. #552.
Also moved the changeset to the line below the puddletag version one.
I intentionally did not update the translation resources, since they
are minor and there are already translation rework efforts going on.

Extend dependency versions

They now encompass everything from requirements.in plus Python and Qt.
The version determination first tries to use the new
importlib.metadata package that was finally added with python v3.10,
and falls back to loading the module and reading the __version__
attribute.

puddletag_about

With 7f1fa4f the `puddlestuff` package was moved and as a result its
relative path/position to the git root changed. The changeset detection
has been updated to accommodate the new location.
And since I was at it, also replaced the usage of hardcoded `/` with
`os.path.join()`, and changed from the `master` branch to `HEAD` which
always points to the current commit. The downside is that `HEAD` can
contain references, but the upside is that it now also works for tags
and all other commits.
This solution does not require deps like `gitpython` or assumes the
`git` command is avilable (though that would be resonable).
Moved the library versions to its own tab, so we have more space for
more and it can be easily copied. And moved the version logic into a
separate function, in the hope we can reuse that for e.g. puddletag#552.
Also moved the changeset to the line below the puddletag version one.
I intentionally did not update the translation resources, since they
are minor and there are already translation rework efforts going on.
They now encompass everything from `requirements.in` plus Python and Qt.
The version determination first tries to use the new
`importlib.metadata` package that was finally added with python v3.10,
and falls back to loading the module and reading the `__version__`
attribute.
@sandrotosi sandrotosi merged commit 4615792 into puddletag:master Mar 1, 2022
@corubba corubba deleted the feature/about branch March 1, 2022 02:25
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.

None yet

2 participants