2024-09-30 14:00:29 +01:00
|
|
|
import setuptools
|
|
|
|
|
import os
|
2024-09-30 16:38:50 +01:00
|
|
|
import importlib
|
2024-09-30 14:00:29 +01:00
|
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
|
long_description = fh.read()
|
|
|
|
|
|
2024-09-30 16:38:50 +01:00
|
|
|
# Load a version number module
|
|
|
|
|
spec = importlib.util.spec_from_file_location(
|
|
|
|
|
'version', 'trustgraph/embeddings_hf_version.py'
|
|
|
|
|
)
|
|
|
|
|
version_module = importlib.util.module_from_spec(spec)
|
|
|
|
|
spec.loader.exec_module(version_module)
|
|
|
|
|
|
|
|
|
|
version = version_module.__version__
|
2024-09-30 14:00:29 +01:00
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
|
name="trustgraph-embeddings-hf",
|
|
|
|
|
version=version,
|
|
|
|
|
author="trustgraph.ai",
|
|
|
|
|
author_email="security@trustgraph.ai",
|
|
|
|
|
description="HuggingFace embeddings support for TrustGraph.",
|
|
|
|
|
long_description=long_description,
|
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
url="https://github.com/trustgraph-ai/trustgraph",
|
|
|
|
|
packages=setuptools.find_namespace_packages(
|
|
|
|
|
where='./',
|
|
|
|
|
),
|
|
|
|
|
classifiers=[
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
|
],
|
|
|
|
|
python_requires='>=3.8',
|
|
|
|
|
download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz",
|
|
|
|
|
install_requires=[
|
2024-11-11 22:29:03 +00:00
|
|
|
"trustgraph-base>=0.15,<0.16",
|
|
|
|
|
"trustgraph-flow>=0.15,<0.16",
|
2024-09-30 14:00:29 +01:00
|
|
|
"torch",
|
|
|
|
|
"urllib3",
|
|
|
|
|
"transformers",
|
|
|
|
|
"sentence-transformers",
|
|
|
|
|
"langchain",
|
|
|
|
|
"langchain-core",
|
|
|
|
|
"langchain-huggingface",
|
|
|
|
|
"langchain-community",
|
|
|
|
|
"huggingface-hub",
|
|
|
|
|
"pulsar-client",
|
|
|
|
|
"pyyaml",
|
|
|
|
|
"prometheus-client",
|
|
|
|
|
],
|
|
|
|
|
scripts=[
|
|
|
|
|
"scripts/embeddings-hf",
|
|
|
|
|
]
|
|
|
|
|
)
|