From 06bba321e79ca965e3962f55beb8dd663c26b5ba Mon Sep 17 00:00:00 2001 From: Carlos Garcia Ortiz karliatto Date: Thu, 16 Jan 2025 14:28:15 +0000 Subject: [PATCH] docs(connect): how to install python dependencies from submodule --- .gitignore | 3 +++ docs/packages/connect/supported-coins.md | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.gitignore b/.gitignore index dc90f5c67f8..233faf9ca25 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,6 @@ packages/suite-data/files/translations/master.json # cypress download folder packages/suite-web/e2e/downloads + +# python +.venv/ diff --git a/docs/packages/connect/supported-coins.md b/docs/packages/connect/supported-coins.md index f8443f73d26..c4f2f82ac20 100644 --- a/docs/packages/connect/supported-coins.md +++ b/docs/packages/connect/supported-coins.md @@ -22,6 +22,23 @@ _Make sure that desired `[coin].json` definition is present in `trezor-firmware` 2. Build `src/data/coins.json` file using `trezor-common/cointool`: +You need to have a python3 environment setup in order to be able to run it. + +Create a python `virtualenv`: + +```bash +python3 -m venv .venv +. .venv/bin/activate ``` + +Then you run pip with the `requirements.txt` file form the trezor-common submodule: + +```bash +pip install -r submodules/trezor-common/tools/requirements.txt +``` + +Now you have all the required dependencies install so you can finally run the script that will update the coins: + +```bash yarn update-coins ```