diff --git a/coolamqp/framing/compilation/compile_definitions.py b/coolamqp/framing/compilation/compile_definitions.py index cdfae03c73feca38b0c1e15daa746ad9442184e1..2864dc8813e6ffc28798ffcb2311926517689515 100644 --- a/coolamqp/framing/compilation/compile_definitions.py +++ b/coolamqp/framing/compilation/compile_definitions.py @@ -30,7 +30,7 @@ def compile_definitions(xml_file='resources/amqp0-9-1.extended.xml', out_file='c xml = ElementTree.parse(xml_file) out = open(out_file, 'wb') - out.write('''# coding=UTF-8 + out.write(u'''# coding=UTF-8 from __future__ import print_function, absolute_import """ A Python version of the AMQP machine-readable specification. @@ -65,10 +65,10 @@ logger = logging.getLogger(__name__) Field = collections.namedtuple('Field', ('name', 'type', 'basic_type', 'reserved')) -''') +'''.encode('utf8')) def line(data, *args, **kwargs): - out.write(ffmt(data, *args, sane=True)) + out.write(ffmt(data, *args, sane=True).encode('utf8')) # Output core ones FRAME_END = None diff --git a/setup.py b/setup.py index db8fae1f097b625acbb41a85fdf86f81d2025afd..b9fee132178924f08331e6a2b204cfbe2426e92a 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ from setuptools import setup -setup(name='CoolAMQP', +setup(name=u'CoolAMQP', version='0.8', - description='AMQP client with sane reconnects', - author='DMS Serwis s.c.', - author_email='piotrm@smok.co', - url='https://github.com/smok-serwis/coolamqp', + description=u'AMQP client with sane reconnects', + author=u'DMS Serwis s.c.', + author_email=u'piotrm@smok.co', + url=u'https://github.com/smok-serwis/coolamqp', # download_url='https://github.com/smok-serwis/coolamqp/archive/v0.12.zip', keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availability'], packages=[ @@ -22,7 +22,7 @@ setup(name='CoolAMQP', 'coolamqp.framing', 'coolamqp.framing.compilation', ], - license='MIT License', + license=u'MIT License', long_description=u'Best-in-class Python AMQP client', requires=['amqp', 'six', 'monotonic'], tests_require=["nose"],