-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpyproject.toml
134 lines (117 loc) · 3.51 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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
[build-system]
requires = [
"setuptools",
"wheel",
"pybuild-header-dependency",
"msgpack-cxx",
"nlohmann-json",
"libboost-headers"
]
build-backend = "setuptools.build_meta"
[project]
name = "power-grid-model"
authors = [
{ name = "Contributors to the Power Grid Model project", email = "[email protected]" },
]
description = "Python/C++ library for distribution power system analysis"
readme = "README.md"
license = { text = "MPL-2.0" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: C++",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.10"
dependencies = ["numpy>=1.21.0"]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["msgpack", "pre-commit", "pylint", "pytest", "pytest-cov"]
doc = [
"sphinx",
"breathe",
"myst_nb",
"sphinx_rtd_theme",
"readthedocs-sphinx-search",
"sphinx-hoverxref",
"sphinxcontrib-mermaid>=1.0.0",
"numpydoc",
"pandas",
"gitpython",
"pylint",
]
[project.urls]
Home-page = "https://lfenergy.org/projects/power-grid-model/"
GitHub = "https://github.com/PowerGridModel/power-grid-model"
Documentation = "https://power-grid-model.readthedocs.io/en/stable/"
Mailing-list = "https://lists.lfenergy.org/g/powergridmodel"
Discussion = "https://github.com/orgs/PowerGridModel/discussions"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools.dynamic]
version = { file = "PYPI_VERSION" }
[tool.setuptools.package-data]
"power_grid_model" = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests/unit"]
addopts = [
"--cov=power_grid_model",
"--cov-report",
"term",
"--cov-report",
"html:python_cov_html",
"--cov-report",
"xml:python_coverage.xml",
"--cov-fail-under=95",
]
xfail_strict = true
[tool.black]
line-length = 120
target-version = ['py310']
[tool.isort]
profile = "black"
combine_as_imports = true
line_length = 120
[tool.pylint]
max-line-length = 120
[tool.mypy]
follow_imports = "silent"
ignore_missing_imports = true
show_column_numbers = true
non_interactive = true
install_types = true
disable_error_code = ["call-overload"] # mypy 1.14.0 does not like PGM's data_types
# CI build options
[tool.cibuildwheel]
build-frontend = "build"
build-verbosity = 1
test-extras = ["dev"]
test-command = "pytest {package}/tests"
# we do not support
# PyPy
# musllinux in aarch64
skip = ["pp*", "*-musllinux_aarch64"]
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
# force auditwheel to use manylinux_2_24 to support Amazon Linux 2 when building in manylinux_2_28
repair-wheel-command = "auditwheel repair --plat ${AUDITWHEEL_PLAT//2_28/2_24} -w {dest_dir} {wheel}"
environment = { CC = "gcc", CXX = "g++" }
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
musllinux-x86_64-image = "musllinux_1_2"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
environment = { CC = "clang", CXX = "clang++" }
[tool.cibuildwheel.windows]
archs = ["AMD64"]