Skip to content

Commit 32d8f53

Browse files
committed
Use markdown long description on pypi
1 parent d99d6ff commit 32d8f53

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33

44
def read_md(filename):
5-
try:
6-
from pypandoc import convert_file
7-
return convert_file(filename, 'rst')
8-
except (ImportError, OSError):
9-
return open(filename).read()
5+
return open(filename).read()
106

117

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

0 commit comments

Comments
 (0)