Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
Signed-off-by: Amith Koujalgi <[email protected]>
  • Loading branch information
amithkoujalgi committed Jul 24, 2024
1 parent 7eec8e7 commit 5d2f202
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ langchain-huggingface==0.0.3
sentence-transformers==3.0.1
#faiss-gpu==1.7.2
faiss-cpu==1.8.0.post1
pypandoc==1.13
pypandoc==1.13
m2r==0.3.1
19 changes: 11 additions & 8 deletions setup.py
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


Expand All @@ -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)

Expand Down Expand Up @@ -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]',
Expand Down Expand Up @@ -83,5 +87,4 @@ def get_version():
'Programming Language :: Python :: 3.10',
'Environment :: Console'
],
long_description_content_type='text/markdown'
)

0 comments on commit 5d2f202

Please sign in to comment.