1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00
Commit Graph

97 Commits

Author SHA1 Message Date
matejcik
780236ca77 build: add typing_extensions requirement 2018-11-12 12:55:28 +01:00
matejcik
2d7c74c535 switch to click 7.0 2018-10-10 13:15:28 +02:00
matejcik
7b98b5ac7c build: drop python<3.5 compatibility in CI and markers 2018-10-01 13:52:41 +02:00
matejcik
d235875e5e build: support new tooling in trezor-common 2018-09-04 15:51:38 +02:00
matejcik
3ccef14bb6 build: apply make style to setup.py too 2018-09-03 15:45:34 +02:00
matejcik
2bb7088281 Merge branch 'master' into matejcik/client-split 2018-08-06 16:13:04 +02:00
matejcik
497c290c81 build: run pb2py through sys.executable
* makes this actually work on Windows where pb2py isn't executable by itself
* might prevent problems when installing python-trezor in Travis from git
2018-07-09 17:46:57 +02:00
matejcik
8f03bd0165 build: add Construct to requires, use package autodetection 2018-07-09 13:56:22 +02:00
matejcik
9dc86f3955 build: update protobuf build process and update vendored definitions 2018-07-09 13:46:18 +02:00
matejcik
85a32d01b9 build: do not import trezorlib in setup.py, parse out __version__ by hand
also update path to coin generating tool
2018-07-09 13:46:18 +02:00
matejcik
ef736e837c build: replace local copy of pb2py / build_protobuf with pb2py from trezor-common 2018-07-09 13:46:18 +02:00
matejcik
54f1599a5a regenerate license headers
This clarifies the intent: the project is licenced under terms
of LGPL version 3 only, but the standard headers cover only "3 or later",
so we had to rewrite them.

In the same step, we removed author information from individual files
in favor of "SatoshiLabs and contributors", and include an AUTHORS
file that lists the contributors.

Apologies to those whose names are missing; please contact us if you wish
to add your info to the AUTHORS file.
2018-06-21 16:49:13 +02:00
matejcik
929a1046e2 release: convert README to markdown and include it in long_description 2018-06-19 16:54:54 +02:00
matejcik
2b366865ff build: use package autodetection (fixes #280) 2018-06-18 17:35:43 +02:00
matejcik
03b64909ff build: fix build on Windows (fixes #274) 2018-06-11 18:47:00 +02:00
matejcik
9a27ada067 build: more resilient setup.py build process 2018-05-30 15:04:46 +02:00
Pavol Rusnak
2243535ca0
setup: refactor build_coins call 2018-05-30 13:03:46 +02:00
Pavol Rusnak
61f5bbca91
vendor: update trezor-common 2018-05-30 11:31:12 +02:00
matejcik
ee21733f20 build: enforce building no-core versions of protobuf messages
This helps when you try to build python-trezor from a subdirectory
of trezor-core, for whatever reason.
(For instance, when you run 'pipenv install' in trezor-core, and also
happen to have protobuf build tools available in the outside environment)
2018-05-28 12:55:58 +02:00
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