From f5c158739656b14527b113cca667d9dbdfc6bb99 Mon Sep 17 00:00:00 2001 From: slush Date: Sat, 2 Dec 2017 18:48:44 +0100 Subject: [PATCH] Version moved from version.py to __init__.py --- setup.py | 2 +- trezorctl | 2 +- trezorlib/__init__.py | 1 + trezorlib/version.py | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 trezorlib/version.py diff --git a/setup.py b/setup.py index 8db1319..a7387ef 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ if '--disable-hidapi' in sys.argv: else: install_requires.append('hidapi>=0.7.99.post20') -from trezorlib.version import VERSION +from trezorlib import __version__ as VERSION setup( name='trezor', diff --git a/trezorctl b/trezorctl index 1428d8f..b5a1add 100755 --- a/trezorctl +++ b/trezorctl @@ -117,7 +117,7 @@ def ls(transport_name): @cli.command(name='version', help='Show version of trezorctl/trezorlib.') @click.pass_obj def version(_): - from trezorlib.version import VERSION + from trezorlib import __version__ as VERSION return VERSION diff --git a/trezorlib/__init__.py b/trezorlib/__init__.py index e69de29..897518a 100644 --- a/trezorlib/__init__.py +++ b/trezorlib/__init__.py @@ -0,0 +1 @@ +__version__ = '0.8.0a3' diff --git a/trezorlib/version.py b/trezorlib/version.py deleted file mode 100644 index b377742..0000000 --- a/trezorlib/version.py +++ /dev/null @@ -1 +0,0 @@ -VERSION = '0.8.0a1'