From ada7bf370665129fb38ad4798162b99dda877a35 Mon Sep 17 00:00:00 2001 From: Bono de Visser Date: Fri, 15 Mar 2019 14:54:19 +0100 Subject: [PATCH] Improve setup.py Provide long description for pypi --- setup.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0a68b3f..e29a139 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,17 @@ +#!/usr/bin/env python from setuptools import setup, find_packages +from os.path import abspath, dirname, join + + +def readfile(filename): + path = join(dirname(abspath(__file__)), filename) + with open(path, 'rt') as filehandle: + return filehandle.read() + setup( name='eventsender', - version='1.1', + version='1.1.1', packages=find_packages(exclude=['tests*']), url='https://github.com/ByteInternet/eventsender', author='Byte B.V.', @@ -21,5 +30,7 @@ ], keywords='amqp rabbitmq events eventsender', description='RabbitMQ event sender', + long_description=readfile('README.rst'), + long_description_content_type='text/x-rst', install_requires=['pika==0.13.0'], )