Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 1fbbf2f

Browse files
committed
Use README.rst for long_description
1 parent f039290 commit 1fbbf2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
]
2323

2424

25+
def read(*paths):
26+
"""
27+
Build a file path from paths and return the contents.
28+
"""
29+
with open(os.path.join(*paths), 'r') as f:
30+
return f.read()
31+
32+
2533
def get_packages(package):
2634
"""
2735
Return root package and all sub-packages.
@@ -62,6 +70,7 @@ def get_package_data(package):
6270
url=url,
6371
license=license,
6472
description=description,
73+
long_description=read('README.rst'),
6574
author=author,
6675
author_email=author_email,
6776
packages=get_packages(package),

0 commit comments

Comments
 (0)