-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (159 loc) · 4.65 KB
/
Copy pathpyproject.toml
File metadata and controls
173 lines (159 loc) · 4.65 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = ["hatchling>=1.27", "uv-dynamic-versioning>=0.7.0"]
build-backend = "hatchling.build"
[project]
name = "cellpy"
dynamic = ["version"]
description = "Extract and manipulate data from battery data testers."
readme = "README.md"
requires-python = ">=3.13"
license = "MIT"
license-files = ["LICEN[CS]E*"]
authors = [
{ name = "Jan Petter Maehlen", email = "jepe@ife.no" },
{ name = "Asbjoern Ulvestad", email = "Asbjorn.Ulvestad@ife.no" },
{ name = "Muhammad Abdelhamid", email = "Muhammad.Abdelhamid@faam.com" },
{ name = "Meghana Sudarshan", email = "meghana.sudarshan@ife.no" },
{ name = "Julia Wind", email = "julia.wind@ife.no" },
]
keywords = ["cellpy", "battery"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"scipy",
"numpy",
"pandas>=3.0.3,<4",
"setuptools",
"matplotlib",
"openpyxl",
"PyGithub",
"tqdm",
"pint",
"requests",
"pyodbc",
"sqlalchemy>=2.0.0",
"sqlalchemy-access; platform_system == 'Windows'",
"dateparser",
"cookiecutter",
"pyyaml",
"jinja2_time",
"ipykernel",
"rich",
"charset-normalizer",
"polars",
"pyarrow>=16",
"typer",
"xmltodict",
"defusedxml",
"isal",
# cellpy-core is released on PyPI (issue cellpy/cellpy-core#44). Pin an
# exact version (==) before tagging a cellpy release so the release maps to
# a known core revision. For dual-repo development, install the sibling
# checkout editable after sync (see CONTRIBUTING.md); do not commit a
# [tool.uv.sources] path override — it breaks Dependabot lock updates.
"cellpycore==0.2.3",
"pydantic-settings>=2.14.2",
"platformdirs>=4.10.0",
"universal-pathlib>=0.3.10",
"paramiko>=5.0.0",
]
[project.optional-dependencies]
batch = ["ipython", "jupyter", "plotly", "seaborn", "kaleido>=0.1,<1.4"]
fit = ["lmfit"]
legacy-files = ["tables"]
all = ["ipython", "jupyter", "plotly", "seaborn", "kaleido>=0.1,<1.4", "lmfit", "tables"]
[project.scripts]
cellpy = "cellpy.cli:cli"
[project.urls]
Homepage = "https://github.com/jepegit/cellpy"
Repository = "https://github.com/jepegit/cellpy"
Documentation = "https://cellpy.readthedocs.io"
[dependency-groups]
dev = [
# tables is a `legacy-files` extra for users, but the test suite reads
# and writes v8 HDF5 fixtures throughout, so dev envs always carry it.
"tables",
"black",
"build",
"coverage",
"flake8",
"ipykernel",
"nox",
"lmfit",
"pytest",
"pytest-benchmark",
"pytest-timeout",
]
docs = [
"ipykernel>=7.3.0",
"matplotlib>=3.10.6",
"mkdocstrings-python>=2.0.5",
"nbconvert>=7.17.1",
"zensical>=0.0.46",
]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
# Tolerate the existing inconsistent tags (e.g. "v.0.3.0", "v0.4.2", "1.0.3a13").
# Going forward, use "vX.Y.Z" tags.
pattern = "default-unprefixed"
fallback-version = "0.0.0"
[tool.hatch.build.targets.wheel]
packages = ["cellpy"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
"/examples",
"/templates",
"/tests",
"/dev_data",
"/dev_utils",
"/testdata",
"/recipe",
"/.pytest_cache",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--durations=0 --capture=fd -v -m \"not slowtest and not smoketest and not unimportant and not unfinished and not onlylocal\""
markers = [
"slowtest: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
"skip_on_macos: skip this test when running on macOS (e.g. CI flakiness)",
"essential: marks the core smoke tests of the read -> step-table -> summary pipeline and the cellpy/cellpy-core parity contract (run with '-m essential')",
"benchmark: opt-in performance benchmarks (run benchmarks/ or pytest -m benchmark)",
"onlylocal: needs local resources (Docker SFTP, live SSH, etc.); deselected by default addopts",
]
filterwarnings = [
"ignore::DeprecationWarning:dateparser",
"ignore::UserWarning:click", # click ships inside typer
"ignore::FutureWarning:numpy",
"ignore::UserWarning:uncertainties",
]
[tool.black]
line-length = 120
[tool.coverage.run]
source = ["cellpy"]
branch = true
omit = [
"cellpy/libs/*",
"cellpy/parameters/legacy/*",
"cellpy/_version.py",
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_also = [
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
]