forked from SeedSigner/seedsigner
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 2.42 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (77 loc) · 2.42 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
[build-system]
build-backend = "setuptools.build_meta"
# Babel is required so the isolated PEP 517 build can import setup.py's
# compile_catalog override (see setup.py). Kept in sync with
# l10n/requirements-l10n.txt. setup.py also guards the import so a build without
# babel still installs; this ensures the translation command is actually present.
requires = ["setuptools", "wheel", "Babel==2.16.0"]
[project]
authors = [{name = "SeedSigner", email = "author@example.com"}]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
description = "Build an offline, airgapped Bitcoin signing device for less than $50!"
name = "seedsigner"
readme = "README.md"
requires-python = ">=3.10"
version = "0.8.7"
[project.urls]
"Bug Tracker" = "https://github.com/SeedSigner/seedsigner/issues"
Homepage = "https://seedsigner.com/"
Repository = "https://github.com/SeedSigner/seedsigner"
[tool.coverage.html]
directory = "coverage_html_report"
skip_covered = true
skip_empty = true
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"def __str__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod"
]
# Omit; need a different approach to test modules with hardware dependencies
omit = [
"*/__init__.py",
"src/seedsigner/hardware/camera.py",
"src/seedsigner/hardware/pivideostream.py",
"src/seedsigner/hardware/displays/ST7789.py",
"src/seedsigner/hardware/displays/st7789_mpy.py",
"src/seedsigner/hardware/displays/ili9341.py",
"*/tests/*",
]
skip_covered = true
skip_empty = true
precision = 2
[tool.coverage.run]
source = ["src"]
branch = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
log_level = "DEBUG"
addopts = "-p pytest_order"
[project.optional-dependencies]
dev = [
"pytest-order>=1.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"seedsigner.resources" = ["**"]
"seedsigner.hardware" = ["io_config.json"]
[tool.setuptools.packages.find]
where = ["src"]