-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
95 lines (85 loc) · 2.05 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
87
88
89
90
91
92
93
94
95
[build-system]
requires = [
'setuptools',
'setuptools-scm',
'wheel',
'mako',
'numpy>=1.25',
'Cython != 3.0.4',
]
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
ignore = ["E731", "N802", "N803", "N806"]
select = [
# pyflakes
"F",
# pycodestyle
"E", "W",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
]
[tool.ruff.lint.isort]
known-first-party = ["tabmat"]
[tool.mypy]
python_version = '3.9'
exclude = [
"tests/",
]
no_implicit_optional = false
check_untyped_defs = true
namespace_packages = true
ignore_missing_imports = true
[tool.cibuildwheel]
skip = [
"*-win32",
"*-manylinux_i686",
"pp*",
"*-musllinux_*",
"cp36*",
"cp37*",
"cp38*",
"cp313-*",
]
test-requires = ["pytest", "pytest-xdist"]
test-command = "pytest {package}/tests/test_matrices.py"
# note: ARCHS_LINUX defined in build_wheels.yml file.
[tool.cibuildwheel.macos]
before-build = [
"bash build_tools/prepare_macos_wheel.sh",
]
[tool.cibuildwheel.macos.environment]
LDFLAGS="-Wl,-rpath,$CONDA/envs/build/lib -L$CONDA/envs/build/lib -headerpad_max_install_names"
CFLAGS="-I$CONDA/envs/build/include"
CXXFLAGS="-I$CONDA/envs/build/include"
CXX="/usr/bin/clang++"
CC="/usr/bin/clang"
JE_INSTALL_SUFFIX="local"
MACOSX_DEPLOYMENT_TARGET="12.0"
[tool.cibuildwheel.windows]
before-all = [
"C:\\Users\\runneradmin\\micromamba-bin\\micromamba.exe create -y -p envs\\build -c conda-forge \"xsimd<11|>12.1\""
]
[tool.cibuildwheel.windows.environment]
INCLUDE="D:\\\\a\\\\tabmat\\\\tabmat\\\\envs\\\\build\\\\Library\\\\include"
[tool.cibuildwheel.linux]
before-all = [
"cd ~/",
"git clone --branch 5.3.0 https://github.com/jemalloc/jemalloc.git",
"cd jemalloc",
"./autogen.sh --disable-cxx --with-jemalloc-prefix=local --with-install-suffix=local --disable-tls --disable-initial-exec-tls",
"make",
"make install_bin install_include install_lib",
"cd ~/",
"git clone --branch 12.1.1 https://github.com/xtensor-stack/xsimd.git",
"cd xsimd",
"mkdir build",
"cd build",
"cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..",
"make install"
]