Skip to content

Commit

Permalink
packaging: add readme to longdesc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomTen committed Aug 24, 2021
1 parent 07dcfec commit 54cf2fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from distutils.util import convert_path
from versioning import get_git_version

def readme():
with open('README.md', 'r', encoding='utf-8') as rf:
return rf.read()

try:
from setuptools import setup
except ImportError:
Expand All @@ -12,6 +16,8 @@
name='mdiocre',
version=get_git_version(),
description='Static website generator',
long_description=readme(),
long_description_content_type='text/markdown',
license='MIT',
author='Zumi Daxuya',
author_email='[email protected]',
Expand Down

0 comments on commit 54cf2fd

Please sign in to comment.