Changes to travis, Liscense and readme.rst file

This commit is contained in:
prashantk 2020-03-16 16:42:35 +05:30
parent 7d25213c17
commit 5844503dfc
3 changed files with 7 additions and 6 deletions

View file

@ -3,6 +3,8 @@ python:
- 2.7
- pypy
- 3.4
- 3.7
- 3.8
services:
- rabbitmq
install:

View file

@ -1,4 +1,4 @@
Copyright (c) 2015 AWeber Communications
Copyright (c) 2015-2020 AWeber Communications
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,

View file

@ -16,9 +16,9 @@ and can be installed via ``pip`` or ``easy_install``:
Requirements
------------
- sprockets.mixins.amqp>=2.0.0
- sprockets.mixins.amqp>=3.0.0
- fastavro>=0.10.1,<1.0.0
- tornado>=4.2.0,<5.0.0
- tornado>=6,<7
Example
-------
@ -48,10 +48,9 @@ This examples demonstrates the most basic usage of ``sprockets.mixins.avro-publi
class RequestHandler(avro_publisher.PublishingMixin, web.RequestHandler):
@gen.coroutine
def get(self, *args, **kwargs):
async def get(self, *args, **kwargs):
body = {'request': self.request.path, 'args': args, 'kwargs': kwargs}
yield self.avro_amqp_publish(
await self.avro_amqp_publish(
'exchange',
'routing.key',
'avro-schema-name'