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',
|
2024-08-14 07:15:36 +08:00
|
|
|
version='0.9.2',
|
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-07-13 02:06:42 +08:00
|
|
|
'tinygrad.runtime', 'tinygrad.runtime.support', 'tinygrad.runtime.graph', 'tinygrad.shape'],
|
2024-08-15 08:31:46 +08:00
|
|
|
package_data = {'tinygrad': ['py.typed']},
|
2023-11-03 09:01:15 +08:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License"
|
|
|
|
],
|
2024-09-26 16:40:18 +08:00
|
|
|
install_requires=[],
|
2023-11-03 09:01:15 +08:00
|
|
|
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-09-29 09:45:37 +08:00
|
|
|
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.1.0-rc3"],
|
2023-11-03 09:01:15 +08:00
|
|
|
'testing': [
|
2024-09-26 16:44:59 +08:00
|
|
|
"numpy",
|
2023-11-03 09:01:15 +08:00
|
|
|
"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",
|
2024-06-10 05:46:03 +08:00
|
|
|
"tqdm",
|
2023-11-03 09:01:15 +08:00
|
|
|
"safetensors",
|
|
|
|
"transformers",
|
|
|
|
"sentencepiece",
|
|
|
|
"tiktoken",
|
2024-07-02 10:33:58 +08:00
|
|
|
"blobfile",
|
2023-11-03 09:01:15 +08:00
|
|
|
"librosa",
|
2023-11-24 06:16:17 +08:00
|
|
|
"networkx",
|
2023-12-07 00:15:46 +08:00
|
|
|
"hypothesis",
|
2024-04-29 10:34:18 +08:00
|
|
|
"nibabel",
|
2024-06-15 04:47:27 +08:00
|
|
|
"bottle",
|
2024-03-07 07:11:01 +08:00
|
|
|
],
|
2024-04-16 14:59:51 +08:00
|
|
|
'docs': [
|
2024-07-30 03:54:52 +08:00
|
|
|
"mkdocs",
|
2024-04-16 14:59:51 +08:00
|
|
|
"mkdocs-material",
|
|
|
|
"mkdocstrings[python]",
|
|
|
|
"markdown-callouts",
|
2024-05-16 01:50:25 +08:00
|
|
|
"markdown-exec[ansi]",
|
2024-09-26 16:44:59 +08:00
|
|
|
"black",
|
|
|
|
"numpy",
|
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)
|