2020-08-08 16:24:22 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "trezor-firmware"
|
|
|
|
version = "0.0.0"
|
|
|
|
description = ""
|
|
|
|
authors = ["SatoshiLabs <info@satoshilabs.com>"]
|
2024-11-25 18:35:17 +00:00
|
|
|
package-mode = false
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
# all
|
2024-02-28 14:11:47 +00:00
|
|
|
python = "^3.8.1"
|
2021-01-20 10:53:01 +00:00
|
|
|
trezor = {path = "./python", develop = true}
|
2020-08-08 16:24:22 +00:00
|
|
|
scons = "*"
|
|
|
|
protobuf = "*"
|
2020-10-02 10:16:28 +00:00
|
|
|
nanopb = "^0.4.3"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
## test tools
|
2024-07-29 12:54:23 +00:00
|
|
|
pytest = "^8"
|
2020-08-08 16:24:22 +00:00
|
|
|
coverage = "<5" # coverage 5+ uses binary sqlite format
|
2024-07-29 12:54:23 +00:00
|
|
|
flaky = ">3.6.1" # https://github.com/box/flaky/issues/156
|
2020-08-08 16:24:22 +00:00
|
|
|
pytest-ordering = "*"
|
|
|
|
pytest-random-order = "*"
|
|
|
|
pytest-timeout = "*"
|
2022-08-18 15:21:27 +00:00
|
|
|
pytest-xdist = "*"
|
2020-08-08 16:24:22 +00:00
|
|
|
tox = "*"
|
|
|
|
dominate = "*"
|
|
|
|
|
|
|
|
# hardware tests
|
|
|
|
pyserial = "*"
|
|
|
|
|
|
|
|
## test requirements
|
2024-04-30 18:26:46 +00:00
|
|
|
shamir-mnemonic = "^0.3.0"
|
2020-10-02 10:16:28 +00:00
|
|
|
fido2 = "^0.8.0"
|
2022-02-23 10:36:49 +00:00
|
|
|
python-bitcoinlib = "^0.11.0"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
## typing
|
2024-06-07 12:09:12 +00:00
|
|
|
typing-extensions = ">=4.7.1"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
## style
|
2023-08-15 15:45:13 +00:00
|
|
|
isort = "^5"
|
2024-02-28 14:11:47 +00:00
|
|
|
flake8 = ">=7"
|
|
|
|
black = ">=24.2"
|
2020-10-02 10:16:28 +00:00
|
|
|
mako = "^1.0.7"
|
|
|
|
munch = "^2.3.2"
|
2020-08-08 16:24:22 +00:00
|
|
|
autoflake = "*"
|
2024-02-28 14:11:47 +00:00
|
|
|
flake8-requirements = ">=2.1.0"
|
2021-10-13 13:45:26 +00:00
|
|
|
pylint = "^2.11"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
# common
|
2021-10-01 16:03:26 +00:00
|
|
|
demjson3 = "*"
|
2020-08-08 16:24:22 +00:00
|
|
|
graphviz = "*"
|
|
|
|
|
|
|
|
## cointool
|
2022-06-21 10:02:30 +00:00
|
|
|
click = "^8"
|
2024-05-21 05:31:04 +00:00
|
|
|
requests = "^2.32"
|
2020-10-02 10:16:28 +00:00
|
|
|
termcolor = "*"
|
2023-10-10 13:43:59 +00:00
|
|
|
Pillow = ">=10.0.1"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
# crypto
|
2020-10-02 10:16:28 +00:00
|
|
|
ecdsa = "^0.16"
|
2020-08-08 16:24:22 +00:00
|
|
|
pyasn1 = "*"
|
|
|
|
|
|
|
|
# legacy
|
|
|
|
setuptools = ">=24.2.0"
|
|
|
|
|
|
|
|
# storage
|
|
|
|
cryptography = "*"
|
|
|
|
hypothesis = "*"
|
|
|
|
inotify = "*"
|
2020-11-09 17:52:34 +00:00
|
|
|
yamllint = "^1.25.0"
|
2022-12-15 15:55:48 +00:00
|
|
|
vulture = "^2.6"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
2023-07-27 08:42:00 +00:00
|
|
|
# tools
|
|
|
|
binsize = "^0.1.3"
|
2023-08-15 14:42:06 +00:00
|
|
|
toiftool = {path = "./python/tools/toiftool", develop = true, python = ">=3.8"}
|
2023-11-28 13:57:39 +00:00
|
|
|
trezor-pylint-plugin = {path = "./tools/trezor-pylint-plugin", develop = true}
|
2024-07-31 10:42:55 +00:00
|
|
|
trezor-core-tools = {path = "./core/tools", develop = true}
|
2024-11-08 15:03:35 +00:00
|
|
|
flake8-annotations = "^3.1.1"
|
2023-07-27 08:42:00 +00:00
|
|
|
|
2020-08-08 16:24:22 +00:00
|
|
|
[tool.poetry.dev-dependencies]
|
|
|
|
scan-build = "*"
|
2023-06-13 14:18:39 +00:00
|
|
|
towncrier = "^23.6.0"
|
2023-03-02 09:38:04 +00:00
|
|
|
#freetype-py = "^2.3.0"
|
2020-08-08 16:24:22 +00:00
|
|
|
|
|
|
|
[build-system]
|
2020-10-02 10:16:28 +00:00
|
|
|
requires = ["poetry>=1;<1.1", "pip>=20"]
|
2020-08-08 16:24:22 +00:00
|
|
|
build-backend = "poetry.masonry.api"
|
2023-08-15 15:45:13 +00:00
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
extra_standard_library = [
|
|
|
|
"micropython",
|
|
|
|
"ubinascii",
|
|
|
|
"ustruct",
|
|
|
|
"uctypes",
|
|
|
|
"utime",
|
|
|
|
"utimeq",
|
|
|
|
"trezorio",
|
|
|
|
"trezorui",
|
|
|
|
"trezorutils",
|
|
|
|
"trezorconfig",
|
|
|
|
"trezorcrypto",
|
|
|
|
]
|
|
|
|
known_first_party = ["trezorlib", "apps", "coin_info", "marketcap", "ui_tests", "gitlab"]
|
|
|
|
known_third_party = ["trezor", "storage"]
|