Move the heavy browser dependencies to a 'browser' extra #8
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.
And make the tests that rely on them conditional. Ensure that the ZCML can be executed either way, though. Add tox and Travis environments to be sure this is exercised.
Previously, a zope.mimetype install was very large, unconditionally pulling in zope.browser, zope.publisher and zope.formlib, which in turn pulled in zope.browserpage, zope.datetime, zope.pagetemplate, zope.tales, zope.tal, zope.browserresource, zope.traversing, transaction, and six, possibly among others. Now, those things are opt-in, leaving the default install about 10 packages smaller.
Also some gardening things: