Skip to content

Commit c547eb9

Browse files
committed
setup: Add long_description, based on README
(cherry picked from commit 28ea006)
1 parent 917a38d commit c547eb9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,20 @@ def grep_version():
4040
return '.'.join(map(str, eval(s)))
4141

4242

43+
def long_description():
44+
here = os.path.dirname(__file__)
45+
readme_path = os.path.join(here, 'README.md')
46+
with open(readme_path) as fp:
47+
readme = fp.read()
48+
return readme
49+
50+
4351
setup(
4452
name = 'mitogen',
4553
version = grep_version(),
4654
description = 'Library for writing distributed self-replicating programs.',
55+
long_description = long_description(),
56+
long_description_content_type='text/markdown',
4757
author = 'David Wilson',
4858
license = 'New BSD',
4959
url = 'https://github.com/mitogen-hq/mitogen/',

0 commit comments

Comments
 (0)