File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11from .convert import ConvertModel
2+
3+ __version__ = "0.4.1"
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ import os
23from setuptools import setup , find_packages
34
45try :
78except IOError :
89 long_description = ""
910
11+ # Extract version. Cannot import directly because of import error.
12+ root_dir = os .path .dirname (__file__ )
13+ with open (os .path .join (root_dir , "onnx2pytorch/__init__.py" ), "r" ) as f :
14+ for line in f .readlines ():
15+ if line .startswith ("__version__" ):
16+ version = line .split ("=" )[- 1 ].strip ().strip ('"' )
17+ break
1018
1119PACKAGES = find_packages (exclude = ("tests.*" , "tests" ))
1220
1321setup (
1422 name = "onnx2pytorch" ,
15- version = "0.4.0" ,
23+ version = version ,
1624 description = "Library to transform onnx model to pytorch." ,
1725 license = "apache-2.0" ,
1826 author = "Talmaj Marinc" ,
You can’t perform that action at this time.
0 commit comments