Skip to content

Commit 5d2f202

Browse files
committed
init
Signed-off-by: Amith Koujalgi <koujalgi.amith@gmail.com>
1 parent 7eec8e7 commit 5d2f202

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ langchain-huggingface==0.0.3
55
sentence-transformers==3.0.1
66
#faiss-gpu==1.7.2
77
faiss-cpu==1.8.0.post1
8-
pypandoc==1.13
8+
pypandoc==1.13
9+
m2r==0.3.1

setup.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22
import re
33
import sys
4-
5-
import pypandoc
4+
from m2r import parse_from_file
65
from setuptools import setup, find_packages
76

87

@@ -17,11 +16,15 @@ def get_requirements_to_install():
1716

1817

1918
def _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

Comments
 (0)