From 1282bbf29662dd5b3b6beb3a8fd2f0635e879ea7 Mon Sep 17 00:00:00 2001 From: Joydeep Bhattacharjee Date: Tue, 5 Mar 2019 11:26:20 +0530 Subject: [PATCH] read readme from the elasticmock package file. --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4d648c7..ea32a4a 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,11 @@ __version__ = '1.3.4' -with open("README.md", "r") as fh: - long_description = fh.read() +# read the contents of your readme file +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), 'r') as f: + long_description = f.read() setuptools.setup( name='ElasticMock',