2020-10-26 23:19:50 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
directory = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
with open(os.path.join(directory, 'README.md'), encoding='utf-8') as f:
|
2020-10-26 23:54:55 +08:00
|
|
|
long_description = f.read()
|
2020-10-26 23:19:50 +08:00
|
|
|
|
|
|
|
setup(name='tinygrad',
|
2023-05-26 08:51:25 +08:00
|
|
|
version='0.6.0',
|
2023-05-04 01:21:05 +08:00
|
|
|
description='You like pytorch? You like micrograd? You love tinygrad! <3',
|
2020-10-26 23:19:50 +08:00
|
|
|
author='George Hotz',
|
|
|
|
license='MIT',
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2023-03-02 10:57:29 +08:00
|
|
|
packages = ['tinygrad', 'tinygrad.codegen', 'tinygrad.nn', 'tinygrad.runtime', 'tinygrad.shape'],
|
2020-10-26 23:19:50 +08:00
|
|
|
classifiers=[
|
2020-10-26 23:54:55 +08:00
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License"
|
2020-10-26 23:19:50 +08:00
|
|
|
],
|
2023-06-17 00:33:18 +08:00
|
|
|
install_requires=['numpy', 'requests', 'pillow', 'tqdm', 'networkx', 'pyopencl', 'PyYAML'],
|
2020-11-03 10:09:31 +08:00
|
|
|
python_requires='>=3.8',
|
2020-12-09 18:22:47 +08:00
|
|
|
extras_require={
|
2022-11-11 15:17:09 +08:00
|
|
|
'llvm': ["llvmlite"],
|
2023-01-28 08:26:24 +08:00
|
|
|
'cuda': ["pycuda"],
|
2023-02-02 03:53:57 +08:00
|
|
|
'triton': ["triton>=2.0.0.dev20221202"],
|
2023-07-13 03:52:06 +08:00
|
|
|
'webgpu': ["wgpu"],
|
2023-02-21 12:43:15 +08:00
|
|
|
'metal': ["pyobjc-framework-Metal", "pyobjc-framework-Cocoa", "pyobjc-framework-libdispatch"],
|
2023-02-06 23:27:01 +08:00
|
|
|
'linting': [
|
|
|
|
"flake8",
|
|
|
|
"pylint",
|
|
|
|
"mypy",
|
|
|
|
"pre-commit",
|
|
|
|
],
|
|
|
|
'testing': [
|
2023-03-23 14:33:50 +08:00
|
|
|
"torch",
|
2023-02-06 23:30:12 +08:00
|
|
|
"pytest",
|
2023-02-07 05:27:44 +08:00
|
|
|
"pytest-xdist",
|
2023-03-23 14:33:50 +08:00
|
|
|
"onnx",
|
2022-06-12 02:33:33 +08:00
|
|
|
"onnx2torch",
|
2023-02-27 08:55:21 +08:00
|
|
|
"opencv-python",
|
2023-05-27 23:53:32 +08:00
|
|
|
"tabulate",
|
2023-06-03 04:41:09 +08:00
|
|
|
"safetensors",
|
2023-06-17 00:33:18 +08:00
|
|
|
"types-PyYAML",
|
2023-07-04 15:47:34 +08:00
|
|
|
"cloudpickle",
|
2020-12-09 18:22:47 +08:00
|
|
|
],
|
|
|
|
},
|
2020-10-26 23:19:50 +08:00
|
|
|
include_package_data=True)
|