forked from daquexian/onnx-simplifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (45 loc) · 1.34 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
40
41
42
43
44
45
46
47
48
from setuptools import setup, find_packages # type: ignore
install_requires = [
'onnx',
'onnxoptimizer >= 0.2.6',
'protobuf >= 3.7.0',
'rich'
]
try:
import onnxruntime
has_ort = True
except:
has_ort = False
install_requires.append('onnxruntime >= 1.10.0')
setup(
name='onnx-simplifier',
# The version will be updated automatically in CI
version='0.0.0',
description='Simplify your ONNX model',
author='daquexian',
author_email='[email protected]',
url='https://github.com/daquexian/onnx-simplifier',
packages=find_packages(),
package_data={'': ['LICENSE']},
license='Apache',
keywords='deep-learning ONNX',
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering',
'Topic :: Software Development'
],
python_requires='>=3.6',
entry_points={
'console_scripts': [
'onnxsim=onnxsim:main',
],
},
)