Migrate from setup.py to pyproject.toml (#440)

* Converted setup.py to pyproject.toml

* Modern package infrastructure as recommended by py docs
This commit is contained in:
cybermaggedon 2025-07-23 21:22:08 +01:00 committed by GitHub
parent d83e4e3d59
commit 98022d6af4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
145 changed files with 561 additions and 1159 deletions

View file

@ -0,0 +1,123 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "trustgraph-flow"
dynamic = ["version"]
authors = [{name = "trustgraph.ai", email = "security@trustgraph.ai"}]
description = "TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline."
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"trustgraph-base>=1.2,<1.3",
"aiohttp",
"anthropic",
"cassandra-driver",
"cohere",
"cryptography",
"falkordb",
"fastembed",
"google-genai",
"ibis",
"jsonschema",
"langchain",
"langchain-community",
"langchain-core",
"langchain-text-splitters",
"mcp",
"minio",
"mistralai",
"neo4j",
"ollama",
"openai",
"pinecone[grpc]",
"prometheus-client",
"pulsar-client",
"pymilvus",
"pypdf",
"mistralai",
"pyyaml",
"qdrant-client",
"rdflib",
"requests",
"tabulate",
"tiktoken",
"urllib3",
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/trustgraph-ai/trustgraph"
[project.scripts]
agent-manager-react = "trustgraph.agent.react:run"
api-gateway = "trustgraph.gateway:run"
chunker-recursive = "trustgraph.chunking.recursive:run"
chunker-token = "trustgraph.chunking.token:run"
config-svc = "trustgraph.config.service:run"
de-query-milvus = "trustgraph.query.doc_embeddings.milvus:run"
de-query-pinecone = "trustgraph.query.doc_embeddings.pinecone:run"
de-query-qdrant = "trustgraph.query.doc_embeddings.qdrant:run"
de-write-milvus = "trustgraph.storage.doc_embeddings.milvus:run"
de-write-pinecone = "trustgraph.storage.doc_embeddings.pinecone:run"
de-write-qdrant = "trustgraph.storage.doc_embeddings.qdrant:run"
document-embeddings = "trustgraph.embeddings.document_embeddings:run"
document-rag = "trustgraph.retrieval.document_rag:run"
embeddings-fastembed = "trustgraph.embeddings.fastembed:run"
embeddings-ollama = "trustgraph.embeddings.ollama:run"
ge-query-milvus = "trustgraph.query.graph_embeddings.milvus:run"
ge-query-pinecone = "trustgraph.query.graph_embeddings.pinecone:run"
ge-query-qdrant = "trustgraph.query.graph_embeddings.qdrant:run"
ge-write-milvus = "trustgraph.storage.graph_embeddings.milvus:run"
ge-write-pinecone = "trustgraph.storage.graph_embeddings.pinecone:run"
ge-write-qdrant = "trustgraph.storage.graph_embeddings.qdrant:run"
graph-embeddings = "trustgraph.embeddings.graph_embeddings:run"
graph-rag = "trustgraph.retrieval.graph_rag:run"
kg-extract-agent = "trustgraph.extract.kg.agent:run"
kg-extract-definitions = "trustgraph.extract.kg.definitions:run"
kg-extract-relationships = "trustgraph.extract.kg.relationships:run"
kg-extract-topics = "trustgraph.extract.kg.topics:run"
kg-manager = "trustgraph.cores:run"
kg-store = "trustgraph.storage.knowledge:run"
librarian = "trustgraph.librarian:run"
mcp-tool = "trustgraph.agent.mcp_tool:run"
metering = "trustgraph.metering:run"
object-extract-row = "trustgraph.extract.object.row:run"
oe-write-milvus = "trustgraph.storage.object_embeddings.milvus:run"
pdf-decoder = "trustgraph.decoding.pdf:run"
pdf-ocr-mistral = "trustgraph.decoding.mistral_ocr:run"
prompt-template = "trustgraph.prompt.template:run"
rev-gateway = "trustgraph.rev_gateway:run"
rows-write-cassandra = "trustgraph.storage.rows.cassandra:run"
run-processing = "trustgraph.processing:run"
text-completion-azure = "trustgraph.model.text_completion.azure:run"
text-completion-azure-openai = "trustgraph.model.text_completion.azure_openai:run"
text-completion-claude = "trustgraph.model.text_completion.claude:run"
text-completion-cohere = "trustgraph.model.text_completion.cohere:run"
text-completion-googleaistudio = "trustgraph.model.text_completion.googleaistudio:run"
text-completion-llamafile = "trustgraph.model.text_completion.llamafile:run"
text-completion-lmstudio = "trustgraph.model.text_completion.lmstudio:run"
text-completion-mistral = "trustgraph.model.text_completion.mistral:run"
text-completion-ollama = "trustgraph.model.text_completion.ollama:run"
text-completion-openai = "trustgraph.model.text_completion.openai:run"
text-completion-tgi = "trustgraph.model.text_completion.tgi:run"
text-completion-vllm = "trustgraph.model.text_completion.vllm:run"
triples-query-cassandra = "trustgraph.query.triples.cassandra:run"
triples-query-falkordb = "trustgraph.query.triples.falkordb:run"
triples-query-memgraph = "trustgraph.query.triples.memgraph:run"
triples-query-neo4j = "trustgraph.query.triples.neo4j:run"
triples-write-cassandra = "trustgraph.storage.triples.cassandra:run"
triples-write-falkordb = "trustgraph.storage.triples.falkordb:run"
triples-write-memgraph = "trustgraph.storage.triples.memgraph:run"
triples-write-neo4j = "trustgraph.storage.triples.neo4j:run"
wikipedia-lookup = "trustgraph.external.wikipedia:run"
[tool.setuptools.packages.find]
include = ["trustgraph*"]
[tool.setuptools.dynamic]
version = {attr = "trustgraph.flow_version.__version__"}

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.agent.react import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.gateway import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.chunking.recursive import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.chunking.token import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.config.service import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.doc_embeddings.milvus import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.doc_embeddings.pinecone import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.doc_embeddings.qdrant import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.doc_embeddings.milvus import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.doc_embeddings.pinecone import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.doc_embeddings.qdrant import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.embeddings.document_embeddings import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.retrieval.document_rag import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.embeddings.fastembed import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.embeddings.ollama import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.graph_embeddings.milvus import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.graph_embeddings.pinecone import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.graph_embeddings.qdrant import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.graph_embeddings.milvus import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.graph_embeddings.pinecone import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.graph_embeddings.qdrant import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.embeddings.graph_embeddings import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.retrieval.graph_rag import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.extract.kg.agent import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.extract.kg.definitions import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.extract.kg.relationships import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.extract.kg.topics import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.cores import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.knowledge import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.librarian import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.agent.mcp_tool import run
run()

View file

@ -1,5 +0,0 @@
#!/usr/bin/env python3
from trustgraph.metering import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.extract.object.row import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.object_embeddings.milvus import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.decoding.pdf import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.decoding.mistral_ocr import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.prompt.template import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.rev_gateway import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.rows.cassandra import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.processing import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.azure import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.azure_openai import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.claude import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.cohere import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.googleaistudio import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.llamafile import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.lmstudio import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.mistral import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.ollama import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.openai import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.tgi import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.model.text_completion.vllm import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.triples.cassandra import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.triples.falkordb import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.triples.memgraph import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.query.triples.neo4j import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.triples.cassandra import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.triples.falkordb import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.triples.memgraph import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.storage.triples.neo4j import run
run()

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
from trustgraph.external.wikipedia import run
run()

View file

@ -1,134 +0,0 @@
import setuptools
import os
import importlib
with open("README.md", "r") as fh:
long_description = fh.read()
# Load a version number module
spec = importlib.util.spec_from_file_location(
'version', 'trustgraph/flow_version.py'
)
version_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version_module)
version = version_module.__version__
setuptools.setup(
name="trustgraph-flow",
version=version,
author="trustgraph.ai",
author_email="security@trustgraph.ai",
description="TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.",
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=[
"trustgraph-base>=1.2,<1.3",
"aiohttp",
"anthropic",
"cassandra-driver",
"cohere",
"cryptography",
"falkordb",
"fastembed",
"google-genai",
"ibis",
"jsonschema",
"langchain",
"langchain-community",
"langchain-core",
"langchain-text-splitters",
"mcp",
"minio",
"mistralai",
"neo4j",
"ollama",
"openai",
"pinecone[grpc]",
"prometheus-client",
"pulsar-client",
"pymilvus",
"pypdf",
"mistralai",
"pyyaml",
"qdrant-client",
"rdflib",
"requests",
"tabulate",
"tiktoken",
"urllib3",
],
scripts=[
"scripts/agent-manager-react",
"scripts/api-gateway",
"scripts/rev-gateway",
"scripts/chunker-recursive",
"scripts/chunker-token",
"scripts/config-svc",
"scripts/de-query-milvus",
"scripts/de-query-pinecone",
"scripts/de-query-qdrant",
"scripts/de-write-milvus",
"scripts/de-write-pinecone",
"scripts/de-write-qdrant",
"scripts/document-embeddings",
"scripts/document-rag",
"scripts/embeddings-fastembed",
"scripts/embeddings-ollama",
"scripts/ge-query-milvus",
"scripts/ge-query-pinecone",
"scripts/ge-query-qdrant",
"scripts/ge-write-milvus",
"scripts/ge-write-pinecone",
"scripts/ge-write-qdrant",
"scripts/graph-embeddings",
"scripts/graph-rag",
"scripts/kg-extract-definitions",
"scripts/kg-extract-relationships",
"scripts/kg-extract-agent",
"scripts/kg-store",
"scripts/kg-manager",
"scripts/librarian",
"scripts/mcp-tool",
"scripts/metering",
"scripts/object-extract-row",
"scripts/oe-write-milvus",
"scripts/pdf-decoder",
"scripts/pdf-ocr-mistral",
"scripts/prompt-template",
"scripts/rows-write-cassandra",
"scripts/run-processing",
"scripts/text-completion-azure",
"scripts/text-completion-azure-openai",
"scripts/text-completion-claude",
"scripts/text-completion-cohere",
"scripts/text-completion-googleaistudio",
"scripts/text-completion-llamafile",
"scripts/text-completion-lmstudio",
"scripts/text-completion-mistral",
"scripts/text-completion-ollama",
"scripts/text-completion-openai",
"scripts/text-completion-tgi",
"scripts/text-completion-vllm",
"scripts/triples-query-cassandra",
"scripts/triples-query-falkordb",
"scripts/triples-query-memgraph",
"scripts/triples-query-neo4j",
"scripts/triples-write-cassandra",
"scripts/triples-write-falkordb",
"scripts/triples-write-memgraph",
"scripts/triples-write-neo4j",
"scripts/wikipedia-lookup",
]
)