Skip to content

Commit aabb7ea

Browse files
committed
use readme as long description
1 parent 73f0f28 commit aabb7ea

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

dataherb/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Name the version of the code using x.x.x
2-
__version__ = '0.0.1'
2+
__version__ = '0.0.2'

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
from os import path
12
from setuptools import setup as _setup
23
from setuptools import find_packages as _find_packages
34
from dataherb.version import __version__
45

6+
# read the contents of your README file
7+
__CWD__ = path.abspath(path.dirname(__file__))
8+
with open(path.join(__CWD__, 'README.md'), encoding='utf-8') as fp:
9+
PACKAGE_LONG_DESCRIPTION = fp.read()
10+
11+
512
PACKAGE_NAME = 'dataherb'
613
PACKAGE_VERSION = __version__
714
PACKAGE_DESCRIPTION = 'Get clean datasets from DataHerb to boost your data science and data analysis projects'
8-
PACKAGE_LONG_DESCRIPTION = (
9-
'DataHerb is a project to list curated datasets. '
10-
'The dataherb python package makes it easy to search, preview, and load data into your projects.'
11-
)
1215
PACKAGE_URL = 'https://github.com/DataHerb/dataherb-python'
1316

1417
def _requirements():
@@ -20,6 +23,7 @@ def setup():
2023
version=PACKAGE_VERSION,
2124
description=PACKAGE_DESCRIPTION,
2225
long_description=PACKAGE_LONG_DESCRIPTION,
26+
long_description_content_type='text/markdown',
2327
url=PACKAGE_URL,
2428
author='Lei Ma',
2529
author_email='[email protected]',

0 commit comments

Comments
 (0)