-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
241 lines (205 loc) · 6.37 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
[project]
name = "streamgen"
version = "1.1.0"
description = "🌌 a framework for generating streams of labeled data."
authors = [
{name = "Laurenz Farthofer", email = "[email protected]"}
]
readme = "README.md"
license = "MIT"
keywords = [
"Python",
"Data Generation",
"Data Streams",
"Continual Learning",
"Data Structures",
"Function Composition",
]
[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "streamgen" }]
repository = "https://github.com/Infineon/StreamGen"
documentation = "https://infineon.github.io/StreamGen/"
[tool.poe.tasks]
export = "poetry export -f requirements.txt --with dev --all-extras --without-hashes --without-urls -o requirements.txt"
test = "coverage run --source=streamgen -m pytest -vv --durations=8"
convert_notebooks = "jupyter nbconvert --to markdown --config .jupyter/cfg.py"
publish_documentation = "portray on_github_pages"
build_documentation = "portray in_browser"
docs = ["convert_notebooks", "publish_documentation"]
docs_local = ["convert_notebooks", "build_documentation"]
build_paper = "docker run --rm --volume $PWD/docs:/data --env JOURNAL=joss openjournals/inara"
[tool.poetry.dependencies]
python = "^3.11"
# 🌳 Graphs and Trees
anytree = ">=2.7.0"
graphviz = ">=0.20.3"
# 📄 Data handling
numpy = ">=1.26.4"
pandas = ">=2.2.1"
# 🖼️ Visualizations
matplotlib = ">=3.8.3"
seaborn = ">=0.13.2"
# ✍️ Typing
beartype = "<0.18"
# 🖨️ Logging
loguru = ">=0.7.2"
rich = ">=13.7.1"
# 🔁 Continual Learning
#avalanche-lib = { version = "^0.5.0", optional = true }
continuum = { version = ">=1.2.7", optional = true }
# version pins required for an import error caused by avalanche
torch = { version = ">=2.3", optional = true }
pytorchcv = { version = ">=0.0.67", optional = true }
# 👾 Example/Application Dependencies
polars = { version = ">=0.20.13", optional = true }
ipympl = { version = ">=0.9.4", optional = true }
scikit-image = { version = ">=0.24", optional = true }
[tool.poetry.extras]
examples = ["polars", "ipympl", "scikit-image"]
cl = [
#"avalanche-lib",
"continuum",
"torch",
"pytorchcv"]
all = [
"polars",
"ipympl",
"scikit-image",
#"avalanche-lib",
"continuum",
]
[tool.poetry.group.dev.dependencies]
ruff = ">=0.3.4"
pre-commit = ">=3.6.2"
poethepoet = ">=0.25.0"
pytest = ">=8.0.2"
coverage = ">=7.4.3"
jupyter = ">=1.0.0"
ipywidgets = ">=8.1.2"
nbconvert = ">=7.16.2"
portray = ">=1.8.0"
itables = ">=2.0.0"
qpsolvers = { extras = [
"open-source-solvers",
], version = ">=4.3.2" } # explicit install required to solve plotting issue in pytest
towncrier = ">=24.7.1"
[tool.ruff]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"dist",
"venv",
"tests",
"examples"
]
line-length = 140
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"RUF001",
"D211",
"D213",
"EXE003",
"TC003",
"TD002",
"PD901",
"EXE001",
"EXE005",
"PLR0913",
"UP035",
"C901"
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.portray]
modules = ["streamgen"]
extra_dirs = ["examples"]
[tool.portray.mkdocs]
repo_name = "Infineon/StreamGen"
repo_url = "https://github.com/Infineon/StreamGen"
edit_uri = "https://github.com/Infineon/StreamGen/edit/main/docs"
copyright = "Copyright (c) 2024 Infineon Technologies AG. All rights reserved."
[tool.portray.mkdocs.theme]
name = "material"
favicon = "docs/images/milky-way_animated.png"
logo = "docs/images/milky-way_animated.png"
[tool.portray.mkdocs.theme.icon]
repo = "material/github"
# Documentation Navigation
[[tool.portray.mkdocs.nav]]
"🏘️ Home" = "README.md"
[[tool.portray.mkdocs.nav]]
"🏛️ Motivation and History" = "docs/motivation_and_history.md"
[[tool.portray.mkdocs.nav]]
"🗂️ Project Structure" = "docs/project_structure.md"
[[tool.portray.mkdocs.nav]]
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"🎲 Sampling from Static Distributions" = "examples/time series classification/01-static-distributions.md"
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"🌌 Creating Data Streams" = "examples/time series classification/02-data-streams.md"
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"📊 Data Drift Scenarios" = "examples/time series classification/03-drift-scenarios.md"
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"🏷️ Multi-Label Generation" = "examples/time series classification/04-multi-label-generation.md"
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"🌐 Wafer Map Generation - WM811k patterns" = "examples/wafer_map_generation.md"
[[tool.portray.mkdocs.nav."🪐📓 User Guide"]]
"🌐 Wafer Map Generation - generated patterns" = "examples/wafer_map_scratch_generation.md"
[[tool.portray.mkdocs.nav]]
[[tool.portray.mkdocs.nav."👨💻 Developers"]]
"⚒️ Guide" = "docs/developer_guide.md"
[[tool.portray.mkdocs.nav."👨💻 Developers"]]
"⚗️ Testing" = "docs/testing.md"
[[tool.portray.mkdocs.nav]]
"🕰️ Changelog" = "CHANGELOG.md"
[tool.towncrier]
package = "streamgen"
directory = "changelog"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}](https://github.com/Infineon/StreamGen/tree/{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/Infineon/StreamGen/issues/{issue})"
[[tool.towncrier.type]]
directory = "security"
name = "❗ Security"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "➖ Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "🔥 Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "➕ Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "✨ Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "🐛 Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "📦 Misc"
showcontent = true
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"