setup.py
author Christophe de Vienne <christophe@unlish.com>
Thu, 26 Feb 2015 00:56:32 +0100
changeset 11562 a49f08423f02
parent 11561 25d93d14f8b6
child 11570 9957c610a047
permissions -rw-r--r--
[auth] Use a second authtkt policy for 'rememberme' The former solution was buggy because the expire time of the auth cookie, if set through 'remember', was lost on the first cookie reissuing. The new approach, make possible thanks to multiauth, use two different cookies. One for session bounded authentication (no 'rememberme'), and one for long lasting authentication (w 'rememberme'). The choice between the two of them is done by adding a 'persistent' argument to the top-level 'security.remember' call. Passing this argument will inhibate a policy or the other. The two policies are (a little) configurable through the 'cubicweb.auth.authtkt.[session|persistent].*' variables. Related to #4985962
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(
11557
e6bfa34183d3 Replace the '_' with '-' in the package name
Christophe de Vienne <christophe@unlish.com>
parents: 11548
diff changeset
     5
    name='pyramid-cubicweb',
11548
1ae61c25299a Prepare version 0.2.1
Christophe de Vienne <christophe@unlish.com>
parents: 11545
diff changeset
     6
    version='0.2.1',
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',
11545
e83f90b1c900 Change project url
Christophe de Vienne <christophe@unlish.com>
parents: 11542
diff changeset
    10
    url='https://www.cubicweb.org/project/pyramid-cubicweb',
11479
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',
11561
25d93d14f8b6 [auth] Use pyramid_multiauth
Christophe de Vienne <christophe@unlish.com>
parents: 11557
diff changeset
    33
        'wsgicors >= 0.3',
25d93d14f8b6 [auth] Use pyramid_multiauth
Christophe de Vienne <christophe@unlish.com>
parents: 11557
diff changeset
    34
        'pyramid_multiauth',
11510
2e52647af650 Add requirements
Christophe de Vienne <christophe@unlish.com>
parents: 11479
diff changeset
    35
    ]
11479
a070f211b35c Project Structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    36
)