Skip to content

Commit 6ac8f83

Browse files
committed
README.rst -> README.md
1 parent 6f73fe6 commit 6ac8f83

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__URL__="https://github.com/ShujiaHuang/qmplot",
1616
__LICENSE__="BSD (3-clause)",
1717
__DOWNLOAD_URL__="https://github.com/ShujiaHuang/qmplot",
18-
__VERSION__="0.3.0",
18+
__VERSION__="0.3.1",
1919
)
2020

2121
try:
@@ -32,16 +32,20 @@
3232
"matplotlib",
3333
]
3434

35-
ROOT_DIR = os.path.split(os.path.realpath(__file__))[0]
3635

3736
if __name__ == "__main__":
37+
38+
THIS_PATH = os.path.abspath(os.path.dirname(__file__))
39+
long_description = os.path.join(THIS_PATH, "README.md")
40+
3841
setup(name=meta.__DISTNAME__,
3942
author=meta.__AUTHOR__,
4043
author_email=meta.__AUTHOR_EMAIL__,
4144
maintainer=meta.__AUTHOR__,
4245
maintainer_email=meta.__AUTHOR_EMAIL__,
4346
description=DESCRIPTION,
44-
long_description=(open(ROOT_DIR + "/README.rst").read()),
47+
long_description_content_type="text/markdown",
48+
long_description=(open(long_description).read()),
4549
license=meta.__LICENSE__,
4650
url=meta.__URL__,
4751
download_url=meta.__DOWNLOAD_URL__,

0 commit comments

Comments
 (0)