X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2F__init__.py;h=96de80f5bae3daaf19e1e6fb21ae85b4df9a8dc4;hb=2c9794c5dc468baabe99b2f934e4bdb32e98ce54;hp=4855fe74139e59808512cca277fbb84e50e12b54;hpb=6ec13b0ec457da355bf3b884201a0b4bab90cb3c;p=osm%2Fcommon.git diff --git a/osm_common/__init__.py b/osm_common/__init__.py index 4855fe7..96de80f 100644 --- a/osm_common/__init__.py +++ b/osm_common/__init__.py @@ -1,2 +1,26 @@ -version = '0.1.5' -date_version = '2018-05-14' +# -*- coding: utf-8 -*- + +# Copyright 2018 Telefonica S.A. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version = '7.0.0.post4' +date_version = '2019-01-21' + +# try to get version from installed package. Skip if fails +try: + from pkg_resources import get_distribution + version = get_distribution("osm_common").version +except Exception: + pass