From 14a0bc13cefa888ee0939fdeb525ffc2667e71a4 Mon Sep 17 00:00:00 2001 From: grdddj Date: Thu, 28 Apr 2022 12:22:53 +0200 Subject: [PATCH] chore(docs): mention that .mako files are rendered by `make templates` [no changelog] --- core/src/all_modules.py | 1 + core/src/all_modules.py.mako | 1 + core/src/apps/common/coininfo.py | 1 + core/src/apps/common/coininfo.py.mako | 1 + core/src/apps/ethereum/networks.py | 1 + core/src/apps/ethereum/networks.py.mako | 1 + core/src/apps/ethereum/tokens.py | 1 + core/src/apps/ethereum/tokens.py.mako | 1 + core/src/apps/nem/mosaic/nem_mosaics.py | 1 + core/src/apps/nem/mosaic/nem_mosaics.py.mako | 1 + core/src/apps/webauthn/knownapps.py | 1 + core/src/apps/webauthn/knownapps.py.mako | 1 + core/src/trezor/res/__init__.py | 2 +- core/src/trezor/res/resources.py.mako | 1 + 14 files changed, 14 insertions(+), 1 deletion(-) diff --git a/core/src/all_modules.py b/core/src/all_modules.py index ce46ef21d..b28dd14ad 100644 --- a/core/src/all_modules.py +++ b/core/src/all_modules.py @@ -1,4 +1,5 @@ # generated from all_modules.py.mako +# (by running `make templates` in `core`) # do not edit manually! # flake8: noqa # fmt: off diff --git a/core/src/all_modules.py.mako b/core/src/all_modules.py.mako index d10d041af..371dcf288 100644 --- a/core/src/all_modules.py.mako +++ b/core/src/all_modules.py.mako @@ -1,4 +1,5 @@ # generated from all_modules.py.mako +# (by running `make templates` in `core`) # do not edit manually! # flake8: noqa # fmt: off diff --git a/core/src/apps/common/coininfo.py b/core/src/apps/common/coininfo.py index bc3ae91d7..9156e823e 100644 --- a/core/src/apps/common/coininfo.py +++ b/core/src/apps/common/coininfo.py @@ -1,4 +1,5 @@ # generated from coininfo.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Any diff --git a/core/src/apps/common/coininfo.py.mako b/core/src/apps/common/coininfo.py.mako index 03b761f00..a58a73df4 100644 --- a/core/src/apps/common/coininfo.py.mako +++ b/core/src/apps/common/coininfo.py.mako @@ -1,4 +1,5 @@ # generated from coininfo.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Any diff --git a/core/src/apps/ethereum/networks.py b/core/src/apps/ethereum/networks.py index 84be0b6cc..89ebe06b3 100644 --- a/core/src/apps/ethereum/networks.py +++ b/core/src/apps/ethereum/networks.py @@ -1,4 +1,5 @@ # generated from networks.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Iterator diff --git a/core/src/apps/ethereum/networks.py.mako b/core/src/apps/ethereum/networks.py.mako index c644ce89e..65d2e3162 100644 --- a/core/src/apps/ethereum/networks.py.mako +++ b/core/src/apps/ethereum/networks.py.mako @@ -1,4 +1,5 @@ # generated from networks.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Iterator diff --git a/core/src/apps/ethereum/tokens.py b/core/src/apps/ethereum/tokens.py index ab21c1dff..67f9878eb 100644 --- a/core/src/apps/ethereum/tokens.py +++ b/core/src/apps/ethereum/tokens.py @@ -1,4 +1,5 @@ # generated from tokens.py.mako +# (by running `make templates` in `core`) # do not edit manually! # fmt: off diff --git a/core/src/apps/ethereum/tokens.py.mako b/core/src/apps/ethereum/tokens.py.mako index 84690b7a0..0f0fea1ba 100644 --- a/core/src/apps/ethereum/tokens.py.mako +++ b/core/src/apps/ethereum/tokens.py.mako @@ -1,4 +1,5 @@ # generated from tokens.py.mako +# (by running `make templates` in `core`) # do not edit manually! # fmt: off <% diff --git a/core/src/apps/nem/mosaic/nem_mosaics.py b/core/src/apps/nem/mosaic/nem_mosaics.py index 501f6e2d3..3b428b0bc 100644 --- a/core/src/apps/nem/mosaic/nem_mosaics.py +++ b/core/src/apps/nem/mosaic/nem_mosaics.py @@ -1,4 +1,5 @@ # generated from nem_mosaics.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Iterator diff --git a/core/src/apps/nem/mosaic/nem_mosaics.py.mako b/core/src/apps/nem/mosaic/nem_mosaics.py.mako index d9a2563db..4da8347ab 100644 --- a/core/src/apps/nem/mosaic/nem_mosaics.py.mako +++ b/core/src/apps/nem/mosaic/nem_mosaics.py.mako @@ -1,4 +1,5 @@ # generated from nem_mosaics.py.mako +# (by running `make templates` in `core`) # do not edit manually! from typing import Iterator diff --git a/core/src/apps/webauthn/knownapps.py b/core/src/apps/webauthn/knownapps.py index 56ca5e30a..d3372ab6c 100644 --- a/core/src/apps/webauthn/knownapps.py +++ b/core/src/apps/webauthn/knownapps.py @@ -1,4 +1,5 @@ # generated from knownapps.py.mako +# (by running `make templates` in `core`) # do not edit manually! diff --git a/core/src/apps/webauthn/knownapps.py.mako b/core/src/apps/webauthn/knownapps.py.mako index 03ce7deb2..bd21af0a0 100644 --- a/core/src/apps/webauthn/knownapps.py.mako +++ b/core/src/apps/webauthn/knownapps.py.mako @@ -1,4 +1,5 @@ # generated from knownapps.py.mako +# (by running `make templates` in `core`) # do not edit manually! diff --git a/core/src/trezor/res/__init__.py b/core/src/trezor/res/__init__.py index bc321d2f0..c5d3ae3bd 100644 --- a/core/src/trezor/res/__init__.py +++ b/core/src/trezor/res/__init__.py @@ -1,7 +1,7 @@ try: from .resources import load_resource except ImportError: - raise RuntimeError("Please regenerate resources via 'make res'") + raise RuntimeError("Please regenerate resources via 'make templates'") def load(name: str) -> bytes: diff --git a/core/src/trezor/res/resources.py.mako b/core/src/trezor/res/resources.py.mako index 3168f57d8..0f829157c 100644 --- a/core/src/trezor/res/resources.py.mako +++ b/core/src/trezor/res/resources.py.mako @@ -1,4 +1,5 @@ # generated from resources.py.mako +# (by running `make templates` in `core`) # do not edit manually! # fmt: off <%