-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
23 lines (19 loc) · 900 Bytes
/
Copy pathpyproject.toml
File metadata and controls
23 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[build-system]
requires = [
"setuptools>=68",
"wheel",
"cmake>=3.22",
"ninja",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-*"
skip = "pp* *-musllinux_* *-manylinux_i686 *-win32"
test-command = "python -c \"import embeddings_cpp, embeddings_cpp._C as c; assert 'Snowflake/snowflake-arctic-embed-m-v2.0' in embeddings_cpp.list_models(); assert c.PoolingMethod.CLS\""
[tool.cibuildwheel.linux]
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal"
environment = { PATH = "$HOME/.cargo/bin:$PATH", EMBEDDINGS_CPP_NATIVE = "0", CMAKE_BUILD_PARALLEL_LEVEL = "2" }
[tool.cibuildwheel.macos]
environment = { EMBEDDINGS_CPP_NATIVE = "0", MACOSX_DEPLOYMENT_TARGET = "11.0", CMAKE_BUILD_PARALLEL_LEVEL = "2" }
[tool.cibuildwheel.windows]
environment = { EMBEDDINGS_CPP_NATIVE = "0", CMAKE_BUILD_PARALLEL_LEVEL = "2" }