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

78 Commits

Author SHA1 Message Date
matejcik
a289d16838 build: require typing module for python < 3.4 2018-05-09 17:43:41 +02:00
matejcik
76fea5afc4 build: move ethereum requirements to their own extra
We only need ethereum libraries for `ethereum_sign_tx` in trezorctl,
and rlp has caused us dependency problems in the past already.
Also we required ethjsonrpc for the same thing but never listed
that dependency anywhere.

That changes now.
2018-05-07 13:05:48 +02:00
matejcik
41d99764c6 build: reorganize requirements, mark hidapi as optional
This drops the command line options. `libusb` is now required
unconditionally (it's cffi so no harm there). hidapi is an extra.
You either need to install it manually, or specify it in your
requirements.txt like so:

trezor[hidapi] >= 0.9.2
2018-05-04 15:54:23 +02:00
matejcik
ce7a434f2d build: add the prebuild command as a dependency for develop
So, 'python setup.py develop' exists. And of course it doesn't have build_py as
a dependency, because of course it doesn't.
We could use 'data_files' instead of 'package_data and copying', and then use
pkg_resources to find the actual file location, and that could work in theory.
But pkg_resources API is weird and messy and this whole area of Python
packaging theory barely works as it is.

Instead we will force the prebuild command to be a dependency of develop as
well as build_py, and we do this by monkey-patching instead of the proper way,
because at this point it seems cleaner. I wonder if there are more commands
that would need this.
2018-05-03 18:55:32 +02:00
matejcik
3f35475e7b build: preprocess messages and assets in setup.py
This enforces presence of the trezor-common submodule, copies coins.json to the
package directory (from where we can install it with bdist) and if possible,
regenerates protobuf messages.

That currently doesn't work on Windows, because it's a shell script. Also it
relies on presence of `protoc` protobuf compiler. Therefore the regeneration
step is optional and converted protobuf messages should still be commited to
this repo.

coins.json, OTOH, is gitignored in trezorlib, and must be copied from
trezor-common every time. This works because sdist includes the vendor
directory.
2018-04-10 15:58:34 +02:00
matejcik
f75b90d260 Merge branch 'upstream' into refactor-transport-nicediff 2018-03-05 19:56:47 +01:00
matejcik
f63b34dbea setup.py: add markers specifying Python 3 only compatibility 2018-03-05 19:11:16 +01:00
matejcik
49790d7bfe install the new trasport subpackage 2018-03-02 16:43:41 +01:00
matejcik
2d3e890c6b setup: add missing requirement for rlp (#220) 2018-02-28 18:03:27 +01:00
slush
fae11f2996 Use python3 for setup 2018-02-02 16:36:29 +01:00
Pavol Rusnak
1a046b524c
setup: add dependency for libusb1 2018-02-02 01:22:16 +01:00
Saleem Rashid
1c8f03968c tests: Move to trezorlib.tests 2017-12-19 13:16:22 +01:00
Saleem Rashid
90c49e3386 setup: Use packages instead of py_modules
Fixes #176
2017-12-18 19:30:17 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Pavol Rusnak
8b9cba832c
cleanup last commit 2017-12-02 22:02:39 +01:00
slush
f5c1587396 Version moved from version.py to __init__.py 2017-12-02 18:48:44 +01:00
slush
59ef832424 Add 'trezorctl version' to track version of installed package 2017-12-02 18:31:57 +01:00
Pavol Rusnak
1ab602423c
requirements: add pyblake2 2017-11-06 11:10:23 +01:00
Pavol Rusnak
23d75bfc10
trezorctl: sign_tx command based on tx_sign_tool by mruddy 2017-10-24 00:50:01 +02:00
Pavol Rusnak
5057e022c0
trezorlib: move ed25519cosi and ed25519raw from trezor-core 2017-10-04 00:38:53 +02:00
Pavol Rusnak
c20cea6389
setup: add missing files 2017-09-03 19:15:34 +02:00
Pavol Rusnak
f73fc33439
drop internal use of protobuf_json, use json_format provided by google.protobuf 2017-07-10 15:36:44 +02:00
Pavol Rusnak
2d643031ac
change dependency to protobuf>=3.0.0 2017-07-10 14:41:56 +02:00
Pavol Rusnak
b335d30b8d
use click in trezorctl 2017-07-05 12:55:38 +02:00
Pavol Rusnak
d33e9a178b
bump version to 0.8.0a0 2017-07-05 12:55:37 +02:00
Pavol Rusnak
f18ec19aeb
bump version 2017-07-05 12:52:56 +02:00
Pavol Rusnak
33f274d145
style: use flake8 2017-06-23 21:52:53 +02:00
Pavol Rusnak
c1fae7d19f
bump version 2017-06-19 00:00:50 +02:00
Pavol Rusnak
bf1c580d85
bump version 2017-06-18 23:41:15 +02:00
Pavol Rusnak
65985b30f3
bump requirements for protobuf to 3.1.0 2017-06-18 23:19:15 +02:00
Roman Zeyde
e33f4d7612 Add 'requests' dependency 2017-06-15 16:51:28 +02:00
Pavol Rusnak
3cb4118850
bump version 2017-04-19 14:20:48 +02:00
Pavol Rusnak
dccc1b08ed
update requirement for hidapi to 0.7.99.post20 2017-03-06 12:02:49 +01:00
Pavol Rusnak
127d76a913
enable/disable passphrase protection via trezorctl 2017-02-23 11:56:54 +01:00
mruddy
3e8122ba28 bump version to 0.7.11 (#100) 2017-02-22 15:39:07 +01:00
Pavol Rusnak
18bd3e6197
update mnemonic requirement 2017-02-22 15:07:58 +01:00
Pavol Rusnak
fe4662d389
bump version 2017-02-11 20:16:11 +01:00
Pavol Rusnak
03272b6170
bump version 2017-01-26 14:04:31 +01:00
Pavol Rusnak
8609f62f91
bump version 2017-01-25 19:05:33 +01:00
Pavol Rusnak
23f7feb438
bump version to 0.7.8 2016-11-27 13:49:20 +01:00
Pavol Rusnak
5451db6e27
update readme, drop cmdtr 2016-11-27 13:48:45 +01:00
Pavol Rusnak
5cc9893d6f
remove test_suite directive from setup.py 2016-11-25 22:05:35 +01:00
Pavol Rusnak
84b4446ec4
bump version to 0.7.7 2016-11-23 13:52:10 +01:00
Pavol Rusnak
86d05ac9ee
bump version 2016-10-21 15:25:32 +02:00
Pavol Rusnak
c6094dc9ad
verify_message now requires coin_name 2016-10-10 11:02:04 +02:00
Pavol Rusnak
101c8b1344
add hack to ignore hidapi dependency (--disable-hidapi) 2016-10-03 20:37:48 +02:00
Pavol Rusnak
9d3fb81f97
bump version 2016-09-28 14:38:08 +02:00
Pavol Rusnak
f379752794
bump version 2016-09-27 22:54:31 +02:00
Pavol Rusnak
ef21a91ceb
fix install 2016-09-27 22:39:31 +02:00
Pavol Rusnak
8189ec0e76
update version 2016-09-27 22:24:30 +02:00