X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=963296fe6f0db46fd34544dae82a06e39b3af14b;hb=9a4b8b23484e767a8708ca529a0f9df4d0beaa36;hp=d93de2d6df038eff0b7c28187849db38bd8c20bc;hpb=ea97c04d6d6d9cbf61d03bebec7ed17e07919ed3;p=osm%2FNBI.git diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index d93de2d..963296f 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,12 @@ # under the License. ## -version = '6.0.2.post3' -version_date = '2018-09-13' +version = '8.0.0.post1' +version_date = '2020-07-01' + +# Obtain installed package version. Ignore if error, e.g. pkg_resources not installed +try: + from pkg_resources import get_distribution + version = get_distribution("osm_nbi").version +except Exception: + pass