mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 03:45:12 +02:00
Feature/subpackages (#80)
* Renaming what will become the core package * Tweaking to get package build working * Fix metering merge * Rename to core directory * Bump version. Use namespace searching for packaging trustgraph-core * Change references to trustgraph-core * Forming embeddings-hf package * Reference modules in core package. * Build both packages to one container, bump version * Update YAMLs
This commit is contained in:
parent
14d79ef9f1
commit
f081933217
303 changed files with 681 additions and 624 deletions
47
trustgraph-embeddings-hf/setup.py
Normal file
47
trustgraph-embeddings-hf/setup.py
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
import setuptools
|
||||
import os
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
version = "0.11.6"
|
||||
|
||||
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='./',
|
||||
# include=['trustgraph.core']
|
||||
),
|
||||
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=[
|
||||
"trustgraph-core",
|
||||
"torch",
|
||||
"urllib3",
|
||||
"transformers",
|
||||
"sentence-transformers",
|
||||
"langchain",
|
||||
"langchain-core",
|
||||
"langchain-huggingface",
|
||||
"langchain-community",
|
||||
"huggingface-hub",
|
||||
"pulsar-client",
|
||||
"pyyaml",
|
||||
"prometheus-client",
|
||||
],
|
||||
scripts=[
|
||||
"scripts/embeddings-hf",
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue