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
Labels
area:reporting level:easy rought estimate that this might be quite easy to implement

Comments

@pytoxbot
Copy link

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
@obestwalter obestwalter added level:easy rought estimate that this might be quite easy to implement and removed needs:help labels Sep 4, 2017
@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:reporting level:easy rought estimate that this might be quite easy to implement
Projects
None yet
Development

No branches or pull requests

2 participants