Fix nmigen.__version__ to work on git-archive artifacts.
authorwhitequark <whitequark@whitequark.org>
Mon, 19 Aug 2019 23:14:41 +0000 (23:14 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 19 Aug 2019 23:14:41 +0000 (23:14 +0000)
Fixes #137.

nmigen/__init__.py

index d2aa2bae9cb5d190c1fd7bcf24f44c039256318e..9aef903860538945f39e9295ed97da9a0865bbd1 100644 (file)
@@ -1,5 +1,5 @@
 from ._version import get_versions
-__version__ = get_versions()['version']
+__version__ = get_versions()["full-revisionid"]
 del get_versions
 
 from .hdl import *