This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
71 lines (64 loc) · 1.94 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from setuptools import setup, find_packages
from os import path
import sys
from onnx_coreml import __version__
VERSION = __version__
here = path.abspath(path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md', "rb") as f:
long_description = f.read().decode("UTF-8")
if sys.version_info[0] == 2:
# Mypy doesn't work with Python 2
mypy = []
elif sys.version_info[0] == 3:
mypy = ['mypy==0.560']
setup(
name='onnx-coreml',
version=VERSION,
packages=find_packages(exclude=['contrib', 'docs', 'test', 'example']),
description='Convert ONNX (Open Neural Network Exchange)'
'models into Apple CoreML format.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/onnx/onnx-coreml/',
author='ONNX-CoreML Team',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development'
],
keywords='onnx coreml machinelearning ml coremltools converter neural',
install_requires=[
'click',
'numpy',
'sympy',
'onnx>=1.5.0',
'typing>=3.6.4',
'typing-extensions>=3.6.2.1',
'coremltools>=3.2',
],
setup_requires=['pytest-runner'],
tests_require=[
'pytest',
'pytest-cov',
'Pillow'
],
extras_require={
'mypy': mypy,
},
entry_points={
'console_scripts': [
'convert-onnx-to-coreml = onnx_coreml.bin.convert:onnx_to_coreml'
]
},
)