-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (123 loc) · 3.3 KB
/
pyproject.toml
File metadata and controls
141 lines (123 loc) · 3.3 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
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
# Copyright 2019 SoloKeys Developers
# Copyright Nitrokey GmbH
# SPDX-License-Identifier: Apache-2.0 OR MIT
[build-system]
requires = ["poetry-core >=1,<3"]
build-backend = "poetry.core.masonry.api"
[project]
name = "pynitrokey"
version = "0.11.4"
description = "Python client for Nitrokey devices"
license = { text = "Apache-2.0 OR MIT" }
authors = [
{ name = "Nitrokey", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["classifiers"]
dependencies = [
"cffi >=1.15, <3",
"click >=8.2, <9",
"cryptography >=43, <47",
"fido2 >=2, <3",
"hidapi >=0.14, <0.15",
# Limit hidapi on Linux to version using the hidraw backend, see
# https://github.com/Nitrokey/pynitrokey/issues/601 and
# https://github.com/Nitrokey/pynitrokey/issues/707
"hidapi ==0.14.0.post2 ; sys_platform == 'linux'",
"intelhex >=2.3, <3",
"libusb1 >=3, <4",
"nethsm >=2.0.1, <3",
"nitrokey >=0.4.2, <0.5",
"nkdfu >=0.2, <0.3",
"pyusb >=1.2, <2",
"pyserial >=3.5, <4",
"requests >=2.16, <3",
"semver >=3, <4",
"tqdm >=4.64, <5",
"tlv8 >=0.10, <0.11",
]
[project.optional-dependencies]
pcsc = ["pyscard >=2, <3"]
[project.urls]
repository = "https://github.com/Nitrokey/pynitrokey"
[project.scripts]
nitropy = "pynitrokey.cli:main"
[tool.isort]
py_version = "310"
profile = "black"
[tool.mypy]
mypy_path = "stubs"
show_error_codes = true
python_version = "3.10"
strict = true
# disable strict checks for old code, see
# - https://github.com/python/mypy/issues/11401
# - https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
[[tool.mypy.overrides]]
module = [
"pynitrokey.cli.pro",
"pynitrokey.cli.start",
"pynitrokey.cli.storage",
"pynitrokey.conftest",
"pynitrokey.libnk",
"pynitrokey.start.*",
"pynitrokey.test_secrets_app",
]
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
[tool.poetry]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
]
[tool.poetry.dependencies]
python = ">= 3.10, <3.15"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = ">=25, <26"
flake8 = "*"
ipython = "*"
isort = "*"
mypy = ">=1.4, <1.5"
types-cffi = ">=1.15, <3"
types-requests = ">=2.16, <3"
types-tqdm = ">=4.64, <5"
pytest = ">=8, <9"
pytest-reporter-html1 = "*"
oath = "*"
[tool.poetry.group.pyinstaller]
optional = true
[tool.poetry.group.pyinstaller.dependencies]
pyinstaller = "^6.11.1"
pyinstaller-versionfile = { version = "==3.0.0", markers = "sys_platform=='win32'" }
[tool.pytest.ini_options]
log_cli = false
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)3s] %(message)s"
log_cli_date_format = "%H:%M:%S"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.ruff]
line-length = 120
exclude = [
"venv",
"start",
"nk3",
]
target-version = "py310"
[tool.uv]
dev-dependencies = [
# These dependencies are required for running the type checks.
"mypy >=1.4, <1.5",
"pytest >=8, <9",
"types-cffi >=1.15, <2",
"types-requests >=2.16, <3",
"types-tqdm >=4.64, <5",
# These additional lower bounds are required for --resolution lowest.
# As these are transitive dependencies, we don’t include them in our dependency list.
"fire >=0.1.2",
]