Better Reporting of the GUI Tool Version Numbers#136
Open
joshanne wants to merge 4 commits into
Open
Conversation
Collaborator
Author
Member
|
Hi @joshanne can you solve the version v0.0.0 issue when launching the tool directly from source? others looks OK to me |
joshanne
force-pushed
the
pr/python-build-managed-version-control
branch
from
July 25, 2026 00:54
4fba222 to
db95d75
Compare
Because the version is only incremented prior to a release, we have a number of commits between releases that all identify as the last release. This means, all of our most recent changes that have improved gui_tool look like it's an old version, and managing users installs is hard. 'But it works on v1.2.28' - when it's actually a dev build the user is running...
joshanne
force-pushed
the
pr/python-build-managed-version-control
branch
from
July 25, 2026 01:04
6c36e55 to
183123a
Compare
joshanne
force-pushed
the
pr/python-build-managed-version-control
branch
2 times, most recently
from
July 25, 2026 05:07
4d5e709 to
bbacee0
Compare
Collaborator
Author
|
@Huibean if possible, would you like to give it another look over? I've updated the above images to show the developer build working the same way. it simplifies the release process atm, no manual editing of files... there is still one edge case, but its very unlikely to hit now. It allows developers to run the tool from their directory and get the current commit information at runtime. If @tridge or the release maintainer is okay to slightly modify the release process, the release process then becomes...
In effect, the steps for loading the version here are then:
|
Precedence for version information: * git describe * setuptools_scm generated file * .git_archival.txt * default value
joshanne
force-pushed
the
pr/python-build-managed-version-control
branch
from
July 25, 2026 06:04
bbacee0 to
69793c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is hopefully a change for the better.
I have team members running various versions of the main branch since the last release. I cannot tell exactly which version they are running because the application only tells me what
version.pycontains, which is typically updated just before the next tag and release is about to occur.This PR makes use of
setuptools_scmto improve the reporting of the version number.The current build/release process entails:
version.pyThis means, for all users installing from
masterafter the last release, their build "looks" like the most recent release, but does not indicate that it is development patches on top of the last release.This PR aims to improve some of that reporting.
All of this assumes the user has installed dronecan_gui_tool with one of the following methods:
After which, one of the following outcomes occur...
Similarly, the version can be seen in the application.
Release Build:

Clean Work Tree, Development Build

Dirty Work Tree, Development Build

When locally running the build, you will now get the following:
I'm in the process of updating
README.md- If this is accepted, the new Release Workflow should be updated to something like: