-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpyproject.toml
132 lines (115 loc) · 3.29 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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# 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 = "powergridmodel@lfenergy.org" },
]
description = "Python/C++ library for distribution power system analysis"
readme = "README.md"
license = "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",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.11"
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",
"sphinxcontrib-tikz",
"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 = ['py311']
[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"]
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++", MACOSX_DEPLOYMENT_TARGET = "13.3" }
[tool.cibuildwheel.windows]
archs = ["AMD64"]