-
-
Notifications
You must be signed in to change notification settings - Fork 996
/
pyproject.toml
86 lines (74 loc) · 2.2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
requires-python = ">=3.9"
[tool.cibuildwheel]
skip = "{pp*,}"
[tool.cibuildwheel.macos]
before-all = [
"./tools/cibuildwheel/setup_boost.sh $BOOST_VERSION $BOOST_ROOT",
"brew install openssl"
]
test-command = [
"cd {project}/bindings/python",
"python test.py"
]
[tool.cibuildwheel.macos.environment]
BOOST_BUILD_PATH = "/tmp/boost/tools/build"
BOOST_ROOT = "/tmp/boost"
BOOST_VERSION = "1.83.0"
PATH = "/tmp/boost:$PATH"
[[tool.cibuildwheel.overrides]]
before-all = [
"./tools/cibuildwheel/setup_boost.sh $BOOST_VERSION $BOOST_ROOT",
"./tools/cibuildwheel/setup_ccache_on_manylinux.sh",
"./tools/cibuildwheel/setup_openssl.sh",
"yum install -y glibc-static" # needed for libutil.a and libdl.a
]
before-test = "ccache -s"
select = "*-manylinux_*"
test-command = [
"cd {project}/bindings/python",
"python test.py"
]
[tool.cibuildwheel.overrides.environment] # sub-table of previous block!
BOOST_BUILD_PATH = "/tmp/boost/tools/build"
BOOST_ROOT = "/tmp/boost"
BOOST_VERSION = "1.83.0"
PATH = "/usr/local/ccache/bin:/tmp/boost:$PATH"
[[tool.cibuildwheel.overrides]]
before-all = [
"./tools/cibuildwheel/setup_boost.sh $BOOST_VERSION $BOOST_ROOT",
"./tools/cibuildwheel/setup_openssl.sh",
"apk add ccache openssl-dev openssl-libs-static"
]
before-test = "ccache -s"
select = "*-musllinux_*"
test-command = [
"cd {project}/bindings/python",
"python test.py"
]
[tool.cibuildwheel.overrides.environment] # sub-table of previous block!
BOOST_BUILD_PATH = "/tmp/boost/tools/build"
BOOST_ROOT = "/tmp/boost"
BOOST_VERSION = "1.83.0"
PATH = "/usr/lib/ccache/bin:/tmp/boost:$PATH"
[[tool.cibuildwheel.overrides]]
before-all = [
"bash -c './tools/cibuildwheel/setup_boost.sh $BOOST_VERSION $BOOST_ROOT'"
]
select = "*-win32"
[[tool.cibuildwheel.overrides]]
before-all = [
"bash -c './tools/cibuildwheel/setup_boost.sh $BOOST_VERSION $BOOST_ROOT'"
]
select = "*-win_amd64"
[tool.cibuildwheel.windows]
test-command = '''bash -c "cd '{project}/bindings/python' && python test.py"'''
[tool.cibuildwheel.windows.environment]
BOOST_BUILD_PATH = 'c:/boost/tools/build'
BOOST_ROOT = 'c:/boost'
BOOST_VERSION = "1.83.0"
PATH = 'c:/boost;$PATH'
[tool.isort]
profile = "google"
single_line_exclusions = []
src_paths = ["."]