-
Notifications
You must be signed in to change notification settings - Fork 185
/
pyproject.toml
71 lines (62 loc) · 2.11 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[project]
name = "nncase"
dynamic = ["version"]
requires-python = ">=3.9"
authors = [{ name = "sunnycase" }, { email = "[email protected]" }]
maintainers = [{ name = "sunnycase" }, { email = "[email protected]" }]
readme = "README.md"
description = "A neural network compiler for AI accelerators"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
keywords = ["kendryte", "nn", "compiler", "k210", "k510", "k230"]
dependencies = ["numpy"]
[project.urls]
homepage = "https://github.com/kendryte/nncase"
[build-system]
requires = ["setuptools>=42", "wheel", "conan==2.6.0", "gitpython"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build = ["cp39*", "cp310*", "cp311*", "cp312*", "cp313*"]
skip = "*musllinux*"
manylinux-x86_64-image = "sunnycase/manylinux_2_28_x86_64:1.1"
test-requires = "pytest"
test-command = [
"pytest {project}/tests/other"
]
[tool.cibuildwheel.environment]
PYTHONPATH = "{project}/tests:$PYTHONPATH"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
before-build = [
"rm -f {project}/CMakeUserPresets.json",
"pip install auditwheel==6.0.0"
]
[tool.cibuildwheel.linux]
archs = ["x86_64"]
before-build = [
"rm -f {project}/CMakeUserPresets.json",
"pip install https://github.com/sunnycase/auditwheel/releases/download/6.0.0/auditwheel-6.0.0-py3-none-any.whl"
]
repair-wheel-command = "LD_LIBRARY_PATH=/usr/lib64 auditwheel repair -w {dest_dir} {wheel} --exclude libvulkan.so.1,libgomp.so.1"
[tool.cibuildwheel.linux.environment]
CC = "gcc-14"
CXX = "g++-14"
[tool.cibuildwheel.macos]
archs = ["arm64"]
before-build = [
"rm -f {project}/CMakeUserPresets.json",
"pip install auditwheel==6.0.0",
]
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "12"
SYSTEM_VERSION_COMPAT = "0"