-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
223 lines (194 loc) · 6.41 KB
/
Copy pathpyproject.toml
File metadata and controls
223 lines (194 loc) · 6.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# pyproject.toml
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fluid-forge"
version = "0.7.7"
description = "FLUID Build System: plan/apply/visualize data products across providers (GCP, Snowflake, Local) with policy & contract tests."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [{ name = "Agentics Transformation Pty Ltd" }]
keywords = ["data products", "FLUID", "opds", "gitops", "gcp", "snowflake", "duckdb", "composer", "dbt", "dataform"]
# Optional but useful for PyPI/pipx users and internal catalogs
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Systems Administration",
]
# Core runtime deps (keep lean; providers add heavy SDKs via extras)
dependencies = [
"click>=8.1",
"pyyaml>=6.0",
"jsonschema>=4.22",
"rich>=13.7",
"pydantic>=2.7",
"typing-extensions>=4.8",
"jinja2>=3.1",
"httpx>=0.27", # For FluidCommandCenter catalog provider
# Optional UX nicety on Windows; no-op elsewhere
"colorama>=0.4.6; platform_system == 'Windows'",
]
[project.optional-dependencies]
# Provider SDK (install once published)
sdk = [
"fluid-provider-sdk>=0.1.0",
]
# Local provider (DuckDB)
local = [
"duckdb>=1.0",
"pandas>=2.2",
]
# GCP provider (install only when needed)
gcp = [
"google-auth>=2.29",
"google-auth-oauthlib>=1.2",
"google-cloud-bigquery>=3.20",
"google-cloud-storage>=2.16",
# optional; gated for 3.10+ environments where wheel support exists
"google-cloud-iam>=2.15 ; python_version >= '3.10'",
# optional runtime helpers (dbt) — also 3.10+ where ecosystem is healthiest
"dbt-bigquery>=1.7 ; python_version >= '3.10'",
]
# Snowflake provider
snowflake = [
"snowflake-connector-python>=4.4",
"snowflake-snowpark-python>=1.15 ; python_version >= '3.10'",
"dbt-snowflake>=1.7 ; python_version >= '3.10'",
]
# Visualizations (plan graph, HTML)
viz = [
"graphviz>=0.20",
]
# OPDS export (spec conversion)
opds = [
"ruamel.yaml>=0.18",
]
# Optional TUI wizard (future: `fluid wizard`)
tui = [
"textual>=0.58",
]
# Optional copilot discovery helpers for Parquet / Avro metadata inspection
copilot = [
"pyarrow>=14",
"fastavro>=1.9",
]
# Docs toolchain (optional; if you’ll publish docs)
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
]
# Dev / QA
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-asyncio>=0.23", # For async test support
"mypy>=1.10",
"ruff>=0.5",
"types-PyYAML>=6.0.12",
"black==24.10.0",
"requests>=2.32.5",
]
# One-shot install for contributors
all = [
"fluid-forge[local,gcp,snowflake,viz,opds,tui,copilot,docs,dev]"
]
[project.scripts]
# Expose as a shell command (great with pipx)
fluid = "fluid_build.cli:main"
# Optional future plugin discovery (safe metadata; your code can adopt entrypoints later)
[project.entry-points."fluid_build.providers"]
local = "fluid_build.providers.local:LocalProvider"
aws = "fluid_build.providers.aws:AwsProvider"
gcp = "fluid_build.providers.gcp:GcpProvider"
snowflake = "fluid_build.providers.snowflake:SnowflakeProvider"
odps = "fluid_build.providers.odps:OdpsProvider"
[project.urls]
Homepage = "https://fluidhq.io"
Repository = "https://github.com/Agentics-Rising/forge-cli"
Issues = "https://github.com/Agentics-Rising/forge-cli/issues"
Documentation = "https://fluidhq.io/docs"
[tool.setuptools]
package-dir = {"" = "."}
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["fluid_build*"]
# Ensure non-.py assets ship in wheels (schemas, templates, static HTML, etc.)
[tool.setuptools.package-data]
fluid_build = [
"cli/agent_specs/**/*.yaml",
"schemas/**/*.json",
"schemas/**/*.yaml",
"templates/**/*.j2",
"templates/**/*.html",
"assets/**/*",
"static/**/*",
"providers/**/templates/**/*",
"providers/**/assets/**/*",
"providers/**/*.json",
"providers/**/*.yaml",
]
# Avoid shipping compiled junk
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc", "*.pyo", "*~", "*.bak", "__pycache__/*"]
# ---- Tooling configs consolidated here ----
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "B"] # basic errors, imports, bugbear
ignore = [
"E203", # whitespace before ':' — Black-compatible
"E501", # line-too-long — handled by Black where possible
"E701", # multiple statements on one line (colon)
"E702", # multiple statements on one line (semicolon)
"E402", # module-level import not at top — needed for conditional imports
"F401", # unused import — many are re-exports
"F841", # unused variable — some used in tests for assertions
"B904", # raise-without-from — existing pattern in codebase
"B007", # unused loop variable — common in iteration patterns
"B017", # assert-raises-exception — existing test patterns
"B023", # function-uses-loop-variable — existing patterns
"B027", # empty-method-without-abstract-decorator — base class patterns
"E712", # true-false-comparison — existing patterns
"E721", # type-comparison — existing patterns
"E741", # ambiguous-variable-name — existing patterns
"F402", # import-shadowed-by-loop-var — existing patterns
"F403", # undefined-local-with-import-star — existing patterns
"F811", # redefined-while-unused — overload patterns
]
[tool.bandit]
# B608: SQL query construction is expected — this is a pipeline/SQL code generator
# B324: MD5 used for checksums, not security
# B310: urlopen used for schema fetching with controlled URLs
skips = ["B608", "B324", "B310", "B113"]
[tool.black]
line-length = 100
target-version = ["py39"]
[tool.mypy]
python_version = "3.9"
warn_unused_ignores = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-q --maxfail=1 --disable-warnings"
testpaths = ["tests"]
# Optional: coverage knobs if you use pytest-cov
[tool.coverage.run]
branch = true
source = ["fluid_build"]
omit = ["fluid_build/**/__main__.py"]
[tool.coverage.report]
show_missing = true
skip_covered = true