Skip to content

Commit

Permalink
Use markdown long description on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
stphivos committed Feb 21, 2021
1 parent d99d6ff commit 32d8f53
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@


def read_md(filename):
try:
from pypandoc import convert_file
return convert_file(filename, 'rst')
except (ImportError, OSError):
return open(filename).read()
return open(filename).read()


def parse_requirements(filename):
Expand All @@ -23,6 +19,7 @@ def parse_requirements(filename):
version='2.1.6',
description='A django library for mocking queryset functions in memory for testing',
long_description=read_md('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/stphivos/django-mock-queries',
author='Phivos Stylianides',
author_email='[email protected]',
Expand Down

0 comments on commit 32d8f53

Please sign in to comment.