click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

Allow ExitReplException to exit the repl #41

Closed theazureshadow closed 6 years ago

theazureshadow commented 6 years ago

This fixes #24 by adding a click_repl.exit() command and triggering an exit when ExitReplException is hit.

theazureshadow commented 6 years ago

Why would Python 3.3 be failing in travis? Feels like a build env issue rather than an issue with this PR. Am I missing something?


...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/opt/python/3.3.6/lib/python3.3/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/opt/python/3.3.6/lib/python3.3/runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/virtualenv.py", line 2343, in <module>
    main()
  File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/virtualenv.py", line 712, in main
    symlink=options.symlink)
  File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/virtualenv.py", line 947, in create_environment
    download=download,
  File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/virtualenv.py", line 904, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/home/travis/virtualenv/python3.3.6/lib/python3.3/site-packages/virtualenv.py", line 796, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/travis/build/c...x/py-test/bin/python - setuptools pip wheel failed with error code 1
ERROR: Error creating virtualenv. Note that some special characters (e.g. ':' and unicode symbols) in paths are not supported by virtualenv. Error details: InvocationError('/home/travis/virtualenv/python3.3.6/bin/python -m virtualenv --python /home/travis/virtualenv/python3.3.6/bin/python py-test (see /home/travis/build/click-contrib/click-repl/.tox/py-test/log/py-test-0.log)', 1)