forked from onnx/onnx-tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (35 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
import setuptools
TOP_DIR = os.path.realpath(os.path.dirname(__file__))
with open(os.path.join(TOP_DIR, 'VERSION_NUMBER')) as version_file:
version = version_file.read().strip()
if os.getenv('TRAVIS'):
# On travis, we install from source, therefore no need to specify version.
onnx_dep = "onnx"
else:
# For user, we install the onnx release known to work with our release.
with open(os.path.join(TOP_DIR, 'ONNX_VERSION_NUMBER')) as onnx_version_file:
onnx_version = onnx_version_file.read().strip()
onnx_dep = "onnx>=" + onnx_version
setuptools.setup(
name='onnx-tf',
version=version,
description=
'Tensorflow backend for ONNX (Open Neural Network Exchange).',
install_requires=[onnx_dep, "PyYAML"],
entry_points={
"console_scripts": [
"onnx-tf=onnx_tf.cli:main",
],
},
url='https://github.com/onnx/onnx-tensorflow/',
author='Arpith Jacob, Tian Jin, Gheorghe-Teodor Bercea, Wenhao Hu',
author_email='[email protected]',
license='Apache License 2.0',
packages=setuptools.find_packages(),
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
]
)