From e5bf111dba277a02ca7da0e3053f456a7ff249e5 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 21 Nov 2023 15:32:37 +0000 Subject: [PATCH] Lookup Sygnal version using the correct name We passed it a module name [1] instead of the "distribution name"(?) Broken in 0ced8bda3c759b1584d327205245162da64488a4, so Sygnal 0.5.0. [1]: https://docs.python.org/3/reference/import.html#name__ --- sygnal/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sygnal/__init__.py b/sygnal/__init__.py index aafeb56a..195ac1d3 100644 --- a/sygnal/__init__.py +++ b/sygnal/__init__.py @@ -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