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',
|
2022-11-09 00:44:42 +08:00
|
|
|
version='0.4.0',
|
2020-10-26 23:19:50 +08:00
|
|
|
description='You like pytorch? You like micrograd? You love tinygrad! heart',
|
|
|
|
author='George Hotz',
|
|
|
|
license='MIT',
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2023-02-12 06:41:56 +08:00
|
|
|
packages = ['tinygrad', 'tinygrad.llops', '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-02-06 23:27:01 +08:00
|
|
|
install_requires=['numpy', 'requests', 'pillow', 'tqdm', 'networkx'],
|
2020-11-03 10:09:31 +08:00
|
|
|
python_requires='>=3.8',
|
2020-12-09 18:22:47 +08:00
|
|
|
extras_require={
|
2020-12-16 15:44:08 +08:00
|
|
|
'gpu': ["pyopencl", "six"],
|
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-02-06 23:27:01 +08:00
|
|
|
'linting': [
|
|
|
|
"flake8",
|
|
|
|
"pylint",
|
|
|
|
"mypy",
|
|
|
|
"pre-commit",
|
|
|
|
],
|
|
|
|
'testing': [
|
2023-02-04 12:01:39 +08:00
|
|
|
"torch~=1.13.0",
|
2022-06-12 02:33:33 +08:00
|
|
|
"protobuf~=3.19.0",
|
2023-02-06 23:30:12 +08:00
|
|
|
"pytest",
|
2023-02-07 05:27:44 +08:00
|
|
|
"pytest-xdist",
|
2023-02-06 23:56:14 +08:00
|
|
|
"onnx~=1.12.0",
|
2022-06-12 02:33:33 +08:00
|
|
|
"onnx2torch",
|
2020-12-09 18:22:47 +08:00
|
|
|
],
|
|
|
|
},
|
2020-10-26 23:19:50 +08:00
|
|
|
include_package_data=True)
|