mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
Add 'trezorctl version' to track version of installed package
This commit is contained in:
parent
29e4c6a05e
commit
59ef832424
5
setup.py
5
setup.py
@ -17,9 +17,11 @@ if '--disable-hidapi' in sys.argv:
|
||||
else:
|
||||
install_requires.append('hidapi>=0.7.99.post20')
|
||||
|
||||
from trezorlib.version import VERSION
|
||||
|
||||
setup(
|
||||
name='trezor',
|
||||
version='0.8.0a0',
|
||||
version=VERSION,
|
||||
author='TREZOR',
|
||||
author_email='info@trezor.io',
|
||||
description='Python library for communicating with TREZOR Hardware Wallet',
|
||||
@ -45,6 +47,7 @@ setup(
|
||||
'trezorlib.transport_udp',
|
||||
'trezorlib.tx_api',
|
||||
'trezorlib.types_pb2',
|
||||
'trezorlib.version',
|
||||
],
|
||||
scripts=['trezorctl'],
|
||||
install_requires=install_requires,
|
||||
|
@ -114,6 +114,13 @@ def ls(transport_name):
|
||||
return devices
|
||||
|
||||
|
||||
@cli.command(name='version', help='Show version of trezorctl/trezorlib.')
|
||||
@click.pass_obj
|
||||
def version(_):
|
||||
from trezorlib.version import VERSION
|
||||
return VERSION
|
||||
|
||||
|
||||
#
|
||||
# Basic device functions
|
||||
#
|
||||
|
1
trezorlib/version.py
Normal file
1
trezorlib/version.py
Normal file
@ -0,0 +1 @@
|
||||
VERSION = '0.8.0a1'
|
Loading…
Reference in New Issue
Block a user