-
Notifications
You must be signed in to change notification settings - Fork 61
/
pyproject.toml
134 lines (120 loc) · 3.49 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[project]
name = "arbor"
dynamic = ["version"]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
description = "High performance simulation of networks of multicompartment neurons."
requires-python = ">=3.9"
keywords = ["simulator", "neuroscience", "morphological detail", "HPC", "GPU", "C++"]
authors = [
{name = "Arbor Dev Team", email = "[email protected]"}
]
maintainers = [
{name = "Arbor Dev Team", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: C++"
]
dependencies = [
"numpy"
]
[project.scripts]
modcc = "arbor:modcc"
arbor-build-catalogue = "arbor:build_catalogue"
[tool.scikit-build]
cmake.args = [
"-DARB_WITH_PYTHON=ON",
]
sdist.include = ["ext/*/.git"]
wheel.install-dir = "arbor"
wheel.packages = []
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "VERSION"
regex = "(?P<value>\\d+\\.\\d+\\.\\d+(-.+)?)"
[tool.ruff]
exclude = [
".direnv",
".eggs",
".git",
".ipynb_checkpoints",
"_deps",
".ruff_cache",
".venv",
".vscode",
"build",
"dist",
"ext",
"doc/scripts/inputs.py",
"doc/scripts/make_images.py",
".*",
"spack/package.py"]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
ignore = [ # for black
"E203", "E231",
# zealous line lengths
"E501",
# ambiguous varnames I ./. l etc
"E741",
# Ruff doesn't like this rule
"ISC001",
# old school zip
"B905"]
select = ["C", "E", "F", "W", "B"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
mccabe.max-complexity = 15
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"python/example/brunel/analysis.py" = ["F405", "F403"]
"python/example/brunel/arbor_brunel.py" = ["F405", "F403"]
"python/example/brunel/nest_brunel.py" = ["F405", "F403"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# Disable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = false
docstring-code-line-length = "dynamic"
[project.urls]
homepage = "https://arbor-sim.org"
documentation = "https://docs.arbor-sim.org"
repository = "https://github.com/arbor-sim/arbor"
changelog = "https://github.com/arbor-sim/arbor/releases"
[build-system]
requires = [
"scikit-build-core",
"numpy",
"pybind11-stubgen",
]
build-backend = "scikit_build_core.build"
[tool.cibuildwheel]
build-frontend = "build"
build = ["*linux*","*macosx*"]
skip = ["cp36*", "cp37*", "cp38*", "*musllinux*"]
test-command = "python -m unittest discover -v -s {project}/python"
dependency-versions = "latest"
[tool.cibuildwheel.macos]
#archs = ["universal2"]
archs = ["arm64", "x86_64"]
environment = { MACOSX_DEPLOYMENT_TARGET = "12.0.1" }
[tool.cibuildwheel.linux]
archs = ["x86_64"]
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
#TBD