2020-10-26 23:19:50 +08:00
|
|
|
#!/usr/bin/env python3
|
2023-11-03 09:01:15 +08:00
|
|
|
|
|
|
|
from pathlib import Path
|
2020-10-26 23:19:50 +08:00
|
|
|
from setuptools import setup
|
|
|
|
|
2023-11-03 09:01:15 +08:00
|
|
|
directory = Path(__file__).resolve().parent
|
|
|
|
with open(directory / 'README.md', encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
|
|
|
|
|
|
|
setup(name='tinygrad',
|
2023-12-02 02:42:50 +08:00
|
|
|
version='0.8.0',
|
2023-11-03 09:01:15 +08:00
|
|
|
description='You like pytorch? You like micrograd? You love tinygrad! <3',
|
|
|
|
author='George Hotz',
|
|
|
|
license='MIT',
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2024-03-27 11:38:03 +08:00
|
|
|
packages = ['tinygrad', 'tinygrad.runtime.autogen', 'tinygrad.codegen', 'tinygrad.nn', 'tinygrad.renderer', 'tinygrad.engine',
|
2024-02-16 17:18:09 +08:00
|
|
|
'tinygrad.runtime', 'tinygrad.runtime.driver', 'tinygrad.runtime.graph', 'tinygrad.shape', 'tinygrad.features'],
|
2023-11-03 09:01:15 +08:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License"
|
|
|
|
],
|
2024-01-27 04:25:03 +08:00
|
|
|
install_requires=["numpy", "tqdm",
|
2023-11-03 09:01:15 +08:00
|
|
|
"pyobjc-framework-Metal; platform_system=='Darwin'",
|
|
|
|
"pyobjc-framework-libdispatch; platform_system=='Darwin'"],
|
|
|
|
python_requires='>=3.8',
|
|
|
|
extras_require={
|
|
|
|
'llvm': ["llvmlite"],
|
|
|
|
'arm': ["unicorn"],
|
2023-12-02 01:25:27 +08:00
|
|
|
'triton': ["triton-nightly>=2.1.0.dev20231014192330"],
|
2023-11-03 09:01:15 +08:00
|
|
|
'linting': [
|
|
|
|
"pylint",
|
|
|
|
"mypy",
|
|
|
|
"typing-extensions",
|
|
|
|
"pre-commit",
|
|
|
|
"ruff",
|
|
|
|
"types-tqdm",
|
|
|
|
],
|
2024-04-25 11:34:34 +08:00
|
|
|
'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.0.0-rc2"],
|
2023-11-03 09:01:15 +08:00
|
|
|
'testing': [
|
|
|
|
"torch",
|
2023-11-08 02:32:23 +08:00
|
|
|
"pillow",
|
2023-11-03 09:01:15 +08:00
|
|
|
"pytest",
|
|
|
|
"pytest-xdist",
|
2024-04-10 23:19:13 +08:00
|
|
|
"onnx==1.16.0",
|
2023-11-03 09:01:15 +08:00
|
|
|
"onnx2torch",
|
|
|
|
"opencv-python",
|
|
|
|
"tabulate",
|
|
|
|
"safetensors",
|
|
|
|
"transformers",
|
|
|
|
"sentencepiece",
|
|
|
|
"tiktoken",
|
|
|
|
"librosa",
|
2023-11-24 06:16:17 +08:00
|
|
|
"networkx",
|
2023-12-07 00:15:46 +08:00
|
|
|
"hypothesis",
|
2024-03-07 07:11:01 +08:00
|
|
|
],
|
2024-04-16 14:59:51 +08:00
|
|
|
'docs': [
|
|
|
|
"mkdocs-material",
|
|
|
|
"mkdocstrings[python]",
|
|
|
|
"markdown-callouts",
|
2024-04-21 20:34:08 +08:00
|
|
|
"markdown-exec[ansi]"
|
2024-04-16 14:59:51 +08:00
|
|
|
],
|
2024-03-07 07:11:01 +08:00
|
|
|
'testing_tf': [
|
2024-03-27 11:38:03 +08:00
|
|
|
"tensorflow==2.15.1",
|
2024-03-07 07:11:01 +08:00
|
|
|
"tensorflow_addons",
|
2023-11-03 09:01:15 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
include_package_data=True)
|