X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=8b1299c2b5aef379d3af1f5aecbe5db18edb7afa;hb=8ec2cc6f7b54e6fd0f670643b42c0079c9d3eedf;hp=982792c298a9c8767ad21062434ba20f26d6ad38;hpb=c67b0e994fe4a74098158e6340125e4c88cdb950;p=osm%2FNBI.git diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 982792c..8b1299c 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,12 @@ # under the License. ## -version = '6.0.3.post22' -version_date = '2018-11-05' +version = '7.1.0.post1' +version_date = '2020-05-05' + +# 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