From 47924f002b76bda8e50c91682cce1457db17e2a7 Mon Sep 17 00:00:00 2001 From: fitodic Date: Sun, 18 Jun 2017 21:44:58 +0200 Subject: [PATCH] Read the README.rst when calling the setup --- setup.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d011916..fc6c38b 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,19 @@ from setuptools import setup +from codecs import open +from os import path + + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the relevant file +with open(path.join(here, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() setup( name='centerline', - version='0.2', + version='0.2.1', description='Calculate the centerline of a polygon', - long_description='README.rst', + long_description=long_description, classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License',