tinygrad/setup.py

76 lines
2.2 KiB
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
from pathlib import Path
from setuptools import setup
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',
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',
packages = ['tinygrad', 'tinygrad.runtime.autogen', 'tinygrad.codegen', 'tinygrad.nn', 'tinygrad.renderer', 'tinygrad.engine',
'tinygrad.runtime', 'tinygrad.runtime.support', 'tinygrad.runtime.graph', 'tinygrad.shape'],
2024-08-15 08:31:46 +08:00
package_data = {'tinygrad': ['py.typed']},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License"
],
2024-09-26 16:40:18 +08:00
install_requires=[],
python_requires='>=3.8',
extras_require={
'llvm': ["llvmlite"],
'arm': ["unicorn"],
'triton': ["triton-nightly>=2.1.0.dev20231014192330"],
'linting': [
"pylint",
"mypy",
"typing-extensions",
"pre-commit",
"ruff",
"types-tqdm",
],
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.1.0-rc3"],
'testing': [
"numpy",
"torch",
"pillow",
"pytest",
"pytest-xdist",
"onnx==1.16.0",
"onnx2torch",
"opencv-python",
"tabulate",
"tqdm",
"safetensors",
"transformers",
"sentencepiece",
"tiktoken",
2024-07-02 10:33:58 +08:00
"blobfile",
"librosa",
"networkx",
"hypothesis",
"nibabel",
2024-06-15 04:47:27 +08:00
"bottle",
],
'docs': [
2024-07-30 03:54:52 +08:00
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"markdown-callouts",
"markdown-exec[ansi]",
"black",
"numpy",
],
'testing_tf': [
"tensorflow==2.15.1",
"tensorflow_addons",
]
},
include_package_data=True)