[WIP] "requires" config improvements #1022
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If requirements are not satisfied the error is now represented by a custom exception and appropriately caught to make the error look like what it is: a misconfiguration of the environment rather than an error in tox.
so this:
rather than:
The docs give explicit info now also, that require is not doing what you might expect if you draw an analogy to the require options in
setuptools.setup()
.Marked this wip as I am not sure whether we really need a new exception or how to deal in general with our internal exceptions. I feel we should catch them all on the upper level and output a friendly error rather than a traceback (but maybe this should be tackled in another PR).