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:
parent
325dae890e
commit
6ccf22225c
2
Makefile
2
Makefile
@ -83,7 +83,5 @@ protobuf_check: ## check that generated protobuf headers are up to date
|
||||
./tools/build_protobuf --check
|
||||
|
||||
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
|
||||
make -C python coins_json_check
|
||||
|
@ -7,12 +7,6 @@ EXCLUDE_TARGETS=messages
|
||||
|
||||
all: build
|
||||
|
||||
coins_json:
|
||||
./helper-scripts/build-coins-json.sh
|
||||
|
||||
coins_json_check:
|
||||
./helper-scripts/build-coins-json.sh --check
|
||||
|
||||
build:
|
||||
$(SETUP) build
|
||||
|
||||
|
@ -133,8 +133,8 @@ First, make sure your submodules are up-to-date with:
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
Then, rebuild the protobuf messages and get `coins.json` by running, from the
|
||||
`trezor-firmware` top-level directory:
|
||||
Then, rebuild the protobuf messages by running, from the `trezor-firmware` top-level
|
||||
directory:
|
||||
|
||||
```sh
|
||||
make gen
|
||||
|
@ -3,4 +3,3 @@ These scripts automate some tasks related to release process.
|
||||
* __`relicence.py`__ rewrites licence headers in all non-empty Python files
|
||||
* __`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
|
||||
* __`build-coins-json.sh`__ generates `coins.json`, or checks if it is up-to-date
|
||||
|
@ -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
|
@ -61,7 +61,6 @@ setup(
|
||||
url="https://github.com/trezor/python-trezor",
|
||||
packages=find_packages("src"),
|
||||
package_dir={"": "src"},
|
||||
package_data={"trezorlib": ["coins.json"]},
|
||||
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
|
||||
install_requires=install_requires,
|
||||
extras_require={
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user