1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

python: drop coins.json (fixes #752)

This commit is contained in:
matejcik 2020-03-04 13:39:45 +01:00
parent 325dae890e
commit 6ccf22225c
7 changed files with 2 additions and 38 deletions

View File

@ -83,7 +83,5 @@ protobuf_check: ## check that generated protobuf headers are up to date
./tools/build_protobuf --check ./tools/build_protobuf --check
gen: mocks templates protobuf icons ## regeneate auto-generated files from sources gen: mocks templates protobuf icons ## regeneate auto-generated files from sources
make -C python coins_json
gen_check: mocks_check templates_check protobuf_check icons_check ## check validity of auto-generated files gen_check: mocks_check templates_check protobuf_check icons_check ## check validity of auto-generated files
make -C python coins_json_check

View File

@ -7,12 +7,6 @@ EXCLUDE_TARGETS=messages
all: build all: build
coins_json:
./helper-scripts/build-coins-json.sh
coins_json_check:
./helper-scripts/build-coins-json.sh --check
build: build:
$(SETUP) build $(SETUP) build

View File

@ -133,8 +133,8 @@ First, make sure your submodules are up-to-date with:
git submodule update --init --recursive git submodule update --init --recursive
``` ```
Then, rebuild the protobuf messages and get `coins.json` by running, from the Then, rebuild the protobuf messages by running, from the `trezor-firmware` top-level
`trezor-firmware` top-level directory: directory:
```sh ```sh
make gen make gen

View File

@ -3,4 +3,3 @@ These scripts automate some tasks related to release process.
* __`relicence.py`__ rewrites licence headers in all non-empty Python files * __`relicence.py`__ rewrites licence headers in all non-empty Python files
* __`linkify-changelog.py`__ generates Markdown links to github issues/PRs in changelog * __`linkify-changelog.py`__ generates Markdown links to github issues/PRs in changelog
* __`bump-required-fw-versions.py`__ downloads latest firmware versions and updates trezorlib requirements * __`bump-required-fw-versions.py`__ downloads latest firmware versions and updates trezorlib requirements
* __`build-coins-json.sh`__ generates `coins.json`, or checks if it is up-to-date

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
cd $(dirname $0)/..
DEST=src/trezorlib/coins.json
BUILD_COINS_AT="../common/tools/cointool.py dump \
--list --support \
--include-type=bitcoin \
--exclude=icon \
-o \
"
if [ "$1" == "--check" ]; then
TMP=$(mktemp)
$BUILD_COINS_AT $TMP
diff -q $DEST $TMP
ERR=$?
if [ "$ERR" -ne 0 ]; then
echo "Please run $0"
fi
rm $TMP
exit $ERR
else
$BUILD_COINS_AT $DEST
fi

View File

@ -61,7 +61,6 @@ setup(
url="https://github.com/trezor/python-trezor", url="https://github.com/trezor/python-trezor",
packages=find_packages("src"), packages=find_packages("src"),
package_dir={"": "src"}, package_dir={"": "src"},
package_data={"trezorlib": ["coins.json"]},
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]}, entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
install_requires=install_requires, install_requires=install_requires,
extras_require={ extras_require={

File diff suppressed because one or more lines are too long