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

Move the heavy browser dependencies to a 'browser' extra #8

Merged
merged 2 commits into from
Sep 28, 2017

Conversation

jamadden
Copy link
Member

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:

  • Rename remaining .txt to .rst
  • Drop support for Python 3.3
  • Badges in readme.
  • setup.cfg for universal wheels.
  • Update .travis.yml with current PyPy (grabbed from zope.viewlet)
  • Update tox.ini to include the coverage environment too.

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.

Also:

- Rename remaining .txt to .rst
- Drop support for Python 3.3
- Badges in readme.
- setup.cfg for universal wheels.
@jamadden
Copy link
Member Author

My use case is that we have a library we use with Pyramid for handling JSON input and output. It's based on mime types, and so we want to use the IContentTypeAware interface (among others) that this package provides. That library doesn't use anything from zope.browser, and we'd like to trim our dependencies, so making these things optional here seemed like a reasonable thing to do.

@jamadden jamadden merged commit 9f61c6d into master Sep 28, 2017
@jamadden jamadden deleted the browser_extra branch September 28, 2017 18:50
jamadden added a commit that referenced this pull request Sep 28, 2017
@jamadden
Copy link
Member Author

Thank you!

A PyPI release would be nice, when convenient.

@tseaver
Copy link
Member

tseaver commented Sep 28, 2017

Poof! You are a PyPI owner.

@jamadden
Copy link
Member Author

Neat! Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants