setup.py
author Christophe de Vienne <christophe@unlish.com>
Sat, 08 Nov 2014 23:07:20 +0100
changeset 11524 54c83bfda277
parent 11523 8c80344b119e
child 11528 0a7769e583c2
permissions -rw-r--r--
Don't rollback if exception is HTTPSuccessful or HTTPRedirection In the request finishing, the 'cleanup' callback set by _cw_cnx automatically commit the transaction except is an exception is set on the request. Problem is, redirections and successul http return code can raise exceptions. This patch detects such exceptions and avoid rolling back the transaction. Closes #4566482
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11479
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
from setuptools import setup, find_packages
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
setup(
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
    name='pyramid_cubicweb',
11523
8c80344b119e Set version to 0.1.2
Christophe de Vienne <christophe@unlish.com>
parents: 11520
diff changeset
     6
    version='0.1.2',
11479
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     7
    description='Integrate CubicWeb with a Pyramid application.',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     8
    author='Christophe de Vienne',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     9
    author_email='username: christophe, domain: unlish.com',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
    url='http://bitbucket.com/cdevienne/pyramid_cubicweb',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    11
    classifiers=[
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    12
        'Development Status :: 3 - Alpha',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    13
        'Environment :: Web Environment',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    14
        'Intended Audience :: Developers',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    15
        'License :: Public Domain',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    16
        'Natural Language :: English',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    17
        'Operating System :: OS Independent',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    18
        'Programming Language :: Python',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    19
        'Programming Language :: Python :: 2.7',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    20
        'Programming Language :: Python :: 3',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    21
        'Framework :: Pylons',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    22
        'Topic :: Internet :: WWW/HTTP',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    23
        'Topic :: Internet :: WWW/HTTP :: WSGI',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    24
        'Topic :: Software Development :: Libraries :: Python Modules',
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    25
    ],
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    26
    packages=find_packages(),
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    27
    include_package_data=True,
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    28
    zip_safe=False,
11510
2e52647af650 Add requirements
Christophe de Vienne <christophe@unlish.com>
parents: 11479
diff changeset
    29
    install_requires=[
2e52647af650 Add requirements
Christophe de Vienne <christophe@unlish.com>
parents: 11479
diff changeset
    30
        'pyramid >= 1.5.0',
2e52647af650 Add requirements
Christophe de Vienne <christophe@unlish.com>
parents: 11479
diff changeset
    31
        'waitress >= 0.8.9',
11511
13e0f569684c Use 'wsgicors' for CORS handling.
Christophe de Vienne <christophe@unlish.com>
parents: 11510
diff changeset
    32
        'cubicweb >= 3.19.3',
13e0f569684c Use 'wsgicors' for CORS handling.
Christophe de Vienne <christophe@unlish.com>
parents: 11510
diff changeset
    33
        'wsgicors >= 0.3'
11510
2e52647af650 Add requirements
Christophe de Vienne <christophe@unlish.com>
parents: 11479
diff changeset
    34
    ]
11479
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    35
)