From eb129c4e1e5775c35eb4314e9b98b06dbb5160ea Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 14 Apr 2021 17:07:07 +0200 Subject: [PATCH] MAINT Fix long description format in setup.py (#107) --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index a665175c..6c6399a5 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,4 @@ #! /usr/bin/env python -"""A template for scikit-learn compatible packages.""" - -import codecs import os from setuptools import find_packages, setup, Extension @@ -18,7 +15,7 @@ DISTNAME = "scikit-learn-extra" DESCRIPTION = "A set of tools for scikit-learn." -with codecs.open("README.rst", encoding="utf-8-sig") as f: +with open("README.rst", encoding="utf-8") as f: LONG_DESCRIPTION = f.read() URL = "https://github.com/scikit-learn-contrib/scikit-learn-extra" LICENSE = "new BSD" @@ -91,6 +88,7 @@ setup( name=DISTNAME, description=DESCRIPTION, + long_description_content_type="text/x-rst", license=LICENSE, url=URL, version=VERSION,