Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/west/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

import importlib.metadata

# The package metadata required can be missing when running pytest directly. One
# possible workaround is:
#
# cd west && pipx install -e . && pipx uninstall west
#
# This cycle leaves behind a `west/src/west.egg-info/PKG-INFO` file which is enough.
# `pip install --break-system-packages ...` can achieve the same result but with more
# disruption than pipx.
__version__ = importlib.metadata.version("west")
#
# MAINTAINERS:
Expand Down
Loading