forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
150 lines (140 loc) · 4.34 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
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
[build-system]
requires = ["setuptools >= 67.7"]
build-backend = "setuptools.build_meta"
[project]
name = "python-can"
dynamic = ["readme", "version"]
description = "Controller Area Network interface module for Python"
authors = [{ name = "python-can contributors" }]
dependencies = [
"wrapt~=1.10",
"packaging >= 23.1",
"typing_extensions>=3.10.0.0",
"msgpack~=1.0.0; platform_system != 'Windows'",
"pywin32>=305; platform_system == 'Windows' and platform_python_implementation == 'CPython'",
]
requires-python = ">=3.8"
license = { text = "LGPL v3" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
"Topic :: System :: Networking",
"Topic :: Utilities",
]
[project.scripts]
can_logconvert = "can.logconvert:main"
can_logger = "can.logger:main"
can_player = "can.player:main"
can_viewer = "can.viewer:main"
[project.urls]
homepage = "https://github.com/hardbyte/python-can"
documentation = "https://python-can.readthedocs.io"
repository = "https://github.com/hardbyte/python-can"
changelog = "https://github.com/hardbyte/python-can/blob/develop/CHANGELOG.md"
[project.optional-dependencies]
lint = [
"pylint==2.17.*",
"ruff==0.0.292",
"black==23.9.*",
"mypy==1.5.*",
]
seeedstudio = ["pyserial>=3.0"]
serial = ["pyserial~=3.0"]
neovi = ["filelock", "python-ics>=2.12"]
canalystii = ["canalystii>=0.1.0"]
cantact = ["cantact>=0.0.7"]
cvector = ["python-can-cvector"]
gs_usb = ["gs_usb>=0.2.1"]
nixnet = ["nixnet>=0.3.2"]
pcan = ["uptime~=3.0.1"]
remote = ["python-can-remote"]
sontheim = ["python-can-sontheim>=0.1.2"]
canine = ["python-can-canine>=0.2.2"]
viewer = [
"windows-curses; platform_system == 'Windows' and platform_python_implementation=='CPython'"
]
mf4 = ["asammdf>=6.0.0"]
[tool.setuptools.dynamic]
readme = { file = "README.rst" }
version = { attr = "can.__version__" }
[tool.setuptools.package-data]
"*" = ["README.rst", "CONTRIBUTORS.txt", "LICENSE.txt", "CHANGELOG.md"]
doc = ["*.*"]
examples = ["*.py"]
can = ["py.typed"]
[tool.setuptools.packages.find]
include = ["can*"]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
no_implicit_optional = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = false
exclude = [
"venv",
"^doc/conf.py$",
"^build",
"^test",
"^setup.py$",
"^can/interfaces/__init__.py",
"^can/interfaces/etas",
"^can/interfaces/gs_usb",
"^can/interfaces/ics_neovi",
"^can/interfaces/iscan",
"^can/interfaces/ixxat",
"^can/interfaces/kvaser",
"^can/interfaces/nican",
"^can/interfaces/neousys",
"^can/interfaces/pcan",
"^can/interfaces/serial",
"^can/interfaces/slcan",
"^can/interfaces/socketcan",
"^can/interfaces/systec",
"^can/interfaces/udp_multicast",
"^can/interfaces/usb2can",
"^can/interfaces/virtual",
]
[tool.ruff]
select = [
"F", # pyflakes
"UP", # pyupgrade
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"PL", # pylint
"RUF", # ruff-specific rules
"C4", # flake8-comprehensions
"TCH", # flake8-type-checking
]
ignore = [
"E501", # Line too long
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"PLR", # pylint refactor
"RUF012", # mutable-class-default
]
[tool.ruff.isort]
known-first-party = ["can"]