forked from OctoPrint/OctoPrint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
271 lines (245 loc) · 7.8 KB
/
pyproject.toml
File metadata and controls
271 lines (245 loc) · 7.8 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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "OctoPrint"
dynamic = ["version", "license"]
authors = [
{name = "Gina Häußge", email = "gina@octoprint.org"}
]
maintainers = [
{name = "Gina Häußge", email = "gina@octoprint.org"}
]
description = "The snappy web interface for your 3D printer"
readme = {file = "README.md", content-type = "text/markdown"}
keywords = [
"3dprinting",
"3dprinter",
"3d-printing",
"3d-printer",
"octoprint"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Manufacturing",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Natural Language :: German",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: JavaScript",
"Topic :: Printing",
]
requires-python = ">=3.9, <3.15"
dependencies = [
# bundled plugins
"OctoPrint-FileCheck>=2024.11.12",
"OctoPrint-FirmwareCheck>=2021.10.11",
"OctoPrint-PiSupport>=2023.10.10",
# core deps
"argon2-cffi>=23.1.0",
"Babel>=2.16,<2.17", # breaking changes can happen on minor version increases
"cachelib>=0.13.0,<0.14",
"Click>=8.1.8,!=8.2.0,<9", # 8.2.0 has broken flags, see pallets/click#2894
"colorlog>=6.9.0,<7",
"emoji>=2.14.1,<3",
"feedparser>=6.0.11,<7",
"filetype>=1.2.0,<2",
"Flask-Assets>=2.1.0,<3",
"Flask-Babel>=4.0.0,<5",
"Flask-Login>=0.6.3,<0.7", # breaking changes can happen on minor version increases
"Flask-Limiter>=3.10.1,<3.11",
"flask>=3.1,<3.2", # breaking changes can happen on minor version increases (with deprecation warnings)
"frozendict>=2.4.6,<3",
"gcode-thumbnail-tool>=0.1.0",
"ifaddr>=0.2.0,<0.3", # breaking changes seem to happen on minor version increases, let's be a bit conservative here
"limits<5", # dependency of Flask-Limiter, v5 was released days before 1.11.0 and contains backwards incompatibilities, pinning upper limit out of caution
"markdown>=3.7,<3.8",
# The sdist of markupsafe 3.0.3+ fails to build under pip < 21.2 (e.g. Bullseye on RPi/OctoPi 1.0.0) due to the latter vendoring a buggy toml library.
# The following environment markers should hopefully limit the pin to affected environments, adequately old python + ARMv7 (for other platforms there are wheels available).
"markupsafe<=3.0.2 ; python_version<='3.9' and platform_machine=='armv7l'",
"netaddr>=1.3.0,<1.4", # changelog hints at breaking changes on minor version increases
"packaging>=24.2",
"libpass>=1.8.1,<2",
"octoprint-plugin-tool",
"pathvalidate>=3.2.3,<4",
"psutil>=7,<8",
"pydantic>=2.10.6,<3",
"pylru>=1.2.1,<2",
"pyserial>=3.5,<4",
"pytz",
"PyYAML>=6.0.2,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
"requests>=2.32.3,<3",
"sarge==0.1.7.post1",
"semantic_version>=2.10.0,<3",
"sentry-sdk>=2.20.0,<3",
"setuptools",
"tornado>=6.5.1,<6.6",
"watchdog>=6,<7",
"websocket-client>=1.8.0,<1.9", # breaking changes can happen on patch version increases, changelog incomplete
"werkzeug>=3.1.3,<3.2", # breaking changes can happen on minor version increases
"wrapt>=1.17.2,<1.18",
"zeroconf>=0.141,<0.142", # breaking changes can happen on minor version increases (despite semantic versioning)
"zipstream-ng>=1.8.0,<2.0.0",
# vendored deps
"blinker>=1.9.0,<1.10.0", # dependency of flask_principal
"more-itertools>=10.6.0", # dependency of class-doc
"regex", # dependency of awesome-slugify
"unidecode", # dependency of awesome-slugify
# plugin deps
# "OctoPrint-Setuptools>=1.0.3", # makes sure plugins can import this on setup.py based install
"future", # some plugins might still depend on this but not in their own requirements
"wheel", # makes sure plugins can be built as wheels in OctoPrint's venv, see #4682
# OS specific deps
"appdirs ; sys_platform=='darwin'"
]
[project.optional-dependencies]
develop = [
# Testing dependencies
"ddt",
"mock>=5.1.0,<6",
"pytest-doctest-custom>=1.0.0,<2",
"pytest>=8.3.4,<9",
"time-machine",
# formatting, liniting, etc
"ruff",
# pre-commit
"pre-commit",
# profiler
"pyinstrument",
# dev task related
"go-task-bin",
"pip-check",
'tomli>=1.1.0 ; python_version < "3.11"',
"tomli-w"
]
plugins = [
"cookiecutter>=2.6.0,<3"
]
docs = [
"sphinx>=8.2.3,<9",
"sphinx-autobuild>=2024.10.3",
"sphinxcontrib-httpdomain>=1.8.1,<2",
"sphinx-immaterial>=0.13.5,<1",
"myst-parser>=4.0.1,<5",
"autodoc_pydantic",
]
[project.scripts]
octoprint = "octoprint:main"
[project.urls]
homepage = "https://octoprint.org"
issues = "https://github.com/OctoPrint/OctoPrint/issues"
source = "https://github.com/OctoPrint/OctoPrint"
funding = "https://support.octoprint.org"
documentation = "https://docs.octoprint.org"
community = "https://help.octoprint.org"
[tool.setuptools]
include-package-data = true
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
version = {attr = "octoprint.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["octoprint*"]
[tool.ruff]
exclude = [
# repo specific
"src/octoprint/vendor",
# standard stuff
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 90
indent-width = 4
# Assume Python 3.9
target-version = "py39"
[tool.ruff.lint]
select = ["B", "C", "E", "F", "I", "W", "B9"]
ignore = [
"E203",
"E231",
"E265",
"E266",
"E402",
"E501",
"E731",
"E741",
"W605",
"C901",
]
fixable = ["I", "C4", "E"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = [
"octoprint",
"octoprint_setuptools",
"octoprint_client",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.djlint]
ignore="H005,H007,H019,H021,H023,H030,H031,T002"
max_blank_lines=1
use_gitignore=true
[tool.codespell]
skip = '*.po,*.min.js,.git,*/vendor/*,*/lib/*,*/bootstrap/*,*/node_modules/*,*/translations/*,*/venv*,*/.*,*/build/*,*/_build/*,setup.cfg,AUTHORS.md'
ignore-words = '.codespell_ignore_words'
quiet-level = 3
count = true
[tool.check-wheel-contents]
ignore = 'W002,W004,W009'