Skip to content

Commit

Permalink
Fix gevent#755 by reverting the cmdline import to the old locatio…
Browse files Browse the repository at this point in the history
…n and changing the entry point instead. (gevent#756)
  • Loading branch information
fschulze authored and gaborbernat committed Jan 30, 2018
1 parent 7c05a83 commit ab6d6c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog/755.bugfix.rst
@@ -0,0 +1 @@
fix #755 by reverting the ``cmdline`` import to the old location and changing the entry point instead - by @fschulze
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -43,7 +43,7 @@ def main():
author='holger krekel',
author_email='holger@merlinux.eu',
packages=['tox'],
entry_points={'console_scripts': ['tox=tox:cmdline',
entry_points={'console_scripts': ['tox=tox.session:run_main',
'tox-quickstart=tox._quickstart:main']},
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
setup_requires=['setuptools_scm'],
Expand Down
4 changes: 1 addition & 3 deletions tests/test_z_cmdline.py
Expand Up @@ -2,7 +2,6 @@
import platform
import re
import subprocess
import sys

import py
import pytest
Expand Down Expand Up @@ -901,6 +900,5 @@ def test_tox_quickstart_script():


def test_tox_cmdline(monkeypatch):
monkeypatch.setattr(sys, 'argv', ['caller_script', '--help'])
with pytest.raises(SystemExit):
tox.cmdline()
tox.cmdline(['caller_script', '--help'])
2 changes: 1 addition & 1 deletion tox/__init__.py
Expand Up @@ -52,6 +52,6 @@ def __init__(self, message):
super(exception.MinVersionError, self).__init__(message)


from .session import run_main as cmdline # noqa
from .session import main as cmdline # noqa

__all__ = ('hookspec', 'hookimpl', 'cmdline', 'exception', '__version__')

0 comments on commit ab6d6c9

Please sign in to comment.