Shashwat Tripathi commited on
Commit
e3871e2
·
1 Parent(s): 1c21558

[CLEANUP] Move away from setup.py + requirements.txt to pyproject.toml #60 (#63)

Browse files
Files changed (3) hide show
  1. pyproject.toml +68 -1
  2. requirements.txt +0 -35
  3. setup.py +0 -36
pyproject.toml CHANGED
@@ -3,4 +3,71 @@ requires = ["setuptools>=42", "wheel"]
3
  build-backend = "setuptools.build_meta"
4
 
5
  [tool.black]
6
- line-length = 120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  build-backend = "setuptools.build_meta"
4
 
5
  [tool.black]
6
+ line-length = 120
7
+
8
+ [project]
9
+ name = "sage"
10
+ version = "0.1.2"
11
+ description = "A library to index a code repository and chat with it via LLMs."
12
+ readme = "README.md"
13
+ requires-python = ">=3.9"
14
+ authors = [
15
+ { name = "Julia Turc", email = "founders@storia.ai" },
16
+ { name = "Mihail Eric", email = "founders@storia.ai" }
17
+ ]
18
+ classifiers = [
19
+ "Programming Language :: Python :: 3",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent"
22
+ ]
23
+ dependencies = [
24
+ "GitPython==3.1.43",
25
+ "Pygments==2.18.0",
26
+ "cohere==5.9.2",
27
+ "configargparse",
28
+ "fastapi==0.112.2",
29
+ "google-ai-generativelanguage==0.6.6",
30
+ "gradio>=4.26.0",
31
+ "langchain==0.2.16",
32
+ "langchain-anthropic==0.1.23",
33
+ "langchain-cohere==0.2.4",
34
+ "langchain-community==0.2.17",
35
+ "langchain-core==0.2.41",
36
+ "langchain-experimental==0.0.65",
37
+ "langchain-google-genai",
38
+ "langchain-nvidia-ai-endpoints==0.2.2",
39
+ "langchain-ollama==0.1.3",
40
+ "langchain-openai==0.1.25",
41
+ "langchain-text-splitters==0.2.4",
42
+ "langchain-voyageai==0.1.1",
43
+ "marqo==3.7.0",
44
+ "nbformat==5.10.4",
45
+ "openai==1.42.0",
46
+ "pinecone==5.0.1",
47
+ "pinecone-text==0.9.0",
48
+ "python-dotenv==1.0.1",
49
+ "requests==2.32.3",
50
+ "semchunk==2.2.0",
51
+ "sentence-transformers==3.1.0",
52
+ "tenacity==8.5.0",
53
+ "tiktoken==0.7.0",
54
+ "tokenizers==0.19.1",
55
+ "transformers==4.44.2",
56
+ "tree-sitter==0.22.3",
57
+ "tree-sitter-language-pack==0.2.0",
58
+ "voyageai==0.2.3",
59
+ "setuptools" # Added from the setup.py install_requires
60
+ ]
61
+
62
+ [project.optional-dependencies]
63
+ dev = ["black"]
64
+
65
+ [project.scripts]
66
+ sage-index = "sage.index:main"
67
+ sage-chat = "sage.chat:main"
68
+
69
+ [tool.setuptools.package-data]
70
+ "sample-exclude.txt" = ["sage"]
71
+
72
+ [tool.setuptools.packages]
73
+ find = {}
requirements.txt DELETED
@@ -1,35 +0,0 @@
1
- GitPython==3.1.43
2
- Pygments==2.18.0
3
- cohere==5.9.2
4
- configargparse
5
- fastapi==0.112.2
6
- google-ai-generativelanguage==0.6.6
7
- gradio>=4.26.0
8
- langchain==0.2.16
9
- langchain-anthropic==0.1.23
10
- langchain-cohere==0.2.4
11
- langchain-community==0.2.17
12
- langchain-core==0.2.41
13
- langchain-experimental==0.0.65
14
- langchain-google-genai
15
- langchain-nvidia-ai-endpoints==0.2.2
16
- langchain-ollama==0.1.3
17
- langchain-openai==0.1.25
18
- langchain-text-splitters==0.2.4
19
- langchain-voyageai==0.1.1
20
- marqo==3.7.0
21
- nbformat==5.10.4
22
- openai==1.42.0
23
- pinecone==5.0.1
24
- pinecone-text==0.9.0
25
- python-dotenv==1.0.1
26
- requests==2.32.3
27
- semchunk==2.2.0
28
- sentence-transformers==3.1.0
29
- tenacity==8.5.0
30
- tiktoken==0.7.0
31
- tokenizers==0.19.1
32
- transformers==4.44.2
33
- tree-sitter==0.22.3
34
- tree-sitter-language-pack==0.2.0
35
- voyageai==0.2.3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
setup.py DELETED
@@ -1,36 +0,0 @@
1
- from setuptools import find_packages, setup
2
-
3
-
4
- def readfile(filename):
5
- with open(filename, "r+") as f:
6
- return f.read()
7
-
8
-
9
- setup(
10
- name="sage",
11
- version="0.1.2",
12
- packages=find_packages(),
13
- include_package_data=True,
14
- package_data={
15
- "sage": ["sample-exclude.txt"],
16
- },
17
- install_requires=open("requirements.txt").readlines() + ["setuptools"],
18
- entry_points={
19
- "console_scripts": [
20
- "sage-index=sage.index:main",
21
- "sage-chat=sage.chat:main",
22
- ],
23
- },
24
- author="Julia Turc & Mihail Eric / Storia AI",
25
- author_email="founders@storia.ai",
26
- description="A library to index a code repository and chat with it via LLMs.",
27
- long_description=open("README.md").read(),
28
- long_description_content_type="text/markdown",
29
- url="https://github.com/Storia-AI/sage",
30
- classifiers=[
31
- "Programming Language :: Python :: 3",
32
- "License :: OSI Approved :: MIT License",
33
- "Operating System :: OS Independent",
34
- ],
35
- python_requires=">=3.9",
36
- )