-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
91 lines (78 loc) · 1.75 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hid-tools"
dynamic = ["version"]
description = "HID tools"
readme = "README.md"
license = "GPL-2.0-only"
requires-python = ">=3.9"
authors = [
{ name = "Benjamin Tissoires", email = "benjamin.tissoires@redhat.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
]
dependencies = [
"click",
"parse",
"pyyaml",
"typing_extensions",
]
[project.optional-dependencies]
uhid = [
"pyudev",
]
[project.scripts]
hid-decode = "hidtools.cli.decode:main"
hid-feature = "hidtools.cli.feature:main"
hid-recorder = "hidtools.cli.record:main"
hid-replay = "hidtools.cli.replay:main"
[project.urls]
Homepage = "http://gitlab.freedesktop.org/libevdev/hid-tools"
[tool.hatch.version]
path = "hidtools/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"hidtools",
"man/*.md",
]
[tool.hatch.build.targets.wheel.hooks.custom]
dependencies = [
"pypandoc_binary",
]
[tool.hatch.build.targets.wheel.shared-data]
"dist/man" = "share/man/man1"
[tool.hatch.build.targets.wheel]
include = [
"hidtools",
]
[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
"pytest",
"attrs",
"hatch",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:.}"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-retry",
"libevdev",
"pyudev",
"attrs",
"parse",
"click",
"pyyaml",
"typing_extensions",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.test.scripts]
run = "pytest tests/"