-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from zopefoundation/browser_extra
Move the heavy browser dependencies to a 'browser' extra
- Loading branch information
Showing
23 changed files
with
193 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy-5.4.1 | ||
- pypy3.3-5.2-alpha1 | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3 | ||
env: | ||
- DEP=test | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
env: DEP=no_such_extra | ||
install: | ||
- pip install -U pip setuptools | ||
- pip install -U coverage coveralls zope.testing zope.testrunner | ||
- pip install -U -e .[$DEP] | ||
script: | ||
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress | ||
|
||
- coverage run -m zope.testrunner --test-path=src | ||
after_success: | ||
- coveralls | ||
- coveralls | ||
notifications: | ||
email: false | ||
|
||
install: | ||
- pip install -U pip setuptools | ||
- pip install -U coveralls coverage zope.testrunner | ||
- pip install -U -e ".[test]" | ||
|
||
|
||
email: false | ||
cache: pip | ||
|
||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
``zope.mimetype`` | ||
================= | ||
|
||
.. image:: https://img.shields.io/pypi/v/zope.mimetype.svg | ||
:target: https://pypi.python.org/pypi/zope.mimetype/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/zope.mimetype.svg | ||
:target: https://pypi.org/project/zope.mimetype/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/zope.mimetype.png?branch=master | ||
:target: https://travis-ci.org/zopefoundation/zope.mimetype | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.mimetype/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/zope.mimetype?branch=master | ||
|
||
This package provides a way to work with MIME content types. There | ||
are several interfaces defined here, many of which are used primarily | ||
to look things up based on different bits of information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,38 +25,50 @@ def read(*rnames): | |
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f: | ||
return f.read() | ||
|
||
BROWSER_REQUIRES = [ | ||
'zope.browser', # ITerms in source.py | ||
'zope.browserresource', # metaconfigure for icon in zcml.py | ||
'zope.formlib>=4.0', # widget.py | ||
'zope.publisher', # IBrowserRequest | ||
] | ||
|
||
TEST_REQUIRES = BROWSER_REQUIRES + [ | ||
'zope.testing', | ||
'zope.testrunner', | ||
] | ||
|
||
setup(name='zope.mimetype', | ||
version='2.2.1.dev0', | ||
version='2.3.0.dev0', | ||
author='Zope Foundation and Contributors', | ||
author_email='[email protected]', | ||
description = "A simple package for working with MIME content types", | ||
description="A simple package for working with MIME content types", | ||
long_description=( | ||
read('README.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'README.txt') | ||
read('src', 'zope', 'mimetype', 'README.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'retrieving_mime_types.txt') | ||
read('src', 'zope', 'mimetype', 'retrieving_mime_types.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'codec.txt') | ||
read('src', 'zope', 'mimetype', 'codec.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'constraints.txt') | ||
read('src', 'zope', 'mimetype', 'constraints.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'contentinfo.txt') | ||
read('src', 'zope', 'mimetype', 'contentinfo.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'event.txt') | ||
read('src', 'zope', 'mimetype', 'event.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'typegetter.txt') | ||
read('src', 'zope', 'mimetype', 'typegetter.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'source.txt') | ||
read('src', 'zope', 'mimetype', 'source.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'widget.txt') | ||
read('src', 'zope', 'mimetype', 'widget.rst') | ||
+ '\n\n' + | ||
read('src', 'zope', 'mimetype', 'utils.txt') | ||
read('src', 'zope', 'mimetype', 'utils.rst') | ||
+ '\n\n' + | ||
read('CHANGES.rst') | ||
), | ||
keywords = "file content mimetype", | ||
classifiers = [ | ||
), | ||
keywords="file content mimetype", | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
|
@@ -65,7 +77,6 @@ def read(*rnames): | |
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
|
@@ -75,37 +86,29 @@ def read(*rnames): | |
'Operating System :: OS Independent', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Framework :: Zope3'], | ||
url='http://pypi.python.org/pypi/zope.mimetype', | ||
url='https://github.com/zopefoundation/zope.mimetype', | ||
license='ZPL 2.1', | ||
packages=find_packages('src'), | ||
package_dir = {'': 'src'}, | ||
package_dir={'': 'src'}, | ||
namespace_packages=['zope'], | ||
extras_require = dict( | ||
test=[ | ||
'zope.component', | ||
'zope.testing', | ||
] | ||
), | ||
install_requires=['setuptools', | ||
'zope.browser', | ||
'zope.browserresource', | ||
'zope.component', | ||
'zope.configuration', | ||
'zope.contenttype>=3.5', | ||
'zope.event', | ||
'zope.formlib>=4.0', | ||
'zope.i18n', | ||
'zope.i18nmessageid', | ||
'zope.interface', | ||
'zope.publisher', | ||
'zope.schema', | ||
'zope.security', | ||
], | ||
tests_require=[ | ||
'zope.component', | ||
'zope.testing', | ||
], | ||
extras_require={ | ||
'test': TEST_REQUIRES, | ||
'browser': BROWSER_REQUIRES, | ||
}, | ||
install_requires=[ | ||
'setuptools', | ||
'zope.component', | ||
'zope.configuration', | ||
'zope.contenttype>=3.5', | ||
'zope.event', | ||
'zope.i18n', | ||
'zope.i18nmessageid', | ||
'zope.interface', | ||
'zope.schema', | ||
'zope.security', | ||
], | ||
tests_require=TEST_REQUIRES, | ||
test_suite='zope.mimetype.tests', | ||
include_package_data = True, | ||
zip_safe = False, | ||
) | ||
include_package_data=True, | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.