1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Pavol Rusnak
f2f3d39cf1
fix style 2018-05-24 16:04:18 +02:00
matejcik
c6ac4f2200
protobuf: drop kwargs from constructors 2018-05-24 15:41:07 +02:00
matejcik
b502169bae
protobuf: drop const() markers as they are currently useless 2018-05-24 15:41:07 +02:00
matejcik
2c70ac3a2f
protobuf: only import list when needed 2018-05-24 15:41:07 +02:00
matejcik
389f1418ed
protobuf: drop Optional markers (relying on implicit optional)
and add a conditional import for List
2018-05-24 15:41:07 +02:00
matejcik
fb318fb69b
tools: update build_protobuf and pb2py to the refactored versions
from python-trezor, with appropriate modifications for trezor-core

The end goal is to have these files identical, ideally coming from
trezor-common. This is most of the way there, only thing remaining
is handling of target paths.
2018-05-24 15:41:07 +02:00
Jan Pochyla
048e0706b3 tools/pb2py: fix default list value 2018-02-27 00:12:44 +01:00
Jan Pochyla
b9c111f6ae tools: add init method to messages 2018-02-26 16:13:00 +01:00
Pavol Rusnak
b79ea10434
tools: update protobuf (sync with python-trezor) 2018-01-30 15:11:09 +01:00
Pavol Rusnak
a31c118d8e
protobuf: update build_protobuf and pb2py from python-trezor, regenerate messages 2018-01-12 13:11:22 +01:00
Pavol Rusnak
ef5f1326dc
build: use python3 everywhere 2017-09-25 16:18:31 +02:00
Pavol Rusnak
5b84db0f7f
tools: fix flake8 warnings 2017-09-05 23:16:01 +02:00
Pavol Rusnak
fe5b5c1940
tests: update to pytest, regenerate protobuf 2017-07-28 18:58:31 +02:00
Pavol Rusnak
73b2ea6c85
travis: add make style (using flake8) 2017-06-13 19:35:34 +02:00
slush0
d6ae782dfc pb2py moved to trezor-common 2016-12-04 19:24:48 +01:00
slush0
0ea856589f Added non-micropython compatibility.
Optional generation of wiretype index file.
2016-12-04 19:12:01 +01:00
Jan Pochyla
783fddf749 messages: do not use const() 2016-11-02 01:03:16 +01:00
Jan Pochyla
20b612f8c1 pb2py: use new protobuf message format 2016-10-26 17:34:07 +02:00
Pavol Rusnak
6e658ff2f1
trezor.messages: regenerate classes 2016-10-24 15:45:05 +02:00
slush0
f5d2007297 Use const() for protobuf definitions 2016-10-03 15:41:15 +02:00
Jan Pochyla
f2b509b591 use micropython.const() in trezor.messages 2016-09-29 12:37:40 +02:00
Jan Pochyla
fb7b85e479 move protobuf to a single module 2016-09-28 23:17:11 +02:00
Jan Pochyla
59c0de5312
build wire_type index in pb2py 2016-09-27 17:26:05 +02:00
Jan Pochyla
173c49bef8
add __repr__ to Message and MessageType 2016-09-27 17:25:55 +02:00
Jan Pochyla
362e835807
MessageType.type -> MessageType.wire_type 2016-09-27 17:24:21 +02:00
slush0
3f9020ccf4
"TYPE = %d" => "t.type = %d" 2016-09-27 17:24:15 +02:00
slush0
bc95e83aea
Generate message type constant into message modules 2016-09-27 17:24:10 +02:00
Pavol Rusnak
ee3614ae6a
cleanup pb2py, add debug to emu.sh 2016-09-27 17:23:23 +02:00
slush0
e6df94cbd5
pb2py generator, build_pb2.sh 2016-09-27 17:23:22 +02:00