Skip to content

Commit

Permalink
fix package manifest; fix cli user profile loading (#1454)
Browse files Browse the repository at this point in the history
* fix package manifest; fix cli user profile loading
  • Loading branch information
oberstet committed Feb 10, 2021
1 parent fbb2016 commit 8db62fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ include LICENSE
include autobahn/nvx/_utf8validator.c
recursive-include autobahn/wamp/gen/schema *
recursive-include autobahn/xbr/contracts *
recursive-include autobahn/xbr/templates *
2 changes: 1 addition & 1 deletion autobahn/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#
###############################################################################

__version__ = '21.1.1'
__version__ = '21.2.1.dev1'
8 changes: 4 additions & 4 deletions autobahn/xbr/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,10 @@ def _main():

args = parser.parse_args()

# read or create a user profile
profile = load_or_create_profile()

if args.command == 'version':
print('')
print(' XBR CLI {}\n'.format(hlval('v' + __version__)))
print(' Profile {profile} loaded from {path}\n'.format(profile=hlval(profile.name), path=hlval(profile.path)))
print('')
print(' Contract addresses:\n')
print(' XBRToken : {} [source: {}]'.format(hlid(XBR_DEBUG_TOKEN_ADDR), XBR_DEBUG_TOKEN_ADDR_SRC))
print(' XBRNetwork : {} [source: {}]'.format(hlid(XBR_DEBUG_NETWORK_ADDR), XBR_DEBUG_NETWORK_ADDR_SRC))
Expand Down Expand Up @@ -1130,6 +1127,9 @@ def _main():
print('no command given. select from: {}'.format(', '.join(_COMMANDS)))
sys.exit(0)

# read or create a user profile
profile = load_or_create_profile()

# only start txaio logging after above, which runs click (interactively)
if args.debug:
txaio.start_logging(level='debug')
Expand Down

0 comments on commit 8db62fa

Please sign in to comment.