Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ericrasmussen/pyramid_redis_sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrasmussen committed Apr 3, 2012
2 parents d8381e9 + d5cb065 commit c26f862
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@
.coverage
build/
dist/
env*/
env*/
tmp/
2 changes: 2 additions & 0 deletions pyramid_redis_sessions/__init__.py
Expand Up @@ -176,6 +176,8 @@ def RedisSessionFactory(
``unix_socket_path``
"""

port = int(port)

def factory(request, new_session_id=get_unique_session_id):
# note: will raise ConnectionError if connection is not established
redis = getattr(request.registry, '_redis_sessions', None)
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -7,3 +7,6 @@ where=pyramid_redis_sessions
nocapture=1
cover-package=pyramid_redis_sessions
cover-erase=1

[aliases]
dev = develop easy_install pyramid_redis_sessions[testing]
7 changes: 6 additions & 1 deletion setup.py
Expand Up @@ -8,6 +8,8 @@
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

testing_extras = ['pkginfo', 'nose', 'coverage']

setup(name='pyramid_redis_sessions',
version=__version__,
description='Pyramid web framework session factory backed by Redis',
Expand All @@ -25,7 +27,7 @@
url='http://pyramid.chromaticleaves.com/docs/pyramid_redis_sessions/',
license='FreeBSD',
packages=find_packages(),
test_suite='pyramid-redis-sessions.tests',
test_suite='pyramid_redis_sessions.tests',
include_package_data=True,
zip_safe=False,
tests_require=['pkginfo', 'nose'],
Expand All @@ -34,4 +36,7 @@
'pyramid>=1.3',
],
entry_points='',
extras_require = {
'testing':testing_extras,
},
)

0 comments on commit c26f862

Please sign in to comment.