Skip to content

Commit

Permalink
Bump version and print it in numato-discover
Browse files Browse the repository at this point in the history
Need evidence that this exact code is executed.
  • Loading branch information
clssn committed Apr 23, 2024
1 parent 3727591 commit bcb633d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "numato-gpio"
version = "0.13.0"
version = "0.13.1a0"
description = "Python API for Numato GPIO Expanders"
authors = ["Henning Claßen <code@clssn.de>"]
license = "MIT License"
Expand Down
5 changes: 4 additions & 1 deletion src/numato_gpio/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""Main module printing detected numato devices on the command-line."""
from numato_gpio import discover, cleanup, devices

import importlib.metadata
from numato_gpio import cleanup, devices, discover


def main():
"""Print out information about all discovered devices."""
try:
discover()
print(f"Discovered devices: {'(None)' if not devices else ''}")
print(f"\nnumato-gpio v{importlib.metadata.version('numato-gpio')}")
for device in devices.values():
print(device)
finally:
Expand Down

0 comments on commit bcb633d

Please sign in to comment.