forked from selfcustody/krux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (68 loc) · 3.15 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
# The MIT License (MIT)
# Copyright (c) 2021-2023 Krux contributors
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
[tool.poetry]
name = "krux"
version = "24.03.0"
description = "Open-source signing device firmware for Bitcoin"
authors = ["Jeff S <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.9.1"
translate = "^3.6.1"
embit = { path = "./vendor/embit/", develop = true }
ur = { path = "./vendor/foundation-ur-py/", develop = true }
urtypes = { path = "./vendor/urtypes/", develop = true }
# Docs site dependencies. Optional extras
mkdocs = { version = "^1.5.2", optional = true }
mkdocs-material = { version = "^9.4.14", optional = true }
urllib3 = "^2.1.0" # Used by mkdocs-material, forces updated secure version
mkdocs-static-i18n = { version = "^0.46", optional = true }
pymdown-extensions = { version = "^10.0", optional = true }
# Simulator dependencies. Optional extras
numpy = { version = "^1.25.2", optional = true }
opencv-python = { version = "^4.8.0.74", optional = true }
Pillow = { version = "^10.0.1", optional = true }
pygame = { version = "^2.5.0", optional = true }
pyzbar = { version = "^0.1.9", optional = true }
[tool.poetry.group.dev.dependencies]
black = "^24.1.1"
pylint = "^2.12.2"
pytest = "^7.4.3"
pytest-cov = "^3.0.0"
pytest-mock = "^3.6.1"
PyQRCode = "^1.2.1"
pycryptodome = "^3.17.0"
poethepoet = "^0.24.4"
[tool.poetry.extras]
docs = ["mkdocs", "mkdocs-material", "mkdocs-static-i18n", "pymdown-extensions"]
simulator = ["numpy", "opencv-python", "Pillow", "pygame", "pyzbar"]
[tool.poe.tasks]
# tasks for format code with black
# all tasks that start with `_` are'nt callable
format-src = "black ./src"
format-tests = "black ./tests"
format = ["format-src", "format-tests"]
# tasks for lint code with pylint
# all tasks that start with `_` are'nt callable
lint = "pylint ./src"
# tasks for test code
test = "poetry run pytest --cache-clear --cov src/krux --cov-report html ./tests"
test-verbose = "poetry run pytest --cache-clear --cov src/krux --cov-report html --show-capture all --capture tee-sys -r A ./tests"
# pre commit (do formatting, linting and tests)
pre-commit = ["format", "lint", "test"]
# run docs locally
docs = "poetry run mkdocs serve"