-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
56 lines (49 loc) · 1.43 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
[build-system]
requires = ['setuptools', 'numpy', 'wheel']
build-backend = 'setuptools.build_meta'
[tool.cibuildwheel]
build = [
# NOTE: Python 3.7 is the minimum supported version for cibuildwheel v2
"cp37-*",
"cp39-*",
"cp310-*",
"cp311-*",
]
skip = [
"cp38-*", # FIXME: CPython 3.8 builds fail due to crackfortran issue, see #67
"cp312-*" # FIXME: CPython 3.12 builds fail due to missing distutils for f2py, see #8
]
test-command = "import phaseshifts.phsh as phsh"
test-extras = ["test"]
test-requires = ["pytest"]
[tool.cibuildwheel.macos]
archs = "x86_64 arm64"
skip = [
"cp36-*arm64",
"cp37-*arm64",
]
environment = {CFLAGS="-std=c99 -fno-strict-aliasing", CC="clang", FC="gfortran", CXX="clang++"}
[tool.cibuildwheel.windows]
before-build = [
"pip install numpy delvewheel",
"build_linphsh.bat"
]
repair-wheel-command = [
# NOTE: delvewheel cannot mangle the libraries, stripping does not work
# "delvewheel show {wheel} -vv",
# "delvewheel repair -vv -w {dest_dir} {wheel} --no-mangle-all --ignore-in-wheel"
]
[tool.flake8]
max-line-length = 120
extend-ignore = "E203, E501, W503"
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
follow_imports = "skip"
show_column_numbers = true
[tool.pylint]
disable = "C0114, C0115, C0116"
max-line-length = 120
[tool.ruff]
target-version = "py38" # 3.8 is minimum
line-length = 120