Skip to content

Commit 5071af0

Browse files
committed
Fix readme in package for pypi
1 parent 19c5877 commit 5071af0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Diff for: setup.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
import versioneer
33

44

5-
def read_md(filename):
6-
try:
7-
from pypandoc import convert
8-
return convert(filename, 'rst')
9-
except ImportError:
10-
print("warning: pypandoc module not found, could not convert Markdown to RST")
11-
return open(filename, 'r').read()
12-
13-
145
setup(
156
name='mkp',
167
version=versioneer.get_version(),
@@ -20,7 +11,8 @@ def read_md(filename):
2011
install_requires=[],
2112
author_email='[email protected]',
2213
description='Pack and unpack Check_MK mkp files',
23-
long_description=read_md('README.md'),
14+
long_description=open('README.md', 'r').read(),
15+
long_description_content_type='text/markdown',
2416
packages=find_packages(),
2517
platforms='any',
2618
classifiers=[

0 commit comments

Comments
 (0)