-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
214 lines (167 loc) · 6.33 KB
/
pyproject.toml
File metadata and controls
214 lines (167 loc) · 6.33 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
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
# -*- coding: utf-8 -*-
# =============================================================================
# Project Configuration
# =============================================================================
[project]
name = "dreamstack_raster"
version = "0.0.2"
description = "Dreamstack Raster"
license = { text = "Proprietary" }
readme = "README.md"
requires-python = ">=3.12,<3.14"
authors = [{ name = "Scape Agency", email = "info@scape.agency" }]
maintainers = [{ name = "Lars van Vianen", email = "lars@scape.agency" }]
keywords = ["dreamstack", "raster"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: Other/Proprietary License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["dependencies"]
# =============================================================================
# Project URLs
# =============================================================================
[project.urls]
homepage = "https://scape.agency/"
repository = "https://github.com/scape-agency/dreamstack-raster"
documentation = "https://github.com/scape-agency/dreamstack-raster/doc"
# =============================================================================
# Poetry
# =============================================================================
[tool.poetry]
package-mode = true
packages = [{ include = "dreamstack", from = "src" }]
# =============================================================================
# Poetry Source
# =============================================================================
[[tool.poetry.source]]
name = "github-private"
url = "https://github.com/scape-agency"
priority = "supplemental"
# =============================================================================
# Dependencies
# =============================================================================
[tool.poetry.dependencies]
dreamstack = { git = "https://github.com/scape-agency/dreamstack.git", rev = "dev" }
# Core image processing
numpy = "^2.0.0"
pillow = "^12.1.1"
scikit-image = "^0.26.0"
opencv-python = "^4.10.0"
scipy = "^1.14.0"
# Color management (core; lightweight)
colour-science = { version = "^0.4.0", python = ">=3.12,<3.15" }
# Font/text rendering (core; small)
freetype-py = "^2.5.0"
# SVG support (core; vector i/o is widely needed)
svgwrite = "^1.4.0"
cairosvg = "^2.7.0"
# EXIF/metadata (core; tiny)
piexif = "^1.1.0"
# ----- Optional backends (kept out of base install via extras) -----
# Raw image processing (no Python 3.13 wheels yet)
rawpy = { version = "^0.26.1", optional = true, python = ">=3.12,<3.13" }
# PSD file support
psd-tools = { version = "^1.17.0", optional = true }
# HDR/EXR support
imageio = { version = "^2.35.0", optional = true }
OpenEXR = { version = "^3.4.6", optional = true }
# HEIF / HEIC
Pillow-heif = { version = "^1.3.0", optional = true }
# ML / Object Detection (pulls torch transitively via ultralytics)
ultralytics = { version = "^8.4.21", optional = true }
transformers = { version = "^5.3.0", optional = true }
groundingdino-py = { version = "^0.4.0", optional = true }
segment-anything = { version = "^1.0", optional = true }
# AI Vision / Description
chimp-openai = { git = "https://github.com/blue-chimp/chimp-openai.git", rev = "pro", optional = true }
chimp-mistral = { git = "https://github.com/blue-chimp/chimp-mistral.git", rev = "pro", optional = true }
[tool.poetry.extras]
raw = ["rawpy"]
psd = ["psd-tools"]
exr = ["imageio", "OpenEXR"]
heif = ["Pillow-heif"]
detection = [
"ultralytics",
"transformers",
"groundingdino-py",
"segment-anything",
]
vision = ["chimp-openai", "chimp-mistral"]
all = [
"rawpy",
"psd-tools",
"imageio",
"OpenEXR",
"Pillow-heif",
"ultralytics",
"transformers",
"groundingdino-py",
"segment-anything",
"chimp-openai",
"chimp-mistral",
]
# =============================================================================
# Development Dependencies
# =============================================================================
[tool.poetry.group.dev.dependencies]
# sturnus-dev = { git = "https://github.com/starling-cloud/sturnus-dev.git", rev = "pro" }
# =============================================================================
# Documentation Dependencies
# =============================================================================
ruff = "^0.15.5"
[tool.poetry.group.doc.dependencies]
# sturnus-doc = { git = "https://github.com/starling-cloud/sturnus-doc.git", rev = "pro" }
# =============================================================================
# Scripts
# =============================================================================
[tool.poetry.scripts]
main = "dreamstack_raster.__main__:main"
test = "bin.run_tests:main"
# =============================================================================
# Build System
# =============================================================================
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"
# =============================================================================
# Ruff Configuration
# =============================================================================
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
ignore = [
"E501", # Line too long (handled by formatter)
"E741", # Ambiguous variable name (l for lightness is standard in color science)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Unused imports in __init__.py are re-exports
# =============================================================================
# Pyright/Pylance Configuration
# =============================================================================
[tool.pyright]
pythonVersion = "3.12"
typeCheckingMode = "basic"
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownVariableType = false
# cv2 returns MatLike which is compatible with NDArray at runtime
reportReturnType = false
reportArgumentType = false
# Exclude non-Python config files and standard directories
exclude = [
".coveragerc",
".venv/**",
"**/node_modules",
"**/__pycache__",
"**/.*",
"tmp/**",
"bup/**",
]