11import os
22import re
33import sys
4-
5- import pypandoc
4+ from m2r import parse_from_file
65from setuptools import setup , find_packages
76
87
@@ -17,11 +16,15 @@ def get_requirements_to_install():
1716
1817
1918def _generate_readme_rst_from_md ():
20- output = pypandoc .convert_text (
21- source = open ('README.md' ).read (),
22- to = 'rst' ,
23- format = 'md'
24- )
19+ # import pypandoc
20+ # output = pypandoc.convert_text(
21+ # source=open('README.md').read(),
22+ # to='rst',
23+ # format='md'
24+ # )
25+ # with open('README.rst', 'w') as f:
26+ # f.write(output)
27+ output = parse_from_file ('README.md' )
2528 with open ('README.rst' , 'w' ) as f :
2629 f .write (output )
2730
@@ -56,6 +59,7 @@ def get_version():
5659 version = get_version (),
5760 description = 'An interactive commandline interface that brings intelligence to your logs.' ,
5861 long_description = get_description (),
62+ long_description_content_type = 'text/markdown' ,
5963 install_requires = get_requirements_to_install (),
6064 author = 'Amith Koujalgi' ,
6165 author_email = 'koujalgi.amith@gmail.com' ,
@@ -83,5 +87,4 @@ def get_version():
8387 'Programming Language :: Python :: 3.10' ,
8488 'Environment :: Console'
8589 ],
86- long_description_content_type = 'text/markdown'
8790)
0 commit comments