tensor-sensor
/
setup.py
50 строк · 2.1 Кб
1"""
2MIT License
3
4Copyright (c) 2021 Terence Parr
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23"""
24from setuptools import setup
25
26tensorflow_requires = ['tensorflow']
27torch_requires = ['torch']
28jax_requires = ['jax', 'jaxlib']
29all_requires = tensorflow_requires + torch_requires + jax_requires
30
31exec(open('tsensor/version.py').read())
32setup(
33name='tensor-sensor',
34version=__version__,
35url='https://github.com/parrt/tensor-sensor',
36license='MIT',
37py_modules=['tsensor.parsing', 'tsensor.ast', 'tsensor.analysis', 'tsensor.viz', 'tsensor.version'],
38author='Terence Parr',
39author_email='parrt@cs.usfca.edu',
40python_requires='>=3.6',
41install_requires=['graphviz>=0.14.1','numpy','IPython', 'matplotlib'],
42extras_require = {'all': all_requires,
43'torch': torch_requires,
44'tensorflow': tensorflow_requires,
45'jax': jax_requires
46},
47description='The goal of this library is to generate more helpful exception messages for numpy/pytorch tensor algebra expressions.',
48classifiers=['License :: OSI Approved :: MIT License',
49'Intended Audience :: Developers']
50)
51