-
Notifications
You must be signed in to change notification settings - Fork 563
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (145 loc) · 4.79 KB
/
pyproject.toml
File metadata and controls
157 lines (145 loc) · 4.79 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[build-system]
requires = ["build", "wheel", "setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pandapower"
dynamic = ["version"]
authors = [
{ name = "Leon Thurner", email = "leon.thurner@retoflow.de" },
{ name = "Alexander Scheidler", email = "alexander.scheidler@iee.fraunhofer.de" },
{ name = "Mike Vogt", email = "mike.vogt@iee.fraunhofer.de"}
]
maintainers = [
{ name = "pandapower Developers", email = "info@pandapower.org" }
]
description = "An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation."
readme = "README.rst"
license-files = ["LICENSE", "AUTHORS"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
# Add the specific Python versions supported here, e.g.:
# REMINDER: When removeing or adding support for a Version here, please remember to update ALL github pipelines.
# REMINDER: The mypy config also contains the lowest supported python version
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
]
dependencies = [
"pandas~=2.3",
"networkx~=3.4",
"scipy<1.17",
"numpy>=1.26,<2.4",
"packaging~=25.0",
"tqdm~=4.67",
"deepdiff~=8.6",
"geojson~=3.2",
"typing_extensions~=4.9",
"pandera~=0.26.1"
]
keywords = [
"power system", "network", "analysis", "optimization", "automation", "grid", "electricity", "energy", "engineering", "simulation", "pandapower"
]
[project.urls]
Homepage = "https://www.pandapower.org"
Documentation = "https://pandapower.readthedocs.io"
Source = "https://www.github.com/e2nIEE/pandapower"
Repository = "https://www.github.com/e2nIEE/pandapower.git"
Issues = "https://www.github.com/e2nIEE/pandapower/issues"
Download = "https://pypi.org/project/pandapower/#files"
Changelog = "https://github.com/e2nIEE/pandapower/blob/develop/CHANGELOG.rst"
[project.optional-dependencies]
docs = [
"numpydoc~=1.9",
"matplotlib~=3.10",
"sphinx~=8.1",
"sphinx_rtd_theme~=3.0",
"sphinx-pyproject~=0.3",
"sphinxcontrib-imagesvg~=0.1",
"pandapower[converter]",
"geopandas~=1.1"
]
plotting = ["plotly~=6.3", "matplotlib~=3.10", "igraph", "geopandas~=1.1"]
test = ["pytest~=9.0", "nbmake~=1.5", "pytest-timeout", "pytest-split"]
performance = ["ortools~=9.14", "numba~=0.61", "lightsim2grid~=0.12.2"]
fileio = ["xlsxwriter~=3.2", "openpyxl~=3.1", "cryptography~=46.0", "geopandas~=1.1", "psycopg~=3.2", "lxml~=6.0"]
converter = ["matpowercaseframes~=1.1", "lxml~=6.0"]
pgm = ["power-grid-model-io~=1.2"]
control = ["shapely~=2.1"]
pandamodels = ["juliacall~=0.9"]
tutorials = ["julia", "juliacall~=0.9", "seaborn", "jupyter", "notebook"]
typing = [
"mypy~=1.18",
"pandas-stubs~=2.3",
"types-shapely~=2.1",
"types-psycopg2~=2.9",
"types-openpyxl~=3.1",
"types-networkx~=3.4",
"types-tqdm~=4.67",
"scipy-stubs~=1.15",
"pandera[mypy]~=0.26.1"
]
all = ["pandapower[plotting,performance,fileio,converter,pgm,control]"]
dev = ["pandapower[all,docs,test,typing,pandamodels,tutorials]"]
# "shapely", "pyproj", "Pyogrio" are dependencies of geopandas and should be already available ("Fiona" got dropped)
# "hashlib", "zlib", "base64" produce install problems, so they are not included
[tool.setuptools.dynamic]
version = {attr = "pandapower._version.__version__"}
[tool.setuptools.packages.find]
include = [
"pandapower*",
]
exclude = [
"pandapower.test*",
]
[tool.setuptools.package-data]
"*" = [
"*.p",
"*.m",
"*.mat",
"*.json",
"*.jl",
"*.csv"
]
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--maxfail=1", # stop after the first failure / error / timeout
"--timeout=60", # "--timeout-method=thread", # per‑test timeout in seconds (requires pytest-timeout)
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"'), e.g. in run_fast_tests"
]
filterwarnings = [
"ignore:the matrix subclass:PendingDeprecationWarning"
]
# For debug use:
#log_cli = 1
#log_cli_level = "WARN"
#log_file = "./pytest.log"
#log_file_level = "WARN"
[tool.coverage.run]
omit = [
"pandapower/test/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if __name__ == .__main__.:"
]
# styling information for ruff formatter
[tool.ruff]
line-length = 120