Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output with missing setup.py could be nicer #331

Closed
pytoxbot opened this issue Sep 17, 2016 · 0 comments
Closed

Output with missing setup.py could be nicer #331

pytoxbot opened this issue Sep 17, 2016 · 0 comments

Comments

@pytoxbot
Copy link

@pytoxbot pytoxbot commented Sep 17, 2016

When there's no setup.py, we get:

$ tox 
Traceback (most recent call last):
  File "./.venv/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/home/florian/tmp/.venv/lib/python3.4/site-packages/tox/session.py", line 39, in main
    retcode = Session(config).runcommand()
  File "/home/florian/tmp/.venv/lib/python3.4/site-packages/tox/session.py", line 375, in runcommand
    return self.subcommand_test()
  File "/home/florian/tmp/.venv/lib/python3.4/site-packages/tox/session.py", line 520, in subcommand_test
    path = self.get_installpkg_path()
  File "/home/florian/tmp/.venv/lib/python3.4/site-packages/tox/session.py", line 496, in get_installpkg_path
    path = self._makesdist()
  File "/home/florian/tmp/.venv/lib/python3.4/site-packages/tox/session.py", line 390, in _makesdist
    raise tox.exception.MissingFile(setup)
tox.MissingFile: MissingFile: /home/florian/tmp/setup.py

instead the output could be nicer, like if the setup.py is broken:

$ tox                               
GLOB sdist-make: /home/florian/tmp/setup.py
ERROR: No dist directory found. Please check setup.py, e.g with:
     python setup.py sdist
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants