Skip to content

Conversation

@sgunes-wirepas
Copy link
Contributor

Version can be set via the WM_TRANSPORT_VERSION environment variable when building the python package. It is 0.0.0.dev0 by default.

For releases and workflow_dispatch, tag is taken as it is with the v prefix removed. This means now a compliant version should be given for the workflow_dispatch tag and release tags.

For regular commits (push), 0.0.0.dev0.git+ version is used.

__url__ = "https://github.com/wirepas/gateway"
__version__ = "1.6.0rc1"
__keywords__ = "wirepas connectivity iot mesh"

Copy link

Choose a reason for hiding this comment

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

blank line at end of file

Version can be now set via the WM_TRANSPORT_VERSION environment variable
when building the python package. It defaults to a dev version.

The PackageNotFoundError from importlib is not caught on purpose, to
prevent silently setting an incorrect version in production.

Bumping required python version due to importlib
Python packaging module (packaging.version.Version()) seems to be
stripping the leading 'v' in the version so stripping it here might not
be needed. However, doing it just in case and to be compliant with PEP
440.
@sgunes-wirepas sgunes-wirepas marked this pull request as draft February 4, 2026 12:47
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.

1 participant