Skip to content

Commit 60fc142

Browse files
author
jkamelin
committed
move __version__
1 parent a9bef2a commit 60fc142

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

tools/model_tools/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def run(self):
107107

108108
setup(
109109
install_requires=read_text('requirements.in'),
110-
version=get_version('src/openvino/model_zoo/__init__.py'),
110+
version=get_version('src/openvino/model_zoo/_version.py'),
111111
extras_require={
112112
'pytorch': read_text('requirements-pytorch.in'),
113113
'tensorflow2': read_text('requirements-tensorflow.in'),

tools/model_tools/src/openvino/model_zoo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "1.0.2"
15+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

tools/model_tools/src/openvino/model_zoo/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from pathlib import Path
2222

23-
from . import __version__
23+
from openvino.model_zoo._version import __version__
2424

2525
PACKAGE_DIR = Path(__file__).resolve().parent
2626
MODEL_ROOT = PACKAGE_DIR / 'models'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2022 Intel Corporation
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)