forked from jsnyder/stm32loader
-
Notifications
You must be signed in to change notification settings - Fork 55
/
pyproject.toml
116 lines (102 loc) · 2.62 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "stm32loader"
authors = [
{name = "jsnyder"},
{name = "Floris Lambrechts", email = "[email protected]"},
]
readme = "README.md"
description = "Flash firmware to STM32 microcontrollers using Python."
license = {file = "LICENSE"}
requires-python = ">=3.9"
dependencies = [
"pyserial",
"progress",
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Natural Language :: English",
"Operating System :: OS Independent",
]
dynamic = ["version"]
[project.optional-dependencies]
hex = [
"intelhex",
]
dev = [
"wheel",
"twine",
"pylint",
"flake8",
"flake8-isort",
"black",
"bump-my-version",
"nox",
"cogapp",
]
[project.scripts]
stm32loader = "stm32loader.__main__:main"
[project.urls]
Home = "https://github.com/florisla/stm32loader"
BugTracker = "https://github.com/florisla/stm32loader/issues"
SourceCode = "https://github.com/florisla/stm32loader"
[tool.bumpversion]
current_version = "0.7.1-dev0"
commit = true
tag = true
message = "release: Bump version number from v{current_version} to v{new_version}"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(-(?P<release>[^\\d]+)(?P<devrelease>\\d+))?"
serialize = [
"{major}.{minor}.{patch}-{release}{devrelease}",
"{major}.{minor}.{patch}",
]
[tool.bumpversion.parts.release]
optional_value = "release"
values = [
"dev",
"release",
]
[[tool.bumpversion.files]]
filename = "stm32loader/__init__.py"
parse = "\\((?P<major>\\d+),\\s(?P<minor>\\d+),\\s(?P<patch>\\d+)(\\s*,\\s*\"(?P<release>[^\"]+)\"\\s*,\\s*(?P<devrelease>\\d+))?\\)"
serialize = [
"({major}, {minor}, {patch}, \"{release}\", {devrelease})",
"({major}, {minor}, {patch})",
]
search = "__version_info__ = {current_version}"
replace = "__version_info__ = {new_version}"
[tool.black]
line-length = 98
target-version = [
"py39",
"py310",
"py311",
]
exclude = '''
/(
\.git
| \.idea
| __pycache__
| build
| dist
| .*\.egg-info
)/
'''
[tool.pytest.ini_options]
addopts = "--strict-markers -m 'not (hardware or hardware_missing)'"
markers = [
"hardware",
"missing_hardware",
]
[tool.isort]
line_length = 98
multi_line_output = 2