From aabb7ea2c6244a1a104d5bf978b26fb8bba7f76d Mon Sep 17 00:00:00 2001 From: OctoMiao Date: Sun, 16 Feb 2020 23:04:45 +0100 Subject: [PATCH] use readme as long description --- dataherb/version.py | 2 +- setup.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dataherb/version.py b/dataherb/version.py index 38e1875..cb376f3 100755 --- a/dataherb/version.py +++ b/dataherb/version.py @@ -1,2 +1,2 @@ # Name the version of the code using x.x.x -__version__ = '0.0.1' \ No newline at end of file +__version__ = '0.0.2' \ No newline at end of file diff --git a/setup.py b/setup.py index 45699d0..299ef82 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,17 @@ +from os import path from setuptools import setup as _setup from setuptools import find_packages as _find_packages from dataherb.version import __version__ +# read the contents of your README file +__CWD__ = path.abspath(path.dirname(__file__)) +with open(path.join(__CWD__, 'README.md'), encoding='utf-8') as fp: + PACKAGE_LONG_DESCRIPTION = fp.read() + + PACKAGE_NAME = 'dataherb' PACKAGE_VERSION = __version__ PACKAGE_DESCRIPTION = 'Get clean datasets from DataHerb to boost your data science and data analysis projects' -PACKAGE_LONG_DESCRIPTION = ( - 'DataHerb is a project to list curated datasets. ' - 'The dataherb python package makes it easy to search, preview, and load data into your projects.' - ) PACKAGE_URL = 'https://github.com/DataHerb/dataherb-python' def _requirements(): @@ -20,6 +23,7 @@ def setup(): version=PACKAGE_VERSION, description=PACKAGE_DESCRIPTION, long_description=PACKAGE_LONG_DESCRIPTION, + long_description_content_type='text/markdown', url=PACKAGE_URL, author='Lei Ma', author_email='hi@leima.is',