Skip to content

Commit

Permalink
unsplit cli step 2: edit files
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Apr 21, 2016
1 parent a3c836b commit 85b6264
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
packages=["wormhole",
"wormhole.blocking",
"txwormhole",
"wormhole_cli",
"wormhole.cli",
"wormhole_server",
"wormhole.test",
],
package_data={"wormhole_server": ["db-schemas/*.sql"]},
entry_points={"console_scripts":
["wormhole = wormhole_cli.runner:entry",
["wormhole = wormhole.cli.runner:entry",
"wormhole-server = wormhole_server.runner:entry",
]},
install_requires=["spake2==0.3", "pynacl", "requests", "argparse",
Expand Down
2 changes: 0 additions & 2 deletions src/wormhole/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from wormhole import __version__
__version__ # hush pyflakes
2 changes: 1 addition & 1 deletion src/wormhole/cli/cli_args.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
from textwrap import dedent
from . import public_relay
from wormhole import __version__
from .. import __version__

parser = argparse.ArgumentParser(
usage="wormhole SUBCOMMAND (subcommand-options)",
Expand Down
2 changes: 1 addition & 1 deletion src/wormhole/cli/cmd_receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from twisted.internet.defer import inlineCallbacks, returnValue
from txwormhole.transcribe import Wormhole, WrongPasswordError
from txwormhole.transit import TransitReceiver
from wormhole.errors import TransferError
from ..errors import TransferError
from .progress import ProgressPrinter


Expand Down
2 changes: 1 addition & 1 deletion src/wormhole/cli/cmd_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from twisted.protocols import basic
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks, returnValue
from wormhole.errors import TransferError
from ..errors import TransferError
from .progress import ProgressPrinter
from txwormhole.transcribe import Wormhole, WrongPasswordError
from txwormhole.transit import TransitSender
Expand Down
2 changes: 1 addition & 1 deletion src/wormhole/cli/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os, sys
from twisted.internet.defer import maybeDeferred
from twisted.internet.task import react
from wormhole.timing import DebugTiming
from ..timing import DebugTiming
from .cli_args import parser

def dispatch(args): # returns Deferred
Expand Down
2 changes: 1 addition & 1 deletion src/wormhole/test/test_progress.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import print_function
import io, time
from twisted.trial import unittest
from wormhole_cli import progress
from ..cli import progress

class Progress(unittest.TestCase):
def test_time(self):
Expand Down
4 changes: 2 additions & 2 deletions src/wormhole/test/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from twisted.internet.defer import inlineCallbacks
from .. import __version__
from .common import ServerBase
from wormhole_cli import runner, cmd_send, cmd_receive
from wormhole_cli.cmd_send import build_phase1_data
from ..cli import runner, cmd_send, cmd_receive
from ..cli.cmd_send import build_phase1_data
from ..errors import TransferError
from ..timing import DebugTiming

Expand Down

0 comments on commit 85b6264

Please sign in to comment.