-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (77 loc) · 2.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from setuptools import setup, find_packages
from os import path
######################################################################
## To install/update the below listed dependencies globally,
# run the following command as admin in a python terminal:
# senv\Scripts\activate
# pip install -e . --upgrade
#
## To create the package wheel, run the following command:
# python -m build .
# or:
# python setup.py sdist bdist_wheel
######################################################################
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='common_tools',
version='0.4.11',
description='Common tools for AI and generic needs on file, console, json, ...',
long_description=long_description,
long_description_content_type='text/markdown',
author='Etienne Millerioux',
author_email='[email protected]',
url='https://github.com/festnoze/common_tools',
packages=find_packages(where="."),
install_requires=[
'python-dotenv',
'requests',
'pandas',
'pydantic',
'rank-bm25',
'langchain>=0.3.3',
'langchain-core>=0.3.12',
'langchain-community>=0.3.2',
'langchain-experimental>=0.3.2',
'langchain-openai>=0.2.2',
'langchain-groq>=0.2.0',
'protobuf==4.25.1',
'langchain-chroma>=0.1.4',
'langchain-ollama>=0.1.0',
'langchain-anthropic>=0.2.4',
'langchain-qdrant>=0.1.0',
'langchain-pinecone>=0.1.0',
'qdrant-client',
'pinecone-client==5.0.1',
'pinecone-plugin-inference==1.1.0',
'pinecone==5.0.1',
'pinecone-text==0.9.0',
'langgraph>=0.2.38',
'langsmith>=0.1.136',
'ragas>=0.2.5',
'openai>=1.52.0',
'ollama',
'groq',
'pyyaml',
'lark', # needed for langchain 'self-querying' retriever
'scikit-learn',
'scipy',
# 'prefect', # Uncomment if needed for advanced workflows management
# 'sentence-transformers>=3.2.0', # Uncomment to add as new LLM models' provider
],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
include_package_data=True, # Permet d'inclure les fichiers spécifiés dans MANIFEST.in
package_data={
# If any folder contains ressources files (which are not python files, like *.txt files), reference those folders here to include them into the 'common_tools' package:
'common_tools.prompts': ['**/*'],
'common_tools.rag.configs': ['**/*']
},
package_dir={"": "."}, # Ensure root directory is taken as package directory
zip_safe=False
)