[Pytest-commit] Issue #331: Output with missing setup.py could be nicer (hpk42/tox)
Florian Bruhin
issues-reply at bitbucket.org
Fri May 13 05:16:37 EDT 2016
New issue 331: Output with missing setup.py could be nicer
https://bitbucket.org/hpk42/tox/issues/331/output-with-missing-setuppy-could-be-nicer
Florian Bruhin:
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
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-commit/attachments/20160513/ea11d82d/attachment.html>
More information about the pytest-commit
mailing list