Skip to content

Commit

Permalink
Add PyPI description (#67).
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdv committed Oct 30, 2017
1 parent b2fc9c7 commit 7bc5ab7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ def get_vprof_version(filename):
raise RuntimeError('Unable to find version info.')


def get_description():
"""Reads README.rst file."""
with open('README.rst') as readme_file:
return readme_file.read()


setup(
name='vprof',
version=get_vprof_version('vprof/__main__.py'),
Expand Down Expand Up @@ -151,6 +157,7 @@ def get_vprof_version(filename):
str(req.req) for req in parse_requirements('requirements.txt',
session=PipSession())
],
long_description=get_description(),
cmdclass={
'test': RunUnittestsCommand,
'e2e_test': RunEndToEndTestCommand,
Expand Down

0 comments on commit 7bc5ab7

Please sign in to comment.