-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (112 loc) · 3.48 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
# 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",
]
build-backend = "setuptools.build_meta"
[project]
name = "power-grid-model-io-native"
authors = [{ name = "Contributors to the Power Grid Model project", email = "[email protected]" }]
description = "Power Grid Model Input/Output with native support"
readme = "README.md"
license = { text = "MPL-2.0" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: C++",
"Development Status :: 2 - Pre-Alpha",
"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",
"power-grid-model>=1.8",
]
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",
# "numpydoc",
# "pandas",
# "gitpython",
# ]
[project.urls]
Home-page = "https://lfenergy.org/projects/power-grid-model-io-native/"
GitHub = "https://github.com/PowerGridModel/power-grid-model-io-native"
Documentation = "https://power-grid-model-io-native.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.pytest.ini_options]
testpaths = ["tests/unit"]
addopts = ["--cov=power_grid_model_io_native", "--cov-report", "term", "--cov-report", "html:python_cov_html", "--cov-report", "xml:python_coverage.xml", "--cov-fail-under=85"]
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
exclude = "deps/power-grid-model/"
# 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
# Python 3.13 (because NumPy is not yet compatible)
skip = ["pp*", "*-musllinux_aarch64", "cp313-*"]
[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"]