-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Amith Koujalgi <[email protected]>
- Loading branch information
1 parent
7eec8e7
commit 5d2f202
Showing
2 changed files
with
13 additions
and
9 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
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import os | ||
import re | ||
import sys | ||
|
||
import pypandoc | ||
from m2r import parse_from_file | ||
from setuptools import setup, find_packages | ||
|
||
|
||
|
@@ -17,11 +16,15 @@ def get_requirements_to_install(): | |
|
||
|
||
def _generate_readme_rst_from_md(): | ||
output = pypandoc.convert_text( | ||
source=open('README.md').read(), | ||
to='rst', | ||
format='md' | ||
) | ||
# import pypandoc | ||
# output = pypandoc.convert_text( | ||
# source=open('README.md').read(), | ||
# to='rst', | ||
# format='md' | ||
# ) | ||
# with open('README.rst', 'w') as f: | ||
# f.write(output) | ||
output = parse_from_file('README.md') | ||
with open('README.rst', 'w') as f: | ||
f.write(output) | ||
|
||
|
@@ -56,6 +59,7 @@ def get_version(): | |
version=get_version(), | ||
description='An interactive commandline interface that brings intelligence to your logs.', | ||
long_description=get_description(), | ||
long_description_content_type='text/markdown', | ||
install_requires=get_requirements_to_install(), | ||
author='Amith Koujalgi', | ||
author_email='[email protected]', | ||
|
@@ -83,5 +87,4 @@ def get_version(): | |
'Programming Language :: Python :: 3.10', | ||
'Environment :: Console' | ||
], | ||
long_description_content_type='text/markdown' | ||
) |