From: whitequark Date: Wed, 16 Oct 2019 15:31:26 +0000 (+0000) Subject: Add __version__ boilerplate. X-Git-Tag: 24jan2021_ls180~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f20170dbe32eb23e5dd1103ae8cb267c41d7b71;p=nmigen-soc.git Add __version__ boilerplate. --- diff --git a/nmigen_soc/__init__.py b/nmigen_soc/__init__.py index e69de29..3d136b5 100644 --- a/nmigen_soc/__init__.py +++ b/nmigen_soc/__init__.py @@ -0,0 +1,5 @@ +import pkg_resources +try: + __version__ = pkg_resources.get_distribution(__name__).version +except pkg_resources.DistributionNotFound: + pass