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

Commit

Permalink
Use README.rst for long_description
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Mar 7, 2015
1 parent f039290 commit 1fbbf2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
]


def read(*paths):
"""
Build a file path from paths and return the contents.
"""
with open(os.path.join(*paths), 'r') as f:
return f.read()


def get_packages(package):
"""
Return root package and all sub-packages.
Expand Down Expand Up @@ -62,6 +70,7 @@ def get_package_data(package):
url=url,
license=license,
description=description,
long_description=read('README.rst'),
author=author,
author_email=author_email,
packages=get_packages(package),
Expand Down

0 comments on commit 1fbbf2f

Please sign in to comment.