From 24f1d34a1e78d44b5efeac36e617969c4759a6cf Mon Sep 17 00:00:00 2001 From: Robert Yi Date: Sun, 22 Dec 2019 08:31:39 -0800 Subject: [PATCH] Add setup modification to allow for pypi description. --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.py b/setup.py index 6628039..a159732 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,11 @@ from setuptools import find_packages, setup +# Read the contents of README file. +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + setup(name='pylift', version='0.1.3', description='Python implementation of uplift modeling.', @@ -14,5 +20,7 @@ 'scikit-optimize', 'xgboost' ], + long_description=long_description, + long_description_content_type='text/markdown', packages=find_packages(), zip_safe=False)