-
Notifications
You must be signed in to change notification settings - Fork 193
/
setup.py
40 lines (35 loc) · 1.18 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
import setuptools
from setuptools import find_packages
with open("readme.md", "r") as fh:
long_description = fh.read()
vars2find = ["__author__", "__version__", "__url__"]
vars2readme = {}
with open("./nano_graphrag/__init__.py") as f:
for line in f.readlines():
for v in vars2find:
if line.startswith(v):
line = line.replace(" ", "").replace('"', "").replace("'", "").strip()
vars2readme[v] = line.split("=")[1]
deps = []
with open("./requirements.txt") as f:
for line in f.readlines():
if not line.strip():
continue
deps.append(line.strip())
setuptools.setup(
name="nano-graphrag",
url=vars2readme["__url__"],
version=vars2readme["__version__"],
author=vars2readme["__author__"],
description="A simple, easy-to-hack GraphRAG implementation",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
install_requires=deps,
)