Skip to content

Commit

Permalink
Lookup Sygnal version using the correct name
Browse files Browse the repository at this point in the history
We passed it a module name [1] instead of the "distribution name"(?)

Broken in 0ced8bd, so Sygnal 0.5.0.

[1]: https://docs.python.org/3/reference/import.html#name__
  • Loading branch information
David Robertson committed Nov 21, 2023
1 parent b83661c commit e5bf111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sygnal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version(__name__)
__version__ = version("matrix-sygnal")
except PackageNotFoundError:
# package is not installed
pass

0 comments on commit e5bf111

Please sign in to comment.