-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (85 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
100 lines (85 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[project]
name = "optimum-executorch"
dynamic = ["version"]
description = "Optimum Executorch is an interface between the Hugging Face libraries and ExecuTorch"
readme = { file = "README.md", content-type = "text/markdown" }
license = { text = "Apache" }
authors = [
{ name = "HuggingFace Inc. Special Ops Team", email = "hardware@huggingface.co" },
]
requires-python = ">=3.10.0"
keywords = ["transformers", "quantization", "inference", "executorch"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"optimum~=2.0.0",
"executorch>=1.0.0",
"transformers==5.0.0rc1",
"pytorch-tokenizers>=1.0.1",
"accelerate>=0.26.0",
]
[project.optional-dependencies]
dev = [
"accelerate>=0.26.0",
"coremltools>=8.2.0",
"datasets==3.6.0",
"parameterized",
"pytest",
"safetensors",
"sentencepiece",
"numba!=0.58.0",
"librosa",
"soundfile",
"tiktoken",
"black~=23.1",
"ruff==0.4.4",
"timm",
]
[project.urls]
Homepage = "https://github.com/huggingface/optimum-executorch"
[project.entry-points."optimum.commands.register"]
executorch = "optimum.commands.register.register_export:REGISTER_COMMANDS"
# ---- setuptools config ----
[tool.setuptools]
# Equivalent of include_package_data=True
include-package-data = true
[tool.setuptools.packages.find]
# Mirrors find_namespace_packages(include=["optimum*"])
include = ["optimum*"]
namespaces = true
[tool.setuptools.dynamic]
# Pull version from the Python attribute
version = { attr = "optimum.executorch.version.__version__" }
# ---- your existing tool configs (kept, but one tweak suggested) ----
[tool.black]
line-length = 119
# Recommended to match your supported interpreters:
target-version = ["py310", "py311", "py312"]
[tool.ruff]
ignore = ["C901", "E501", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]
line-length = 119
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["optimum"]
[tool.pytest.ini_options]
markers = [
"run_slow",
"portable",
]
[build-system]
requires = ["setuptools >= 77.0.3", "wheel"]
build-backend = "setuptools.build_meta"