-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (62 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
73 lines (62 loc) · 1.82 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
[project]
name = "smpmgr"
dynamic = ["version"]
description = "Simple Management Protocol (SMP) Manager for remotely managing MCU firmware"
authors = [{ name = "JP Hutchins", email = "jp@intercreate.io" }]
readme = "README.md"
license = "Apache-2.0"
[tool.poetry]
packages = [{ include = "smpmgr" }]
version = "0.0.0"
[tool.poetry.scripts]
smpmgr = "smpmgr.main:app"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
[tool.poetry-dynamic-versioning]
strict = true
enable = true
vcs = "git"
style = "semver"
metadata = true
tagged-metadata = true
dirty = true
fix-shallow-repository = true
pattern = '(?P<base>\d+\.\d+\.\d+)'
format-jinja = "{% if distance == 0 %}{{ base }}{% if dirty %}+dirty{% endif %}{% else %}{{ base }}-dev{{ distance }}+g{{ commit }}{% if dirty %}.dirty{% endif %}{% endif %}"
[tool.poetry.dependencies]
python = ">=3.11, <4"
smpclient = { extras = ["all"], version = "^7" }
typer = { extras = ["all"], version = "^0.24.0" }
readchar = "^4.0.5"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
black = "^23.11.0"
flake8 = "^6.1.0"
isort = "^5.12.0"
mypy = "^1.7.0"
mypy-extensions = "^1.0.0"
types-pyserial = "^3.5.0.11"
pyinstaller = { version = "^6.3.0", python = "<3.15" }
poetry-dynamic-versioning = "^1.7.1"
[tool.black]
line-length = 100
skip-string-normalization = true
extend-exclude = '''
/(
\.poetry
)/
'''
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
extend_skip = [".poetry"]
[tool.mypy]
disallow_untyped_defs = true
exclude = ['.venv', 'build', 'dist', ".poetry"]
[tool.pytest.ini_options]
filterwarnings = ["ignore:The --rsyncdir:DeprecationWarning"]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"