-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
50 lines (45 loc) · 1.29 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
[build-system]
requires = [
"setuptools>=42",
"wheel",
"Cython",
]
[tool.cibuildwheel]
skip = ["pp*"] # Do not build for PyPy
## Windows build configuration
[tool.cibuildwheel.windows]
archs = ["x86", 'AMD64']
before-test = [# Unittest for windows
"pip install -r \"{project}\\requirements-test.txt\"",
]
test-command = [
"xcopy /e /i \"{project}\\test\" test",
"copy \"{project}\\pytest.ini\" pytest.ini",
"pytest test -sv -m unittest --log-level=DEBUG",
"rmdir /s /q test",
]
## macOS build configuration
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"] # Build for x86_64 and arm64
before-test = [# Unittest for macos
"pip install -r {project}/requirements-test.txt",
]
test-command = [
"cp -rf {project}/test test",
"cp {project}/pytest.ini pytest.ini",
"pytest test -sv -m unittest --log-level=DEBUG",
"rm -rf test",
]
## Linux build configuration
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"] # Build for x86_64 and arm64
skip = ["pp* *musllinux*"] # dependencies do not build for musl
before-test = [# Unittest for linux
"pip install -r {project}/requirements-test.txt",
]
test-command = [
"cp -rf {project}/test test",
"cp {project}/pytest.ini pytest.ini",
"pytest test -sv -m unittest --log-level=DEBUG",
"rm -rf test",
]