-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use markdown long description on pypi
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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): | ||
|
@@ -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]', | ||
|