-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.41 KB
/
setup.py
File metadata and controls
39 lines (34 loc) · 1.41 KB
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
import setuptools
import glob
from setuptools import setup, find_packages
packages = find_packages(
exclude=["benchmarks", "clibs", "data", "demo", "dist", "doc", "docs", "logs", "models", "test", "figures"]
)
print("packages:", packages)
# Find all matching files
# This returns a list of file paths like "rgl/graph_retrieval/libretrieval.cpython-310-x86_64-linux-gnu.so"
package_files = glob.glob("rgl/graph_retrieval/libretrieval.cpython-3*-x86_64-linux-gnu.so")
description = "RGL - RAG-on-Graphs Library"
try:
long_description = open("README.md", "r", encoding="utf-8").read()
except Exception:
long_description = description
# Adjust paths to be relative to the package directory ("rgl").
# That is, remove the leading "rgl/" portion.
relative_files = [f[len("rgl/") :] for f in package_files]
setup(
name="rgl",
python_requires=">3.7.0",
version="0.0.4",
author="anthonynus",
author_email="e0403849@u.nus.edu",
packages=packages,
install_requires=["ogb", "patool", "faiss-cpu", "rouge-score", "gradio"],
# extras_require={"torch-2.4": ["dgl @ https://data.dgl.ai/wheels/torch-2.4/dgl-0.9.0-cp38-cp38-linux_x86_64.whl"]},
package_data={"rgl": relative_files},
description=description,
license="GNU General Public License v3.0 (See LICENSE)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/PyRGL/rgl",
)