Use 'wsgicors' for CORS handling.
The CW CORS handling (in web/cors.py) is only able to work on cubicweb requests.
When a request is not handled by bwcompat, we need a proper solution.
The `wsgicors` library provides what we need as a wsgi middleware.
from setuptools import setup, find_packages
setup(
name='pyramid_cubicweb',
version='0.1',
description='Integrate CubicWeb with a Pyramid application.',
author='Christophe de Vienne',
author_email='username: christophe, domain: unlish.com',
url='http://bitbucket.com/cdevienne/pyramid_cubicweb',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: Public Domain',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Framework :: Pylons',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'pyramid >= 1.5.0',
'waitress >= 0.8.9',
'cubicweb >= 3.19.3',
'wsgicors >= 0.3'
]
)