-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 2.79 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (68 loc) · 2.79 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[project]
name = "lfx-datastax"
version = "0.1.2"
description = "DataStax component(s) as a standalone Langflow Extension Bundle."
readme = "README.md"
requires-python = ">=3.10,<3.15"
license = { text = "MIT" }
authors = [
{ name = "Langflow", email = "contact@langflow.org" },
]
keywords = ["langflow", "lfx", "extension", "bundle", "datastax"]
# Runtime deps: lfx (the BUNDLE_API surface) plus any third-party imports
# the bundle's components rely on. REVIEW THIS LIST -- the script ports
# only ``lfx``; add any other deps the moved component(s) import.
# lfx is floored at the current major.minor line and capped below the next
# lfx major (e.g. "lfx>=1.11.0,<2.0.0"); the floor is read from
# src/lfx/pyproject.toml at port time and re-synced on ``make patch`` via
# scripts/ci/sync_bundle_lfx_pin.py. Fine-grained BUNDLE_API compatibility
# is enforced via extension.json's lfx.compat list against BUNDLE_API_VERSION.
dependencies = [
"lfx>=1.12.0.dev0,<2.0.0",
"langchain-astradb~=1.0.0",
# Imported directly (astrapy.DataAPIClient/Database) by the astra components,
# not just transitively via langchain-astradb; pin matches langflow-base's
# astrapy extra.
"astrapy>=2.1.0,<3.0.0",
"langchain-graph-retriever==0.8.0",
"graph-retriever==0.8.0",
"requests>=2.32.0",
]
[project.urls]
Homepage = "https://github.com/langflow-ai/langflow"
Documentation = "https://docs.langflow.org/extensions"
Repository = "https://github.com/langflow-ai/langflow"
# Manifest-shipping distributions are discovered via the
# ``langflow.extensions`` entry-point. Editable installs whose
# ``dist.files`` only surfaces dist-info entries fall back to this
# entry-point to find the manifest.
[project.entry-points."langflow.extensions"]
lfx-datastax = "lfx_datastax"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
# extension.json + components live inside the lfx_datastax package so
# ``importlib.metadata.files(dist)`` finds them and the loader resolves
# bundles[].path relative to the manifest's directory.
packages = ["src/lfx_datastax"]
include = [
"src/lfx_datastax/extension.json",
"src/lfx_datastax/base/**/*.py",
"src/lfx_datastax/components/**/*.py",
]
[tool.hatch.build.targets.sdist]
include = [
"src/lfx_datastax",
"extension.json",
"README.md",
"pyproject.toml",
]
[tool.ruff]
# This file defines a [tool.ruff.lint.*] table, which makes ruff treat this
# directory as a standalone config root. Without restating line-length, ruff
# falls back to its default of 88 here, which conflicts with the repo-wide 120
# enforced by the pre-commit ruff-format hook (run with --config pyproject.toml).
line-length = 120
[tool.ruff.lint.per-file-ignores]
"src/lfx_datastax/components/datastax/astradb_vectorstore.py" = ["S110"]