-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (88 loc) · 1.99 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ubitlogger"
version = "0.5.2"
authors = [
{ name="p4irin", email="p4irin.github.io@gmail.com" },
]
description = "A micro:bit serial port logger"
readme = "README.md"
requires-python = ">=3.8.10"
keywords = [
"microbit", "microbit-v1", "data-logger", "serial-port-listener"
]
dependencies = [
"pyserial >= 3.5",
"uflash >= 2.0.0",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
]
[project.optional-dependencies]
lint = [
"mypy >= 1.9.0",
"ruff >= 0.3.4",
]
test = [
"pytest >= 8.1.1",
"pytest-cov >= 4.1.0",
]
package = [
"build == 0.10.0",
"twine >= 4.0.2",
]
dev = [
"bumpver >= 2023.1126",
"ubitlogger[lint]",
"ubitlogger[test]",
"ubitlogger[package]",
]
[project.scripts]
ubitlogger = "ubitlogger.cli:cli"
[project.urls]
"Homepage" = "https://github.com/p4irin/ubitlogger"
"Bug Tracker" = "https://github.com/p4irin/ubitlogger/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.bumpver]
current_version = "0.5.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{version}"',
]
"src/ubitlogger/__init__.py" = [
"^__version__ = '{version}'$",
]
[tool.ruff]
exclude = [
"read_sensor*.py",
"data_receiver*.py",
]
[tool.mypy]
exclude = [
"read_sensor",
"data_receiver",
]
[[tool.mypy.overrides]]
module = [
"serial.*", "uflash",
]
ignore_missing_imports = true