forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
56 lines (51 loc) · 1.51 KB
/
pyproject.toml
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
[build-system]
requires = [
"cmake", # For building binary targets in the wheel.
"pyyaml", # Imported by the kernel codegen tools.
"setuptools", # For building the pip package contents.
"tomli", # Imported by extract_sources.py when using python < 3.11.
"wheel", # For building the pip package archive.
"zstd", # Imported by resolve_buck.py.
]
build-backend = "setuptools.build_meta"
[project]
name = "executorch"
# TODO(dbort): Use setuptools-git-versioning or setuptools-scm to get the
# version from the git branch state. For now, use a version that doesn't look
# like a real release.
version = "0.2.1.dev0+unknown"
# Python dependencies required for development
dependencies=[
"expecttest",
"flatbuffers",
"hypothesis",
"numpy>=1.25.2",
"packaging",
"pandas",
"parameterized",
"pytest",
"pytest-xdist",
"pyyaml",
"ruamel.yaml",
"sympy",
"tabulate",
]
# Tell setuptools to generate commandline wrappers for tools that we install
# under data/bin in the pip package. This will put these commands on the user's
# path.
[project.scripts]
flatc = "executorch.data.bin:flatc"
[tool.setuptools.package-data]
# TODO(dbort): Prune /test[s]/ dirs, /third-party/ dirs, yaml files that we
# don't need.
"*" = [
# Some backends like XNNPACK need their .fbs files.
"*.fbs",
# Some kernel libraries need their .yaml files.
"*.yaml",
]
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc"]
[tool.usort]
# Do not try to put "first-party" imports in their own section.
first_party_detection = false