Skip to content

Commit

Permalink
run under uvloop
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Harris committed Jul 11, 2017
1 parent ff109ba commit 4140c1e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Binary file added dist/eventify-0.3.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
# built documents.
#
# The short X.Y version.
version = '0.3.1'
version = '0.3.2'
# The full version, including alpha/beta/rc tags.
release = '0.3.1'
release = '0.3.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 5 additions & 0 deletions eventify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
Eventify!
A simple module for implementing event driven systems
"""
import asyncio
import logging
import json
import os
import uvloop

from eventify.exceptions import EventifyConfigError, EventifyInitError


# Set uvloop as event loop for performance gains
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

logger = logging.getLogger('eventify')


Expand Down
1 change: 0 additions & 1 deletion example/produce_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ async def produce_events(session):
})
await session.emit_event(event)
counter = counter + 1
await asyncio.sleep(1)


if __name__ == '__main__':
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
setup(
name='eventify',
packages=find_packages(),
version='0.3.1',
version='0.3.2',
description='Event Driven Asynchronous Framework',
author='Matthew Harris',
author_email='matt@x-qa.com',
url='https://github.com/eventifyio/eventify',
download_url='https://github.com/eventifyio/eventify/raw/master/dist/eventify-0.3.1.tar.gz',
download_url='https://github.com/eventifyio/eventify/raw/master/dist/eventify-0.3.2.tar.gz',
keywords=['event', 'event-driven', 'async',
'framework', 'producer', 'consumer'],
classifiers=[],
Expand All @@ -19,6 +19,7 @@
'asyncpg',
'pyOpenSSL',
'autobahn',
'service_identity'
'service_identity',
'uvloop'
]
)

0 comments on commit 4140c1e

Please sign in to comment.